ITCertFoundryTechnical training system
COMMAND REFERENCE

CCNP ENCOR Command List

The configure-and-verify commands used throughout the ENCOR labs — OSPF, BGP, ACLs, CoPP, RESTCONF/NETCONF, and EEM.

Multiarea OSPF & BGP

TaskCommandEnable OSPF on an interface, area 0ip ospf 1 area 0Set OSPF router IDrouter-id 1.1.1.1 (under router ospf)Advertise a stub areaarea 1 stub (under router ospf)Start eBGProuter bgp 65001Add a neighborneighbor 203.0.113.1 remote-as 65010Advertise a network into BGPnetwork 198.51.100.0 mask 255.255.255.0Verify OSPF neighborsshow ip ospf neighborVerify BGP table/best pathshow ip bgp

HSRP, VRRP, PBR, NAT

TaskCommandSet HSRP virtual IPstandby 10 ip 10.10.10.1Set HSRP priority + preemptstandby 10 priority 150 / standby 10 preemptTrack an interface for HSRPstandby 10 track Gi0/1 30Apply a PBR route-map inboundip policy route-map <name>PAT overload on an interfaceip nat inside source list <ACL> interface Gi0/1 overloadVerify NAT translationsshow ip nat translations

ACLs & Control Plane Policing

TaskCommandStandard ACL for VTYip access-list standard <name>Apply to VTY linesaccess-class <name> inExtended ACL on an interfaceip access-group <name> inCheck ACL match countersshow access-lists <name>Apply a CoPP policyservice-policy input <name> (under control-plane)Check CoPP class statsshow policy-map control-plane

RESTCONF, NETCONF & EEM

TaskCommandEnable RESTCONFrestconfEnable NETCONF over SSHnetconf-yangBegin an EEM appletevent manager applet <name>EEM syslog triggerevent syslog pattern "<exact match>"EEM action: run a CLI commandaction 1.0 cli command "<command>"Verify EEM registrationshow event manager policy registered

Fast diagnostic commands

show ip ospf neighbor / show ip bgp summary — confirm adjacencies/peerings before assuming a routing-logic problem.

show interfaces trunk — compare native VLAN on both ends before assuming a deeper Layer 2 fault.

show ip sla configuration / show track — confirm an IP SLA operation is actually scheduled before assuming a tracked object should be Up.

show crypto ipsec sa — confirm a GRE-over-IPsec tunnel is genuinely encrypting, not just up/up.

Real scenarios you'll actually face

"The BGP neighbor has been stuck in Active/Idle for twenty minutes and won't establish." `show ip bgp summary` showing anything other than a number in the State/PfxRcd column means the session never reached Established — check basic IP reachability to the neighbor address first (a surprising number of BGP problems are actually just "can I even ping the other end"), then confirm the remote-as matches what the OTHER side thinks it's peering with, since a mismatched AS number on either side silently prevents the session from ever forming, with no obvious error pointing at the actual cause.

"HSRP failed over during maintenance, and when the primary router came back, it never took the active role back." This isn't a bug — priority alone only decides the FIRST election. `standby preempt` is the specific setting that lets a higher-priority router reclaim active status after it returns, and it's commonly left off because it doesn't matter until the exact moment you need it, during an actual failover. Traffic keeps flowing through the now-standby-turned-active router with no user-visible symptom at all, which is exactly why this gets caught during a planned maintenance test, not by a monitoring alert.

"The EEM applet I configured never fires, even though the condition it's supposed to catch clearly happened." EEM's syslog pattern match needs to be an EXACT match against the device's actual, real syslog text — `GigabitEthernet0/1` and `Gi0/1` are not interchangeable as far as EEM's pattern engine is concerned, even though a human reading the log would consider them identical. `show logging` to copy the EXACT text the device actually generated, not what you assume it generated, is the fix — guessing at the abbreviation format is the most common reason a perfectly reasonable-looking EEM applet silently never triggers.

OFFLINE OPTION

Want a printable copy?

This complete guide is also available as a professionally formatted PDF.

Download PDF ↓