Skip to content
Guides & References

IOS-XE interface security

Worked examples for Cisco IOS-XE interface security: proxy ARP off on every routed interface, and every interface shut down or described.

Policy LibraryUpdated
Platform
Cisco IOS-XE
Minimum version
rConfig 8.3.0
Editions
Pro, Vector, Enterprise
On this page

IOS-XE interface security

Rules that check every interface, one at a time. If one interface fails, the rule fails and the report names that interface. They come from the ios-l2-security policy template.

Every example on this page was checked with rConfig Pro's policy engine on

Each of the 4 configs below was run through rConfig Pro’s evaluator with the rule above it, and gave the result shown. The configs are sanitised excerpts of the sample configs that come with the template.

All the rules come from ios-l2-security.policy in the policy templates (v1.5.0). Import the whole file with Import Templates (see importing a policy template), or copy one rule into your own definition. The Cisco IOS templates page lists the file’s known limitations. Run the rules against show running-config.

Rule Method Since
Proxy ARP off on routed interfaces evaluate_block 8.3.0
Every interface shut down or described evaluate_block 8.3.0

Proxy ARP off on routed interfaces

With proxy ARP on, a router answers ARP requests for addresses it can reach. That can hide addressing mistakes and helps an attacker on the segment. This rule checks only interfaces with an ip address; each of those needs no ip proxy-arp. Loopbacks count too.

Definition
// Every interface with an IP address has proxy ARP disabled (no ip proxy-arp)
#[evaluate_block]
scope: ^interface
any:
- not:
regex: '/^\s*ip address /m'
- equals: no ip proxy-arp
passPassing config: Hardened Catalyst 9500 sample (IOS-XE 17.9, synthetic)
interface Vlan1
no ip address
shutdown
!
interface Vlan99
description Management
ip address 192.0.2.12 255.255.255.0
no ip proxy-arp
!

Why: Vlan1 has no address, so it is skipped. Vlan99 has an address and no ip proxy-arp.

failFailing config: Operational standards sample (IOS 15.7, synthetic)
interface Loopback0
description Router ID and management source
ip address 198.51.100.1 255.255.255.255
!
interface GigabitEthernet0/0
description WAN uplink to provider
ip address 203.0.113.2 255.255.255.252
no ip proxy-arp
!

Why: Loopback0 has an address but no no ip proxy-arp line. The result names interface Loopback0.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 SC-7
ISO/IEC 27001:2022 Annex A A.8.20

Tested with: sample excerpts from IOS 15.7 (synthetic) and IOS-XE 17.9 (synthetic). Minimum rConfig 8.3.0 (evaluate_block). Editions: Pro, Vector, Enterprise.


Every interface shut down or described

A description says what is plugged in. An interface that is up with no description is a port nobody can account for. This rule passes an interface if it is shut down or has a description.

Definition
// Every interface is shut down or has a description
#[evaluate_block]
scope: ^interface
any:
- equals: shutdown
- regex: '/^\s*description \S/m'
passPassing config: Hardened Catalyst 9500 sample (IOS-XE 17.9, synthetic)
interface GigabitEthernet1/1/1
description Link to distribution A
switchport mode trunk
!
interface GigabitEthernet1/1/3
shutdown
!

Why: Gi1/1/1 has a description. Gi1/1/3 is shut down.

failFailing config: Cisco 1921 lab sample (IOS 15.7)
interface Loopback60
description This is Interface Loopback60
ip address 192.0.2.60 255.255.255.255
!
interface Loopback70
ip address 192.0.2.70 255.255.255.255
!

Why: Loopback70 is up and has no description. The result names interface Loopback70.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 SI-4
ISO/IEC 27001:2022 Annex A A.8.20

Tested with: sample excerpts from IOS 15.7 (lab) and IOS-XE 17.9 (synthetic). Minimum rConfig 8.3.0 (evaluate_block). Editions: Pro, Vector, Enterprise.


Type to search.