Cisco IOS XR policy examples
Rules for Cisco routers running IOS XR, one page per topic. Every rule has a passing config and a failing config, with the result rConfig gives for each. Run the rules against the output of show running-config.
| Topic | What the rules check | Rules |
|---|---|---|
| Management access | SSH version 2, no Telnet server, no Telnet in transport input, exec-timeouts of 1 to 10 minutes, a MOTD or login banner | 5 |
| AAA and local credentials | Login through a TACACS+ or RADIUS group, no reversible local passwords, no MD5 local secrets | 3 |
| SNMP | No SNMPv1 or v2c communities, SNMPv3 users with SHA and AES, an authPriv group | 3 |
| Logging | A remote syslog host, millisecond timestamps, console logging off or limited to critical | 3 |
| Services | No TFTP server, IPv4 source routing, directed broadcast, proxy ARP or ICMP redirects | 5 |
| Operational standards | Your NTP, syslog and DNS servers, a banner, interface descriptions, a hostname pattern, an SNMP location | 7 |
How IOS XR configs differ
Two things about IOS XR shape these rules:
- Defaults are not printed. The Telnet and TFTP servers, source routing, directed broadcast, proxy ARP and ICMP redirects are all off by default, so the rules fail only on the line that turns them on, rather than looking for a
no ...line. - Every nested block ends with its own
!. rConfig’s block splitter ends a scoped block at the first!, so on IOS XR ascope:rule would only see the start of a block. Almost every rule is therefore an unscoped regex. For the same reason there is no BGP neighbour password rule.
Where the examples come from
Every topic documents one file from the Cisco IOS XR policy templates at release v1.5.0, which you can import into rConfig. The configs are sanitised excerpts of the hardened and unhardened ASR 9901 sample configs that come with the templates. Every config shown was run through rConfig Pro’s evaluator with its rule, and gave the result shown.
The framework files (NIST, HIPAA and ISO/IEC 27001) collect these same rules, so they have no pages of their own here. See compliance frameworks.
For IOS and IOS XE, see the Cisco IOS-XE policy examples. If you are new to policy definitions, start with your first policy.