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.
// Every interface with an IP address has proxy ARP disabled (no ip proxy-arp)#[evaluate_block]scope: ^interfaceany: - not: regex: '/^\s*ip address /m' - equals: no ip proxy-arpinterface 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.
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:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
// Every interface is shut down or has a description#[evaluate_block]scope: ^interfaceany: - equals: shutdown - regex: '/^\s*description \S/m'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.
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:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
Related reference
- Cisco IOS policy templates: every rule in
ios-l2-security.policy, its references and known limitations. - Policy Definitions: the definition file format and every method.
- Policy Assignments: run a definition against your devices.
- Policy Compliance Results: read the pass and fail results.