Cisco IOS-XE policy examples
Rules for Cisco IOS-XE running configs, 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 |
|---|---|---|
| Baseline standard | Your standard values for services, DNS, NTP, AAA, the admin user, HTTP, routing, SSH, SNMPv3 and VTY lines | 11 |
| Management access | SSH version 2, no Telnet, idle timeouts on console and VTY lines, MOTD and login banners | 6 |
| AAA and local accounts | AAA on, a hashed enable secret, password encryption, no plaintext passwords, approved users only | 5 |
| SNMP | No SNMPv1 or v2c communities, an SNMPv3 group with encryption | 2 |
| Logging | A syslog host, millisecond timestamps, no console logging, buffered logging, a trap level | 5 |
| Interface security | Proxy ARP off on routed interfaces, every interface shut down or described | 2 |
| Routing authentication | MD5 authentication on every OSPF process, a BGP neighbour password | 2 |
| Services | HTTP, HTTPS, finger, small servers, identd and directed broadcast off; BOOTP, PAD, source routing and CDP disabled | 11 |
| Operational standards | Your NTP, syslog and DNS servers, a login banner, interface descriptions, a hostname pattern, an SNMP location | 7 |
Where the examples come from
All topics except one document the Cisco IOS policy templates at release v1.5.0, which you can import into rConfig. Their configs are sanitised excerpts of the sample configs that come with the templates. Where no sample fails a rule, the failing config is a sample excerpt with one line changed, and the page says which line. Every config shown was run through rConfig Pro’s evaluator with its rule, and gave the result shown.
The approved local accounts rule on the AAA page is the exception. It is not in the templates, and its configs were written for a test in the rConfig Pro suite, which asserts both results.
The IOS-XE configs on the pattern pages show more method behaviour, including SNMP trap hosts and access-port sections. Those examples demonstrate a technique rather than a complete rule, so they live there rather than here.
If you are new to policy definitions, start with your first policy, which walks through a rule that fails on lab or test interfaces, end to end.