Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

Router Golden Script · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam · Router

Reference only. Replace placeholders, select the correct sections and verify before saving. Copy All includes the basic block and commented alternatives, never removal commands.

Filters affect the sections shown below. Copy All, TXT downloads and print always include the complete script for this device.

Download TXT Verify All
Full reference script
! Pcornel Finals - Case Skills Exam / Router
! Content version: 1.1-draft
! REFERENCE ONLY: replace every placeholder and choose the correct device/task-specific variants.
! Basic configuration is active text; all alternative sections below are commented references.
! Use Copy Section for a single relevant variant. Do not paste this entire file blindly.

! Basic configuration
enable
configure terminal
hostname [HOSTNAME]
ip domain-name [DOMAIN-NAME]
enable secret [ENABLE-SECRET]
username [USERNAME] privilege 15 secret [PASSWORD]
line console 0
 login local
 logging synchronous
 exit
line vty 0 [VTY-LAST]
 login local
 exit
ipv6 unicast-routing
end

! IPv4 and IPv6 Addressing / Router IPv4
! enable
! configure terminal
! interface [INTERFACE]
!  ip address [IP-ADDRESS] [SUBNET-MASK]
!  no shutdown
!  exit
! end

! IPv4 and IPv6 Addressing / Router IPv6
! enable
! configure terminal
! ipv6 unicast-routing
! interface [INTERFACE]
!  ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
!  no shutdown
!  exit
! end

! IPv4 and IPv6 Addressing / IPv4 loopback
! enable
! configure terminal
! interface loopback [LOOPBACK-ID]
!  ip address [LOOPBACK-IP] 255.255.255.255
!  exit
! end

! IPv4 and IPv6 Addressing / IPv6 loopback
! enable
! configure terminal
! ipv6 unicast-routing
! interface loopback [LOOPBACK-ID]
!  ipv6 address [LOOPBACK-IPV6]/128
!  exit
! end

! IPv4 and IPv6 Addressing / Manual link-local address
! enable
! configure terminal
! interface [INTERFACE]
!  ipv6 address [LINK-LOCAL-ADDRESS] link-local
!  exit
! end

! Static Routing (IPv4/IPv6) / Next-hop route
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP]
! end

! Static Routing (IPv4/IPv6) / Exit-interface route
! Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [INTERFACE]
! end

! Static Routing (IPv4/IPv6) / Fully specified route
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [INTERFACE] [NEXT-HOP]
! end

! Static Routing (IPv4/IPv6) / Default route
! enable
! configure terminal
! ip route 0.0.0.0 0.0.0.0 [NEXT-HOP]
! end

! Static Routing (IPv4/IPv6) / Floating backup route
! Choose a distance greater than the preferred route.
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] [BACKUP-DISTANCE]
! end

! Static Routing (IPv4/IPv6) / Next-hop route
! Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6]
! end

! Static Routing (IPv4/IPv6) / Exit-interface route
! Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE]
! end

! Static Routing (IPv4/IPv6) / Fully specified route
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE] [NEXT-HOP-IPV6]
! end

! Static Routing (IPv4/IPv6) / Default route
! Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
! enable
! configure terminal
! ipv6 route ::/0 [NEXT-HOP-IPV6]
! end

! Static Routing (IPv4/IPv6) / Floating backup route
! Choose a distance greater than the preferred route.
! Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6] [BACKUP-DISTANCE]
! end

! Route Summarization / IPv4 summary route
! enable
! configure terminal
! ip route [SUMMARY-NETWORK] [SUMMARY-MASK] [NEXT-HOP]
! end

! Route Summarization / IPv6 summary route
! enable
! configure terminal
! ipv6 route [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH] [NEXT-HOP-IPV6]
! end

! Route Summarization / OSPFv2 ABR summary
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  area [AREA-ID] range [SUMMARY-NETWORK] [SUMMARY-MASK]
!  exit
! end

! Route Summarization / Legacy OSPFv3 ABR summary
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  area [AREA-ID] range [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
!  exit
! end

! Route Summarization / OSPFv2 ASBR external summary
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  summary-address [SUMMARY-NETWORK] [SUMMARY-MASK]
!  exit
! end

! Route Summarization / BGP IPv4 aggregate
! Requires contributing more-specific BGP routes. summary-only suppresses their advertisement.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  address-family ipv4 unicast
!   aggregate-address [SUMMARY-NETWORK] [SUMMARY-MASK] summary-only
!  exit-address-family
!  exit
! end

! Route Summarization / Traditional OSPFv3 ASBR external summary
! Use on the ASBR for redistributed external routes, not inter-area summarization.
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  summary-prefix [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
!  exit
! end

! Route Summarization / BGP IPv6 aggregate
! Requires contributing more-specific BGP routes; summary-only suppresses their advertisement.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  address-family ipv6 unicast
!   aggregate-address [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH] summary-only
!  exit-address-family
!  exit
! end

! OSPFv2 / Network statement
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  network [NETWORK] [WILDCARD-MASK] area [AREA-ID]
!  exit
! end

! OSPFv2 / Interface activation
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [INTERFACE]
!  ip ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! OSPFv2 / Passive by default with selected neighbors
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  passive-interface default
!  no passive-interface [NEIGHBOR-INTERFACE]
!  exit
! end

! OSPFv2 / Multi-area interfaces
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [BACKBONE-INTERFACE]
!  ip ospf [PROCESS-ID] area 0
!  exit
! interface [OTHER-INTERFACE]
!  ip ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! OSPFv2 / Originate default route
! Normally requires an installed default route; use always only if specified.
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  default-information originate
!  exit
! end

! OSPFv2 / Legacy MD5 interface authentication
! Legacy lab authentication; match key ID and secret on both peers.
! enable
! configure terminal
! interface [INTERFACE]
!  ip ospf authentication message-digest
!  ip ospf message-digest-key [KEY-ID] md5 [SHARED-SECRET]
!  exit
! end

! OSPFv3 (Traditional/Legacy) / Traditional IPv6 OSPFv3
! enable
! configure terminal
! ipv6 unicast-routing
! ipv6 router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [INTERFACE]
!  ipv6 ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! OSPFv3 (Traditional/Legacy) / Passive interface
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  passive-interface [INTERFACE]
!  exit
! end

! OSPFv3 (Traditional/Legacy) / Traditional multi-area
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [BACKBONE-INTERFACE]
!  ipv6 ospf [PROCESS-ID] area 0
!  exit
! interface [OTHER-INTERFACE]
!  ipv6 ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv4 eBGP address family
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  no bgp default ipv4-unicast
!  neighbor [NEIGHBOR-IP] remote-as [REMOTE-AS]
!  address-family ipv4 unicast
!   neighbor [NEIGHBOR-IP] activate
!   network [NETWORK] mask [SUBNET-MASK]
!  exit-address-family
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv6 eBGP address family
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  no bgp default ipv4-unicast
!  neighbor [NEIGHBOR-IPV6] remote-as [REMOTE-AS]
!  address-family ipv6 unicast
!   neighbor [NEIGHBOR-IPV6] activate
!   network [IPV6-PREFIX]/[PREFIX-LENGTH]
!  exit-address-family
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv4 iBGP using loopback
! Loopbacks need reachability before the session can establish. Use next-hop-self where needed.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  neighbor [NEIGHBOR-IP] remote-as [LOCAL-AS]
!  neighbor [NEIGHBOR-IP] update-source loopback [LOOPBACK-ID]
!  address-family ipv4 unicast
!   neighbor [NEIGHBOR-IP] activate
!   neighbor [NEIGHBOR-IP] next-hop-self
!  exit-address-family
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv6 iBGP using loopback
! Loopbacks need IPv6 reachability.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  no bgp default ipv4-unicast
!  neighbor [NEIGHBOR-IPV6] remote-as [LOCAL-AS]
!  neighbor [NEIGHBOR-IPV6] update-source loopback [LOOPBACK-ID]
!  address-family ipv6 unicast
!   neighbor [NEIGHBOR-IPV6] activate
!   neighbor [NEIGHBOR-IPV6] next-hop-self
!  exit-address-family
!  exit
! end

! IP SLA / ICMP echo with source interface
! enable
! configure terminal
! ip sla [SLA-ID]
!  icmp-echo [DESTINATION-IP] source-interface [SOURCE-INTERFACE]
!  timeout [TIMEOUT-MS]
!  frequency [FREQUENCY-SECONDS]
!  exit
! ip sla schedule [SLA-ID] life forever start-time now
! end

! IP SLA / ICMP echo with source IPv4 address
! enable
! configure terminal
! ip sla [SLA-ID]
!  icmp-echo [DESTINATION-IP] source-ip [SOURCE-IP]
!  timeout [TIMEOUT-MS]
!  frequency [FREQUENCY-SECONDS]
!  exit
! ip sla schedule [SLA-ID] life forever start-time now
! end

! Object Tracking / Track IP SLA reachability
! enable
! configure terminal
! track [TRACK-ID] ip sla [SLA-ID] reachability
!  delay down [DOWN-SECONDS] up [UP-SECONDS]
!  exit
! end

! Object Tracking / Track interface line protocol
! enable
! configure terminal
! track [TRACK-ID] interface [INTERFACE] line-protocol
!  exit
! end

! Object Tracking / Tracked static IPv4 route
! Create the tracked object before applying this route.
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] track [TRACK-ID]
! end

! HSRPv2 (IPv4/IPv6) / IPv4 HSRPv2
! enable
! configure terminal
! interface [INTERFACE]
!  standby version 2
!  standby [HSRP-GROUP] ip [VIRTUAL-IP]
!  standby [HSRP-GROUP] priority [PRIORITY]
!  standby [HSRP-GROUP] preempt
!  exit
! end

! HSRPv2 (IPv4/IPv6) / IPv6 HSRPv2 autoconfig
! Ensure a real IPv6 interface address or appropriate IPv6 enabling is present before configuring HSRP.
! enable
! configure terminal
! ipv6 unicast-routing
! interface [INTERFACE]
!  standby version 2
!  standby [HSRP-GROUP] ipv6 autoconfig
!  standby [HSRP-GROUP] priority [PRIORITY]
!  standby [HSRP-GROUP] preempt
!  exit
! end

! HSRPv2 (IPv4/IPv6) / IPv6 HSRPv2 manual virtual link-local
! Ensure a real IPv6 interface address or appropriate IPv6 enabling is present before configuring HSRP.
! enable
! configure terminal
! ipv6 unicast-routing
! interface [INTERFACE]
!  standby version 2
!  standby [HSRP-GROUP] ipv6 [VIRTUAL-LINK-LOCAL]
!  standby [HSRP-GROUP] priority [PRIORITY]
!  standby [HSRP-GROUP] preempt
!  exit
! end

! HSRPv2 (IPv4/IPv6) / HSRP object tracking
! enable
! configure terminal
! interface [INTERFACE]
!  standby [HSRP-GROUP] track [TRACK-ID] decrement [DECREMENT]
!  exit
! end

! HSRPv2 (IPv4/IPv6) / Custom HSRP timers
! Match on both peers.
! enable
! configure terminal
! interface [INTERFACE]
!  standby [HSRP-GROUP] timers [HELLO-SECONDS] [HOLD-SECONDS]
!  exit
! end

! Password Hashing Algorithms / Generate type 9 (scrypt) local secret
! enable
! configure terminal
! username [USERNAME] algorithm-type scrypt secret [PASSWORD]
! enable algorithm-type scrypt secret [ENABLE-SECRET]
! end

! Password Hashing Algorithms / Generate type 8 (PBKDF2-SHA256) secret
! enable
! configure terminal
! username [USERNAME] algorithm-type sha256 secret [PASSWORD]
! enable algorithm-type sha256 secret [ENABLE-SECRET]
! end

! Password Hashing Algorithms / Generate legacy type 5 (MD5) secret
! Legacy exam compatibility only; modern platforms may reject or convert type 5.
! enable
! configure terminal
! username [USERNAME] algorithm-type md5 secret [PASSWORD]
! enable algorithm-type md5 secret [ENABLE-SECRET]
! end

! Password Hashing Algorithms / Explicit type 0 line password
! Plaintext input and storage unless password encryption is enabled.
! enable
! configure terminal
! line console 0
!  password 0 [PASSWORD]
!  login
!  exit
! end

! Password Hashing Algorithms / Legacy service password encryption
! Obfuscates applicable plaintext line passwords as type 7. It does not create a strong hash.
! enable
! configure terminal
! service password-encryption
! end

! Password Hashing Algorithms / Import an already encoded type 9 secret
! The value must already be a valid encoded type 9 secret, not a plaintext password.
! enable
! configure terminal
! username [USERNAME] secret 9 [ENCODED-TYPE9-SECRET]
! end

! AAA / AAA local default login
! enable
! configure terminal
! ! Secret hash depends on the IOS/IOS XE release and platform.
! ! Prefer type 9 (scrypt) or type 8 (PBKDF2-SHA-256) where supported; type 5 (MD5) is legacy.
! ! See Password Hashing for algorithm-type examples; secret 8/9 requires an encoded hash.
! username [USERNAME] privilege 15 secret [PASSWORD]
! aaa new-model
! aaa authentication login default local
! end

! AAA / Explicit local console list
! enable
! configure terminal
! aaa new-model
! aaa authentication login [CONSOLE-LIST] local
! line console 0
!  login authentication [CONSOLE-LIST]
!  exit
! end

! AAA / Named VTY login list
! enable
! configure terminal
! aaa new-model
! aaa authentication login [LOGIN-LIST] local
! line vty 0 [VTY-LAST]
!  login authentication [LOGIN-LIST]
!  exit
! end

! AAA / RADIUS with local fallback
! Create the RADIUS group first. Local fallback normally occurs if the server is unavailable, not when it rejects credentials.
! enable
! configure terminal
! aaa new-model
! aaa authentication login [LOGIN-LIST] group [RADIUS-GROUP] local
! line vty 0 [VTY-LAST]
!  login authentication [LOGIN-LIST]
!  exit
! end

! AAA / Optional local EXEC authorization
! enable
! configure terminal
! aaa authorization exec [EXEC-LIST] local
! line vty 0 [VTY-LAST]
!  authorization exec [EXEC-LIST]
!  exit
! end

! RADIUS / Named RADIUS server
! enable
! configure terminal
! aaa new-model
! radius server [RADIUS-SERVER-NAME]
!  address ipv4 [SERVER-IP] auth-port 1812 acct-port 1813
!  key [SHARED-SECRET]
!  exit
! end

! RADIUS / RADIUS server group
! enable
! configure terminal
! aaa group server radius [RADIUS-GROUP]
!  server name [RADIUS-SERVER-NAME]
!  exit
! end

! RADIUS / Optional RADIUS source interface
! enable
! configure terminal
! ip radius source-interface [SOURCE-INTERFACE]
! end

! RADIUS / Bind RADIUS with local fallback to VTY
! enable
! configure terminal
! ! Secret hash depends on the IOS/IOS XE release and platform.
! ! Prefer type 9 (scrypt) or type 8 (PBKDF2-SHA-256) where supported; type 5 (MD5) is legacy.
! ! See Password Hashing for algorithm-type examples; secret 8/9 requires an encoded hash.
! username [USERNAME] privilege 15 secret [PASSWORD]
! aaa new-model
! aaa authentication login [LOGIN-LIST] group [RADIUS-GROUP] local
! line vty 0 [VTY-LAST]
!  login authentication [LOGIN-LIST]
!  exit
! end

! ACL / Named standard IPv4 ACL
! enable
! configure terminal
! ip access-list standard [ACL-NAME]
!  permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
!  deny any
!  exit
! interface [INTERFACE]
!  ip access-group [ACL-NAME] [DIRECTION]
!  exit
! end

! ACL / Numbered standard IPv4 ACL
! enable
! configure terminal
! access-list [STANDARD-ACL-NUMBER] permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
! access-list [STANDARD-ACL-NUMBER] deny any
! interface [INTERFACE]
!  ip access-group [STANDARD-ACL-NUMBER] [DIRECTION]
!  exit
! end

! ACL / Named extended IPv4 ACL
! enable
! configure terminal
! ip access-list extended [ACL-NAME]
!  permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
!  deny ip any any
!  exit
! interface [INTERFACE]
!  ip access-group [ACL-NAME] [DIRECTION]
!  exit
! end

! ACL / Numbered extended IPv4 ACL
! enable
! configure terminal
! access-list [EXTENDED-ACL-NUMBER] permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
! access-list [EXTENDED-ACL-NUMBER] deny ip any any
! interface [INTERFACE]
!  ip access-group [EXTENDED-ACL-NUMBER] [DIRECTION]
!  exit
! end

! ACL / IPv6 ACL
! Allow required IPv6 control traffic such as router advertisements, solicitations and ICMPv6 error messages as appropriate before the final deny.
! enable
! configure terminal
! ipv6 access-list [ACL-NAME]
!  permit tcp [SOURCE-IPV6-PREFIX]/[PREFIX-LENGTH] host [DESTINATION-IPV6] eq [PORT]
!  permit icmp any any nd-ns
!  permit icmp any any nd-na
!  deny ipv6 any any
!  exit
! interface [INTERFACE]
!  ipv6 traffic-filter [ACL-NAME] [DIRECTION]
!  exit
! end

! ACL / Restrict IPv4 management sources
! enable
! configure terminal
! ip access-list standard [MGMT-ACL]
!  permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
!  exit
! line vty 0 [VTY-LAST]
!  access-class [MGMT-ACL] in
!  exit
! end

! NTP / NTP lab server
! Only use as a local reference when the task requests it; prefer a real upstream time source in production.
! enable
! configure terminal
! ntp master [STRATUM]
! end

! NTP / NTP client
! Point the client at an existing reachable time server. For a local lab time source, use the separate NTP lab server example when requested.
! enable
! configure terminal
! ntp server [SERVER-IP]
! end

! NTP / NTP peer
! enable
! configure terminal
! ntp peer [PEER-IP]
! end

! NTP / Authenticated local NTP server
! enable
! configure terminal
! ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
! ntp authenticate
! ntp trusted-key [KEY-ID]
! ntp master [STRATUM]
! end

! NTP / Authenticated client
! Point the client at an existing reachable time server. For a local lab time source, use the separate Authenticated local NTP server example when requested.
! enable
! configure terminal
! ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
! ntp authenticate
! ntp trusted-key [KEY-ID]
! ntp server [SERVER-IP] key [KEY-ID]
! end

! NTP / Authenticated peer
! enable
! configure terminal
! ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
! ntp authenticate
! ntp trusted-key [KEY-ID]
! ntp peer [PEER-IP] key [KEY-ID]
! end

! Syslog / Local logging buffer
! enable
! configure terminal
! service timestamps log datetime msec
! logging buffered [BUFFER-BYTES] [SEVERITY]
! end

! Syslog / Remote IPv4 Syslog
! enable
! configure terminal
! service timestamps log datetime msec
! logging host [SERVER-IP]
! logging trap [SEVERITY]
! logging on
! end

! Syslog / Optional logging source interface
! enable
! configure terminal
! logging source-interface [SOURCE-INTERFACE]
! end

! SNMPv2c / Read-only community with ACL
! enable
! configure terminal
! ip access-list standard [MGMT-ACL]
!  permit host [MANAGER-IP]
!  exit
! snmp-server community [COMMUNITY] RO [MGMT-ACL]
! end

! SNMPv2c / Optional read-write community with ACL
! Allows write operations; use only where requested.
! enable
! configure terminal
! ip access-list standard [MGMT-ACL]
!  permit host [MANAGER-IP]
!  exit
! snmp-server community [COMMUNITY] RW [MGMT-ACL]
! end

! SNMPv2c / SNMPv2c trap destination
! enable
! configure terminal
! snmp-server host [MANAGER-IP] traps version 2c [COMMUNITY]
! snmp-server enable traps snmp linkdown linkup
! end

! SNMPv2c / Device location and contact
! enable
! configure terminal
! snmp-server location [LOCATION]
! snmp-server contact [CONTACT]
! end

! Save only after reviewing and verifying the configuration:
! copy running-config startup-config
! Confirm the destination filename if prompted.

Basic configuration

enable
configure terminal
hostname [HOSTNAME]
ip domain-name [DOMAIN-NAME]
enable secret [ENABLE-SECRET]
username [USERNAME] privilege 15 secret [PASSWORD]
line console 0
 login local
 logging synchronous
 exit
line vty 0 [VTY-LAST]
 login local
 exit
ipv6 unicast-routing
end
IPv4 and IPv6 Addressing

IPv4 and IPv6 addresses identify interfaces at Layer 3. A routed switchport must be converted to Layer 3 before assigning an address.

Router IPv4 Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Router IPv6 Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
IPv4 loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface loopback [LOOPBACK-ID]
 ip address [LOOPBACK-IP] 255.255.255.255
 exit
end
Command parameters
[LOOPBACK-ID]
Local loopback interface number.
[LOOPBACK-IP]
Local IPv4 loopback address.
IPv6 loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 unicast-routing
interface loopback [LOOPBACK-ID]
 ipv6 address [LOOPBACK-IPV6]/128
 exit
end
Command parameters
[LOOPBACK-ID]
Local loopback interface number.
[LOOPBACK-IPV6]
Local IPv6 loopback address.
Static Routing (IPv4/IPv6)

Static routes manually select a next hop or outgoing interface for a destination prefix. A floating route uses a higher administrative distance to serve as a backup.

Next-hop route Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
Exit-interface route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [INTERFACE]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Fully specified route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [INTERFACE] [NEXT-HOP]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NEXT-HOP]
IPv4 next-hop address.
Default route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip route 0.0.0.0 0.0.0.0 [NEXT-HOP]
end
Command parameters
[NEXT-HOP]
IPv4 next-hop address.
Floating backup route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Choose a distance greater than the preferred route.
enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] [BACKUP-DISTANCE]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
[BACKUP-DISTANCE]
Administrative distance of the floating route; greater than the primary.
Next-hop route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Exit-interface route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Fully specified route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE] [NEXT-HOP-IPV6]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Default route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
enable
configure terminal
ipv6 route ::/0 [NEXT-HOP-IPV6]
end
Command parameters
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Floating backup route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: static-routing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Choose a distance greater than the preferred route.
  • Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
enable
configure terminal
ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6] [BACKUP-DISTANCE]
end
Command parameters
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
[BACKUP-DISTANCE]
Administrative distance of the floating route; greater than the primary.
Route Summarization

Summarization advertises or installs an aggregate prefix covering multiple contiguous, aligned networks. It reduces route count but may attract traffic for unused addresses within the aggregate.

IPv4 summary route Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip route [SUMMARY-NETWORK] [SUMMARY-MASK] [NEXT-HOP]
end
Command parameters
[SUMMARY-NETWORK]
Aligned IPv4 aggregate network address.
[SUMMARY-MASK]
IPv4 aggregate subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
IPv6 summary route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 route [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH] [NEXT-HOP-IPV6]
end
Command parameters
[SUMMARY-IPV6-PREFIX]
Aligned IPv6 aggregate prefix without slash length.
[SUMMARY-PREFIX-LENGTH]
IPv6 aggregate prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
OSPFv2 ABR summary Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
router ospf [PROCESS-ID]
 area [AREA-ID] range [SUMMARY-NETWORK] [SUMMARY-MASK]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[AREA-ID]
OSPF area number or dotted area ID.
[SUMMARY-NETWORK]
Aligned IPv4 aggregate network address.
[SUMMARY-MASK]
IPv4 aggregate subnet mask.
Legacy OSPFv3 ABR summary Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 router ospf [PROCESS-ID]
 area [AREA-ID] range [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[AREA-ID]
OSPF area number or dotted area ID.
[SUMMARY-IPV6-PREFIX]
Aligned IPv6 aggregate prefix without slash length.
[SUMMARY-PREFIX-LENGTH]
IPv6 aggregate prefix length without slash.
OSPFv2 ASBR external summary Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
router ospf [PROCESS-ID]
 summary-address [SUMMARY-NETWORK] [SUMMARY-MASK]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[SUMMARY-NETWORK]
Aligned IPv4 aggregate network address.
[SUMMARY-MASK]
IPv4 aggregate subnet mask.
BGP IPv4 aggregate Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Requires contributing more-specific BGP routes. summary-only suppresses their advertisement.
enable
configure terminal
router bgp [LOCAL-AS]
 address-family ipv4 unicast
  aggregate-address [SUMMARY-NETWORK] [SUMMARY-MASK] summary-only
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[SUMMARY-NETWORK]
Aligned IPv4 aggregate network address.
[SUMMARY-MASK]
IPv4 aggregate subnet mask.
Traditional OSPFv3 ASBR external summary Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Use on the ASBR for redistributed external routes, not inter-area summarization.
enable
configure terminal
ipv6 router ospf [PROCESS-ID]
 summary-prefix [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[SUMMARY-IPV6-PREFIX]
Aligned IPv6 aggregate prefix without slash length.
[SUMMARY-PREFIX-LENGTH]
IPv6 aggregate prefix length without slash.
BGP IPv6 aggregate Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Requires contributing more-specific BGP routes; summary-only suppresses their advertisement.
enable
configure terminal
router bgp [LOCAL-AS]
 address-family ipv6 unicast
  aggregate-address [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH] summary-only
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[SUMMARY-IPV6-PREFIX]
Aligned IPv6 aggregate prefix without slash length.
[SUMMARY-PREFIX-LENGTH]
IPv6 aggregate prefix length without slash.
OSPFv2

OSPFv2 is an IPv4 link-state routing protocol. Routers establish adjacencies, synchronize link-state databases and calculate paths by cost.

Network statement Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router ospf [PROCESS-ID]
 router-id [ROUTER-ID]
 network [NETWORK] [WILDCARD-MASK] area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NETWORK]
IPv4 destination or matching network address.
[WILDCARD-MASK]
Inverse IPv4 mask used for matching.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
router ospf [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 network [PEER-NETWORK] [WILDCARD-MASK] area [AREA-ID]
 exit
end
Interface activation Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router ospf [PROCESS-ID]
 router-id [ROUTER-ID]
 exit
interface [INTERFACE]
 ip ospf [PROCESS-ID] area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
router ospf [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 exit
interface [INTERFACE]
 ip ospf [PROCESS-ID] area [AREA-ID]
 exit
end
Passive by default with selected neighbors Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router ospf [PROCESS-ID]
 passive-interface default
 no passive-interface [NEIGHBOR-INTERFACE]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[NEIGHBOR-INTERFACE]
Local interface on which routing neighbors are expected.
Multi-area interfaces Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router ospf [PROCESS-ID]
 router-id [ROUTER-ID]
 exit
interface [BACKBONE-INTERFACE]
 ip ospf [PROCESS-ID] area 0
 exit
interface [OTHER-INTERFACE]
 ip ospf [PROCESS-ID] area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[BACKBONE-INTERFACE]
Local interface connected to area 0.
[OTHER-INTERFACE]
Local interface in the non-backbone area.
[AREA-ID]
OSPF area number or dotted area ID.
Originate default route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Normally requires an installed default route; use always only if specified.
enable
configure terminal
router ospf [PROCESS-ID]
 default-information originate
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
Legacy MD5 interface authentication Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Legacy lab authentication; match key ID and secret on both peers.
enable
configure terminal
interface [INTERFACE]
 ip ospf authentication message-digest
 ip ospf message-digest-key [KEY-ID] md5 [SHARED-SECRET]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
OSPFv3 (Traditional/Legacy)

Traditional OSPFv3 uses the IPv6-specific router process and interface activation syntax. It exchanges IPv6 prefixes and uses IPv6 link-local addresses for adjacencies.

Traditional IPv6 OSPFv3 Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-legacy-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 unicast-routing
ipv6 router ospf [PROCESS-ID]
 router-id [ROUTER-ID]
 exit
interface [INTERFACE]
 ipv6 ospf [PROCESS-ID] area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[AREA-ID]
OSPF area number or dotted area ID.
Peer configuration — Adjacent router or L3 switch

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: AREA-ID

  • Use the peer's own addresses and interfaces. Process IDs are locally significant. Match area and compatible link parameters.
enable
configure terminal
ipv6 unicast-routing
ipv6 router ospf [PROCESS-ID]
 router-id [PEER-ROUTER-ID]
 exit
interface [INTERFACE]
 ipv6 ospf [PROCESS-ID] area [AREA-ID]
 exit
end
Passive interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-legacy-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 router ospf [PROCESS-ID]
 passive-interface [INTERFACE]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Traditional multi-area Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: ospfv3-legacy-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ipv6 router ospf [PROCESS-ID]
 router-id [ROUTER-ID]
 exit
interface [BACKBONE-INTERFACE]
 ipv6 ospf [PROCESS-ID] area 0
 exit
interface [OTHER-INTERFACE]
 ipv6 ospf [PROCESS-ID] area [AREA-ID]
 exit
end
Command parameters
[PROCESS-ID]
Local routing process identifier.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[BACKBONE-INTERFACE]
Local interface connected to area 0.
[OTHER-INTERFACE]
Local interface in the non-backbone area.
[AREA-ID]
OSPF area number or dotted area ID.
MP-BGP (IPv4/IPv6)

Multiprotocol BGP exchanges routes using address families. eBGP connects different autonomous systems; iBGP connects peers within one AS.

IPv4 eBGP address family Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [NEIGHBOR-IP] remote-as [REMOTE-AS]
 address-family ipv4 unicast
  neighbor [NEIGHBOR-IP] activate
  network [NETWORK] mask [SUBNET-MASK]
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IP]
Remote IPv4 peer address.
[REMOTE-AS]
BGP autonomous system number of the remote peer.
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [REMOTE-AS]
 bgp router-id [PEER-ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [LOCAL-PEER-IP] remote-as [LOCAL-AS]
 address-family ipv4 unicast
  neighbor [LOCAL-PEER-IP] activate
  network [PEER-NETWORK] mask [PEER-SUBNET-MASK]
 exit-address-family
 exit
end
IPv6 eBGP address family Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [NEIGHBOR-IPV6] remote-as [REMOTE-AS]
 address-family ipv6 unicast
  neighbor [NEIGHBOR-IPV6] activate
  network [IPV6-PREFIX]/[PREFIX-LENGTH]
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IPV6]
Remote IPv6 peer address.
[REMOTE-AS]
BGP autonomous system number of the remote peer.
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [REMOTE-AS]
 bgp router-id [PEER-ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [LOCAL-PEER-IPV6] remote-as [LOCAL-AS]
 address-family ipv6 unicast
  neighbor [LOCAL-PEER-IPV6] activate
  network [PEER-IPV6-PREFIX]/[PEER-PREFIX-LENGTH]
 exit-address-family
 exit
end
IPv4 iBGP using loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Loopbacks need reachability before the session can establish. Use next-hop-self where needed.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 neighbor [NEIGHBOR-IP] remote-as [LOCAL-AS]
 neighbor [NEIGHBOR-IP] update-source loopback [LOOPBACK-ID]
 address-family ipv4 unicast
  neighbor [NEIGHBOR-IP] activate
  neighbor [NEIGHBOR-IP] next-hop-self
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IP]
Remote IPv4 peer address.
[LOOPBACK-ID]
Local loopback interface number.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [PEER-ROUTER-ID]
 neighbor [LOCAL-PEER-IP] remote-as [LOCAL-AS]
 neighbor [LOCAL-PEER-IP] update-source loopback [LOOPBACK-ID]
 address-family ipv4 unicast
  neighbor [LOCAL-PEER-IP] activate
  neighbor [LOCAL-PEER-IP] next-hop-self
 exit-address-family
 exit
end
IPv6 iBGP using loopback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: mp-bgp-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Loopbacks need IPv6 reachability.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [NEIGHBOR-IPV6] remote-as [LOCAL-AS]
 neighbor [NEIGHBOR-IPV6] update-source loopback [LOOPBACK-ID]
 address-family ipv6 unicast
  neighbor [NEIGHBOR-IPV6] activate
  neighbor [NEIGHBOR-IPV6] next-hop-self
 exit-address-family
 exit
end
Command parameters
[LOCAL-AS]
Local BGP autonomous system number.
[ROUTER-ID]
Unique 32-bit routing protocol router ID in dotted decimal notation.
[NEIGHBOR-IPV6]
Remote IPv6 peer address.
[LOOPBACK-ID]
Local loopback interface number.
Peer configuration — BGP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Use this from the other peer's perspective; peer network advertisements and loopback IDs are local to that peer.
enable
configure terminal
router bgp [LOCAL-AS]
 bgp router-id [PEER-ROUTER-ID]
 no bgp default ipv4-unicast
 neighbor [LOCAL-PEER-IPV6] remote-as [LOCAL-AS]
 neighbor [LOCAL-PEER-IPV6] update-source loopback [LOOPBACK-ID]
 address-family ipv6 unicast
  neighbor [LOCAL-PEER-IPV6] activate
  neighbor [LOCAL-PEER-IPV6] next-hop-self
 exit-address-family
 exit
end
IP SLA

IP SLA generates active probes, such as ICMP echo, to measure reachability or performance. The operation must be scheduled to run.

ICMP echo with source interface Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip sla [SLA-ID]
 icmp-echo [DESTINATION-IP] source-interface [SOURCE-INTERFACE]
 timeout [TIMEOUT-MS]
 frequency [FREQUENCY-SECONDS]
 exit
ip sla schedule [SLA-ID] life forever start-time now
end
Command parameters
[SLA-ID]
Local IP SLA operation number.
[DESTINATION-IP]
IPv4 destination or probe target.
[SOURCE-INTERFACE]
Local source interface used for probes or management traffic.
[TIMEOUT-MS]
IP SLA timeout in milliseconds.
[FREQUENCY-SECONDS]
IP SLA operation interval in seconds.
ICMP echo with source IPv4 address Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip sla [SLA-ID]
 icmp-echo [DESTINATION-IP] source-ip [SOURCE-IP]
 timeout [TIMEOUT-MS]
 frequency [FREQUENCY-SECONDS]
 exit
ip sla schedule [SLA-ID] life forever start-time now
end
Command parameters
[SLA-ID]
Local IP SLA operation number.
[DESTINATION-IP]
IPv4 destination or probe target.
[SOURCE-IP]
Local IPv4 source address.
[TIMEOUT-MS]
IP SLA timeout in milliseconds.
[FREQUENCY-SECONDS]
IP SLA operation interval in seconds.
Object Tracking

Object tracking converts a monitored condition into an up/down state. Routing and HSRP can use the state to respond to failures.

Track IP SLA reachability Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
track [TRACK-ID] ip sla [SLA-ID] reachability
 delay down [DOWN-SECONDS] up [UP-SECONDS]
 exit
end
Command parameters
[TRACK-ID]
Local tracking object identifier.
[SLA-ID]
Local IP SLA operation number.
[DOWN-SECONDS]
Tracking delay before reporting down.
[UP-SECONDS]
Tracking delay before reporting up.
Track interface line protocol Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
track [TRACK-ID] interface [INTERFACE] line-protocol
 exit
end
Command parameters
[TRACK-ID]
Local tracking object identifier.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
Tracked static IPv4 route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Create the tracked object before applying this route.
enable
configure terminal
ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] track [TRACK-ID]
end
Command parameters
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
[TRACK-ID]
Local tracking object identifier.
HSRPv2 (IPv4/IPv6)

HSRP provides redundant default gateways using active and standby roles. Version 2 supports IPv4 and IPv6; the IPv6 virtual gateway uses a link-local address.

IPv4 HSRPv2 Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: hsrpv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 standby version 2
 standby [HSRP-GROUP] ip [VIRTUAL-IP]
 standby [HSRP-GROUP] priority [PRIORITY]
 standby [HSRP-GROUP] preempt
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[HSRP-GROUP]
Shared HSRPv2 group number; use an appropriate unused group.
[VIRTUAL-IP]
Shared HSRP virtual IPv4 address.
[PRIORITY]
Local HSRP priority.
Peer configuration — Standby peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: HSRP-GROUP, VIRTUAL-IP

enable
configure terminal
interface [INTERFACE]
 standby version 2
 standby [HSRP-GROUP] ip [VIRTUAL-IP]
 standby [HSRP-GROUP] priority [PEER-PRIORITY]
 standby [HSRP-GROUP] preempt
 exit
end
IPv6 HSRPv2 autoconfig Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: hsrpv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Ensure a real IPv6 interface address or appropriate IPv6 enabling is present before configuring HSRP.
enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 standby version 2
 standby [HSRP-GROUP] ipv6 autoconfig
 standby [HSRP-GROUP] priority [PRIORITY]
 standby [HSRP-GROUP] preempt
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[HSRP-GROUP]
Shared HSRPv2 group number; use an appropriate unused group.
[PRIORITY]
Local HSRP priority.
Peer configuration — Standby peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: HSRP-GROUP

enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 standby version 2
 standby [HSRP-GROUP] ipv6 autoconfig
 standby [HSRP-GROUP] priority [PEER-PRIORITY]
 standby [HSRP-GROUP] preempt
 exit
end
IPv6 HSRPv2 manual virtual link-local Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: hsrpv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Ensure a real IPv6 interface address or appropriate IPv6 enabling is present before configuring HSRP.
enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 standby version 2
 standby [HSRP-GROUP] ipv6 [VIRTUAL-LINK-LOCAL]
 standby [HSRP-GROUP] priority [PRIORITY]
 standby [HSRP-GROUP] preempt
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[HSRP-GROUP]
Shared HSRPv2 group number; use an appropriate unused group.
[VIRTUAL-LINK-LOCAL]
Shared HSRP virtual IPv6 link-local address.
[PRIORITY]
Local HSRP priority.
Peer configuration — Standby peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: HSRP-GROUP, VIRTUAL-LINK-LOCAL

enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 standby version 2
 standby [HSRP-GROUP] ipv6 [VIRTUAL-LINK-LOCAL]
 standby [HSRP-GROUP] priority [PEER-PRIORITY]
 standby [HSRP-GROUP] preempt
 exit
end
HSRP object tracking Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: hsrpv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
interface [INTERFACE]
 standby [HSRP-GROUP] track [TRACK-ID] decrement [DECREMENT]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[HSRP-GROUP]
Shared HSRPv2 group number; use an appropriate unused group.
[TRACK-ID]
Local tracking object identifier.
[DECREMENT]
Amount to reduce HSRP priority when tracking fails.
Custom HSRP timers Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: hsrpv2-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Match on both peers.
enable
configure terminal
interface [INTERFACE]
 standby [HSRP-GROUP] timers [HELLO-SECONDS] [HOLD-SECONDS]
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[HSRP-GROUP]
Shared HSRPv2 group number; use an appropriate unused group.
[HELLO-SECONDS]
HSRP hello interval in seconds.
[HOLD-SECONDS]
HSRP hold time in seconds.
Password Hashing Algorithms

Cisco credential types describe how a password or key is stored. Type 0 is plaintext, type 7 is reversible obfuscation, type 5 is legacy MD5 hashing, and types 8 and 9 use stronger password hashing. Type 6 is reversible AES encryption for credentials that must be recovered by the device; it is not a password hash.

Generate type 9 (scrypt) local secret Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] algorithm-type scrypt secret [PASSWORD]
enable algorithm-type scrypt secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Generate type 8 (PBKDF2-SHA256) secret Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
username [USERNAME] algorithm-type sha256 secret [PASSWORD]
enable algorithm-type sha256 secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Generate legacy type 5 (MD5) secret Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Legacy exam compatibility only; modern platforms may reject or convert type 5.
enable
configure terminal
username [USERNAME] algorithm-type md5 secret [PASSWORD]
enable algorithm-type md5 secret [ENABLE-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[ENABLE-SECRET]
New enable password, not a pre-encoded hash.
Explicit type 0 line password Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Plaintext input and storage unless password encryption is enabled.
enable
configure terminal
line console 0
 password 0 [PASSWORD]
 login
 exit
end
Command parameters
[PASSWORD]
New local or line password; never include a real password in shared material.
Legacy service password encryption Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Obfuscates applicable plaintext line passwords as type 7. It does not create a strong hash.
enable
configure terminal
service password-encryption
end
Import an already encoded type 9 secret Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: password-hashing-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • The value must already be a valid encoded type 9 secret, not a plaintext password.
enable
configure terminal
username [USERNAME] secret 9 [ENCODED-TYPE9-SECRET]
end
Command parameters
[USERNAME]
Local user account name.
[ENCODED-TYPE9-SECRET]
Existing valid type 9 encoded hash, not plaintext.
AAA

AAA separates authentication (identity), authorization (permissions) and accounting (recording activity). A method list selects authentication methods in order.

AAA local default login Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
! Secret hash depends on the IOS/IOS XE release and platform.
! Prefer type 9 (scrypt) or type 8 (PBKDF2-SHA-256) where supported; type 5 (MD5) is legacy.
! See Password Hashing for algorithm-type examples; secret 8/9 requires an encoded hash.
username [USERNAME] privilege 15 secret [PASSWORD]
aaa new-model
aaa authentication login default local
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
Explicit local console list Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
aaa new-model
aaa authentication login [CONSOLE-LIST] local
line console 0
 login authentication [CONSOLE-LIST]
 exit
end
Command parameters
[CONSOLE-LIST]
Named AAA method list for console login.
Named VTY login list Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
aaa new-model
aaa authentication login [LOGIN-LIST] local
line vty 0 [VTY-LAST]
 login authentication [LOGIN-LIST]
 exit
end
Command parameters
[LOGIN-LIST]
AAA authentication method-list name.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
RADIUS with local fallback Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Create the RADIUS group first. Local fallback normally occurs if the server is unavailable, not when it rejects credentials.
enable
configure terminal
aaa new-model
aaa authentication login [LOGIN-LIST] group [RADIUS-GROUP] local
line vty 0 [VTY-LAST]
 login authentication [LOGIN-LIST]
 exit
end
Command parameters
[LOGIN-LIST]
AAA authentication method-list name.
[RADIUS-GROUP]
Named AAA RADIUS server group.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
Optional local EXEC authorization Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
aaa authorization exec [EXEC-LIST] local
line vty 0 [VTY-LAST]
 authorization exec [EXEC-LIST]
 exit
end
Command parameters
[EXEC-LIST]
AAA EXEC authorization list name.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
RADIUS

RADIUS centralizes authentication and accounting using a shared secret and a server or server group. Cisco AAA method lists reference the server group.

Named RADIUS server Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
aaa new-model
radius server [RADIUS-SERVER-NAME]
 address ipv4 [SERVER-IP] auth-port 1812 acct-port 1813
 key [SHARED-SECRET]
 exit
end
Command parameters
[RADIUS-SERVER-NAME]
Local name for the RADIUS server definition.
[SERVER-IP]
IPv4 address of the relevant server.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
RADIUS server group Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
aaa group server radius [RADIUS-GROUP]
 server name [RADIUS-SERVER-NAME]
 exit
end
Command parameters
[RADIUS-GROUP]
Named AAA RADIUS server group.
[RADIUS-SERVER-NAME]
Local name for the RADIUS server definition.
Optional RADIUS source interface Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip radius source-interface [SOURCE-INTERFACE]
end
Command parameters
[SOURCE-INTERFACE]
Local source interface used for probes or management traffic.
Bind RADIUS with local fallback to VTY Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
! Secret hash depends on the IOS/IOS XE release and platform.
! Prefer type 9 (scrypt) or type 8 (PBKDF2-SHA-256) where supported; type 5 (MD5) is legacy.
! See Password Hashing for algorithm-type examples; secret 8/9 requires an encoded hash.
username [USERNAME] privilege 15 secret [PASSWORD]
aaa new-model
aaa authentication login [LOGIN-LIST] group [RADIUS-GROUP] local
line vty 0 [VTY-LAST]
 login authentication [LOGIN-LIST]
 exit
end
Command parameters
[USERNAME]
Local user account name.
[PASSWORD]
New local or line password; never include a real password in shared material.
[LOGIN-LIST]
AAA authentication method-list name.
[RADIUS-GROUP]
Named AAA RADIUS server group.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
ACL

Access control lists match packets in sequence and permit or deny them. Standard IPv4 ACLs match source addresses; extended IPv4 and IPv6 ACLs can match protocol, addresses and ports.

Named standard IPv4 ACL Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip access-list standard [ACL-NAME]
 permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
 deny any
 exit
interface [INTERFACE]
 ip access-group [ACL-NAME] [DIRECTION]
 exit
end
Command parameters
[ACL-NAME]
Access control list name.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Numbered standard IPv4 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
access-list [STANDARD-ACL-NUMBER] permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
access-list [STANDARD-ACL-NUMBER] deny any
interface [INTERFACE]
 ip access-group [STANDARD-ACL-NUMBER] [DIRECTION]
 exit
end
Command parameters
[STANDARD-ACL-NUMBER]
Valid numbered standard IPv4 ACL ID.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Named extended IPv4 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip access-list extended [ACL-NAME]
 permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
 deny ip any any
 exit
interface [INTERFACE]
 ip access-group [ACL-NAME] [DIRECTION]
 exit
end
Command parameters
[ACL-NAME]
Access control list name.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[DESTINATION-IP]
IPv4 destination or probe target.
[PORT]
Transport-layer port number or supported service keyword.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Numbered extended IPv4 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
access-list [EXTENDED-ACL-NUMBER] permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
access-list [EXTENDED-ACL-NUMBER] deny ip any any
interface [INTERFACE]
 ip access-group [EXTENDED-ACL-NUMBER] [DIRECTION]
 exit
end
Command parameters
[EXTENDED-ACL-NUMBER]
Valid numbered extended IPv4 ACL ID.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[DESTINATION-IP]
IPv4 destination or probe target.
[PORT]
Transport-layer port number or supported service keyword.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
IPv6 ACL Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

  • Allow required IPv6 control traffic such as router advertisements, solicitations and ICMPv6 error messages as appropriate before the final deny.
enable
configure terminal
ipv6 access-list [ACL-NAME]
 permit tcp [SOURCE-IPV6-PREFIX]/[PREFIX-LENGTH] host [DESTINATION-IPV6] eq [PORT]
 permit icmp any any nd-ns
 permit icmp any any nd-na
 deny ipv6 any any
 exit
interface [INTERFACE]
 ipv6 traffic-filter [ACL-NAME] [DIRECTION]
 exit
end
Command parameters
[ACL-NAME]
Access control list name.
[SOURCE-IPV6-PREFIX]
Source IPv6 network without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[DESTINATION-IPV6]
IPv6 destination address.
[PORT]
Transport-layer port number or supported service keyword.
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[DIRECTION]
in or out, according to the policy.
Restrict IPv4 management sources Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link

Alternative group: acl-method. Select the applicable method; do not apply mutually exclusive variants in sequence.

enable
configure terminal
ip access-list standard [MGMT-ACL]
 permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
 exit
line vty 0 [VTY-LAST]
 access-class [MGMT-ACL] in
 exit
end
Command parameters
[MGMT-ACL]
Management ACL name.
[SOURCE-NETWORK]
IPv4 source network address.
[SOURCE-WILDCARD]
IPv4 source wildcard mask.
[VTY-LAST]
Last VTY line number supported by the device; configure remaining lines as needed.
NTP

Network Time Protocol synchronizes clocks. An NTP client uses a server; peers form symmetric associations. A lab device can serve time using ntp master when specified.

NTP lab server Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Only use as a local reference when the task requests it; prefer a real upstream time source in production.
enable
configure terminal
ntp master [STRATUM]
end
Command parameters
[STRATUM]
NTP master stratum specified by the task.
NTP client Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Point the client at an existing reachable time server. For a local lab time source, use the separate NTP lab server example when requested.
enable
configure terminal
ntp server [SERVER-IP]
end
Command parameters
[SERVER-IP]
IPv4 address of the relevant server.
NTP peer Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ntp peer [PEER-IP]
end
Command parameters
[PEER-IP]
Remote IPv4 NTP peer address.
Peer configuration — Other NTP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

  • Each peer points to the other device. Both need compatible authentication if configured.
enable
configure terminal
ntp peer [SOURCE-IP]
end
Authenticated local NTP server Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp master [STRATUM]
end
Command parameters
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[STRATUM]
NTP master stratum specified by the task.
Authenticated client Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Point the client at an existing reachable time server. For a local lab time source, use the separate Authenticated local NTP server example when requested.
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp server [SERVER-IP] key [KEY-ID]
end
Command parameters
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[SERVER-IP]
IPv4 address of the relevant server.
Authenticated peer Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp peer [PEER-IP] key [KEY-ID]
end
Command parameters
[KEY-ID]
Matching authentication key identifier.
[SHARED-SECRET]
Matching shared authentication secret on participating systems.
[PEER-IP]
Remote IPv4 NTP peer address.
Peer configuration — Other NTP peer

Peer blocks use the peer's own local interfaces and identifiers. Shared values must agree; other placeholders are interpreted from that device's perspective.

Shared: KEY-ID, SHARED-SECRET

  • Each peer points to the other device. Both need compatible authentication if configured.
enable
configure terminal
ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
ntp authenticate
ntp trusted-key [KEY-ID]
ntp peer [SOURCE-IP] key [KEY-ID]
end
Syslog

Syslog sends event messages to local destinations or a remote collector. Severity levels run from 0 (emergencies) to 7 (debugging).

Local logging buffer Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
service timestamps log datetime msec
logging buffered [BUFFER-BYTES] [SEVERITY]
end
Command parameters
[BUFFER-BYTES]
Local logging buffer capacity in bytes.
[SEVERITY]
Syslog severity name or number from 0 to 7.
Remote IPv4 Syslog Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
service timestamps log datetime msec
logging host [SERVER-IP]
logging trap [SEVERITY]
logging on
end
Command parameters
[SERVER-IP]
IPv4 address of the relevant server.
[SEVERITY]
Syslog severity name or number from 0 to 7.
Optional logging source interface Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
logging source-interface [SOURCE-INTERFACE]
end
Command parameters
[SOURCE-INTERFACE]
Local source interface used for probes or management traffic.
SNMPv2c

SNMPv2c allows a manager to poll device information and receive notifications using a community string. It lacks modern authenticated encryption and is included for the exam.

Read-only community with ACL Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip access-list standard [MGMT-ACL]
 permit host [MANAGER-IP]
 exit
snmp-server community [COMMUNITY] RO [MGMT-ACL]
end
Command parameters
[MGMT-ACL]
Management ACL name.
[MANAGER-IP]
Authorized SNMP manager IPv4 address.
[COMMUNITY]
SNMPv2c community string; keep secret.
Optional read-write community with ACL Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Allows write operations; use only where requested.
enable
configure terminal
ip access-list standard [MGMT-ACL]
 permit host [MANAGER-IP]
 exit
snmp-server community [COMMUNITY] RW [MGMT-ACL]
end
Command parameters
[MGMT-ACL]
Management ACL name.
[MANAGER-IP]
Authorized SNMP manager IPv4 address.
[COMMUNITY]
SNMPv2c community string; keep secret.
SNMPv2c trap destination Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
snmp-server host [MANAGER-IP] traps version 2c [COMMUNITY]
snmp-server enable traps snmp linkdown linkup
end
Command parameters
[MANAGER-IP]
Authorized SNMP manager IPv4 address.
[COMMUNITY]
SNMPv2c community string; keep secret.
Device location and contact Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
snmp-server location [LOCATION]
snmp-server contact [CONTACT]
end
Command parameters
[LOCATION]
SNMP device location string.
[CONTACT]
SNMP administrative contact string.

Save configuration

Run after successful verification. Confirm the destination filename if prompted.

copy running-config startup-config

Verify All

Read-only checks. Lines containing placeholders are commented; choose and adapt before running. Do not share unredacted configuration output.

Download Verify TXT
! Pcornel Finals - Case Skills Exam / Router Verify All
! Content version: 1.1-draft
! Privileged EXEC. Run the relevant checks; commands with placeholders require replacement.
! The show running-config/startup-config output may contain sensitive credentials.
! Disruptive tests and credential-bearing tests are excluded.

! IPv4 and IPv6 Addressing
show ip interface brief
show ipv6 interface brief
! show interfaces [INTERFACE]

! Static Routing (IPv4/IPv6)
show ip route static
show ipv6 route static
! show ip route [DESTINATION-IP]
! show ipv6 route [DESTINATION-IPV6]

! Route Summarization
! show ip route [SUMMARY-NETWORK]
! show ipv6 route [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
show ip ospf database summary
show ipv6 ospf summary-prefix
show bgp ipv6 unicast
show bgp ipv4 unicast

! OSPFv2
show ip ospf neighbor
show ip ospf interface brief
show ip route ospf
show ip protocols

! OSPFv3 (Traditional/Legacy)
show ipv6 ospf neighbor
show ipv6 ospf interface brief
show ipv6 route ospf

! MP-BGP (IPv4/IPv6)
show bgp ipv4 unicast summary
show bgp ipv6 unicast summary

! IP SLA
show ip sla statistics
show ip sla configuration

! Object Tracking
show track
! show track [TRACK-ID]

! HSRPv2 (IPv4/IPv6)
show standby brief
show standby

! Password Hashing Algorithms
show running-config | include ^username
show running-config | include ^enable secret
show running-config | include ^service password-encryption

! AAA
show running-config | section ^aaa
show running-config | section ^line
show users

! RADIUS
show aaa servers
show radius statistics

! ACL
show ip access-lists
! show ip interface [INTERFACE]
show ipv6 access-list
! show ipv6 interface [INTERFACE]

! NTP
show ntp associations
show ntp status
show clock detail

! Syslog
show logging
show running-config | include ^logging

! SNMPv2c
show snmp
show snmp host
show running-config | include ^snmp-server

! Final device verification
show ip route
show ipv6 route
show interfaces
show running-config
show startup-config

Case Skills Exam · Router — Golden Script

! Pcornel Finals - Case Skills Exam / Router
! Content version: 1.1-draft
! REFERENCE ONLY: replace every placeholder and choose the correct device/task-specific variants.
! Basic configuration is active text; all alternative sections below are commented references.
! Use Copy Section for a single relevant variant. Do not paste this entire file blindly.

! Basic configuration
enable
configure terminal
hostname [HOSTNAME]
ip domain-name [DOMAIN-NAME]
enable secret [ENABLE-SECRET]
username [USERNAME] privilege 15 secret [PASSWORD]
line console 0
 login local
 logging synchronous
 exit
line vty 0 [VTY-LAST]
 login local
 exit
ipv6 unicast-routing
end

! IPv4 and IPv6 Addressing / Router IPv4
! enable
! configure terminal
! interface [INTERFACE]
!  ip address [IP-ADDRESS] [SUBNET-MASK]
!  no shutdown
!  exit
! end

! IPv4 and IPv6 Addressing / Router IPv6
! enable
! configure terminal
! ipv6 unicast-routing
! interface [INTERFACE]
!  ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
!  no shutdown
!  exit
! end

! IPv4 and IPv6 Addressing / IPv4 loopback
! enable
! configure terminal
! interface loopback [LOOPBACK-ID]
!  ip address [LOOPBACK-IP] 255.255.255.255
!  exit
! end

! IPv4 and IPv6 Addressing / IPv6 loopback
! enable
! configure terminal
! ipv6 unicast-routing
! interface loopback [LOOPBACK-ID]
!  ipv6 address [LOOPBACK-IPV6]/128
!  exit
! end

! IPv4 and IPv6 Addressing / Manual link-local address
! enable
! configure terminal
! interface [INTERFACE]
!  ipv6 address [LINK-LOCAL-ADDRESS] link-local
!  exit
! end

! Static Routing (IPv4/IPv6) / Next-hop route
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP]
! end

! Static Routing (IPv4/IPv6) / Exit-interface route
! Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [INTERFACE]
! end

! Static Routing (IPv4/IPv6) / Fully specified route
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [INTERFACE] [NEXT-HOP]
! end

! Static Routing (IPv4/IPv6) / Default route
! enable
! configure terminal
! ip route 0.0.0.0 0.0.0.0 [NEXT-HOP]
! end

! Static Routing (IPv4/IPv6) / Floating backup route
! Choose a distance greater than the preferred route.
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] [BACKUP-DISTANCE]
! end

! Static Routing (IPv4/IPv6) / Next-hop route
! Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6]
! end

! Static Routing (IPv4/IPv6) / Exit-interface route
! Prefer this on a point-to-point link; on multiaccess Ethernet use a next hop or fully specified route.
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE]
! end

! Static Routing (IPv4/IPv6) / Fully specified route
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [INTERFACE] [NEXT-HOP-IPV6]
! end

! Static Routing (IPv4/IPv6) / Default route
! Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
! enable
! configure terminal
! ipv6 route ::/0 [NEXT-HOP-IPV6]
! end

! Static Routing (IPv4/IPv6) / Floating backup route
! Choose a distance greater than the preferred route.
! Use a resolvable global-unicast next hop in this form. If the next hop is link-local, include the outgoing interface (fully specified route).
! enable
! configure terminal
! ipv6 route [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6] [BACKUP-DISTANCE]
! end

! Route Summarization / IPv4 summary route
! enable
! configure terminal
! ip route [SUMMARY-NETWORK] [SUMMARY-MASK] [NEXT-HOP]
! end

! Route Summarization / IPv6 summary route
! enable
! configure terminal
! ipv6 route [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH] [NEXT-HOP-IPV6]
! end

! Route Summarization / OSPFv2 ABR summary
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  area [AREA-ID] range [SUMMARY-NETWORK] [SUMMARY-MASK]
!  exit
! end

! Route Summarization / Legacy OSPFv3 ABR summary
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  area [AREA-ID] range [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
!  exit
! end

! Route Summarization / OSPFv2 ASBR external summary
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  summary-address [SUMMARY-NETWORK] [SUMMARY-MASK]
!  exit
! end

! Route Summarization / BGP IPv4 aggregate
! Requires contributing more-specific BGP routes. summary-only suppresses their advertisement.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  address-family ipv4 unicast
!   aggregate-address [SUMMARY-NETWORK] [SUMMARY-MASK] summary-only
!  exit-address-family
!  exit
! end

! Route Summarization / Traditional OSPFv3 ASBR external summary
! Use on the ASBR for redistributed external routes, not inter-area summarization.
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  summary-prefix [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
!  exit
! end

! Route Summarization / BGP IPv6 aggregate
! Requires contributing more-specific BGP routes; summary-only suppresses their advertisement.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  address-family ipv6 unicast
!   aggregate-address [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH] summary-only
!  exit-address-family
!  exit
! end

! OSPFv2 / Network statement
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  network [NETWORK] [WILDCARD-MASK] area [AREA-ID]
!  exit
! end

! OSPFv2 / Interface activation
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [INTERFACE]
!  ip ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! OSPFv2 / Passive by default with selected neighbors
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  passive-interface default
!  no passive-interface [NEIGHBOR-INTERFACE]
!  exit
! end

! OSPFv2 / Multi-area interfaces
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [BACKBONE-INTERFACE]
!  ip ospf [PROCESS-ID] area 0
!  exit
! interface [OTHER-INTERFACE]
!  ip ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! OSPFv2 / Originate default route
! Normally requires an installed default route; use always only if specified.
! enable
! configure terminal
! router ospf [PROCESS-ID]
!  default-information originate
!  exit
! end

! OSPFv2 / Legacy MD5 interface authentication
! Legacy lab authentication; match key ID and secret on both peers.
! enable
! configure terminal
! interface [INTERFACE]
!  ip ospf authentication message-digest
!  ip ospf message-digest-key [KEY-ID] md5 [SHARED-SECRET]
!  exit
! end

! OSPFv3 (Traditional/Legacy) / Traditional IPv6 OSPFv3
! enable
! configure terminal
! ipv6 unicast-routing
! ipv6 router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [INTERFACE]
!  ipv6 ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! OSPFv3 (Traditional/Legacy) / Passive interface
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  passive-interface [INTERFACE]
!  exit
! end

! OSPFv3 (Traditional/Legacy) / Traditional multi-area
! enable
! configure terminal
! ipv6 router ospf [PROCESS-ID]
!  router-id [ROUTER-ID]
!  exit
! interface [BACKBONE-INTERFACE]
!  ipv6 ospf [PROCESS-ID] area 0
!  exit
! interface [OTHER-INTERFACE]
!  ipv6 ospf [PROCESS-ID] area [AREA-ID]
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv4 eBGP address family
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  no bgp default ipv4-unicast
!  neighbor [NEIGHBOR-IP] remote-as [REMOTE-AS]
!  address-family ipv4 unicast
!   neighbor [NEIGHBOR-IP] activate
!   network [NETWORK] mask [SUBNET-MASK]
!  exit-address-family
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv6 eBGP address family
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  no bgp default ipv4-unicast
!  neighbor [NEIGHBOR-IPV6] remote-as [REMOTE-AS]
!  address-family ipv6 unicast
!   neighbor [NEIGHBOR-IPV6] activate
!   network [IPV6-PREFIX]/[PREFIX-LENGTH]
!  exit-address-family
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv4 iBGP using loopback
! Loopbacks need reachability before the session can establish. Use next-hop-self where needed.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  neighbor [NEIGHBOR-IP] remote-as [LOCAL-AS]
!  neighbor [NEIGHBOR-IP] update-source loopback [LOOPBACK-ID]
!  address-family ipv4 unicast
!   neighbor [NEIGHBOR-IP] activate
!   neighbor [NEIGHBOR-IP] next-hop-self
!  exit-address-family
!  exit
! end

! MP-BGP (IPv4/IPv6) / IPv6 iBGP using loopback
! Loopbacks need IPv6 reachability.
! enable
! configure terminal
! router bgp [LOCAL-AS]
!  bgp router-id [ROUTER-ID]
!  no bgp default ipv4-unicast
!  neighbor [NEIGHBOR-IPV6] remote-as [LOCAL-AS]
!  neighbor [NEIGHBOR-IPV6] update-source loopback [LOOPBACK-ID]
!  address-family ipv6 unicast
!   neighbor [NEIGHBOR-IPV6] activate
!   neighbor [NEIGHBOR-IPV6] next-hop-self
!  exit-address-family
!  exit
! end

! IP SLA / ICMP echo with source interface
! enable
! configure terminal
! ip sla [SLA-ID]
!  icmp-echo [DESTINATION-IP] source-interface [SOURCE-INTERFACE]
!  timeout [TIMEOUT-MS]
!  frequency [FREQUENCY-SECONDS]
!  exit
! ip sla schedule [SLA-ID] life forever start-time now
! end

! IP SLA / ICMP echo with source IPv4 address
! enable
! configure terminal
! ip sla [SLA-ID]
!  icmp-echo [DESTINATION-IP] source-ip [SOURCE-IP]
!  timeout [TIMEOUT-MS]
!  frequency [FREQUENCY-SECONDS]
!  exit
! ip sla schedule [SLA-ID] life forever start-time now
! end

! Object Tracking / Track IP SLA reachability
! enable
! configure terminal
! track [TRACK-ID] ip sla [SLA-ID] reachability
!  delay down [DOWN-SECONDS] up [UP-SECONDS]
!  exit
! end

! Object Tracking / Track interface line protocol
! enable
! configure terminal
! track [TRACK-ID] interface [INTERFACE] line-protocol
!  exit
! end

! Object Tracking / Tracked static IPv4 route
! Create the tracked object before applying this route.
! enable
! configure terminal
! ip route [NETWORK] [SUBNET-MASK] [NEXT-HOP] track [TRACK-ID]
! end

! HSRPv2 (IPv4/IPv6) / IPv4 HSRPv2
! enable
! configure terminal
! interface [INTERFACE]
!  standby version 2
!  standby [HSRP-GROUP] ip [VIRTUAL-IP]
!  standby [HSRP-GROUP] priority [PRIORITY]
!  standby [HSRP-GROUP] preempt
!  exit
! end

! HSRPv2 (IPv4/IPv6) / IPv6 HSRPv2 autoconfig
! Ensure a real IPv6 interface address or appropriate IPv6 enabling is present before configuring HSRP.
! enable
! configure terminal
! ipv6 unicast-routing
! interface [INTERFACE]
!  standby version 2
!  standby [HSRP-GROUP] ipv6 autoconfig
!  standby [HSRP-GROUP] priority [PRIORITY]
!  standby [HSRP-GROUP] preempt
!  exit
! end

! HSRPv2 (IPv4/IPv6) / IPv6 HSRPv2 manual virtual link-local
! Ensure a real IPv6 interface address or appropriate IPv6 enabling is present before configuring HSRP.
! enable
! configure terminal
! ipv6 unicast-routing
! interface [INTERFACE]
!  standby version 2
!  standby [HSRP-GROUP] ipv6 [VIRTUAL-LINK-LOCAL]
!  standby [HSRP-GROUP] priority [PRIORITY]
!  standby [HSRP-GROUP] preempt
!  exit
! end

! HSRPv2 (IPv4/IPv6) / HSRP object tracking
! enable
! configure terminal
! interface [INTERFACE]
!  standby [HSRP-GROUP] track [TRACK-ID] decrement [DECREMENT]
!  exit
! end

! HSRPv2 (IPv4/IPv6) / Custom HSRP timers
! Match on both peers.
! enable
! configure terminal
! interface [INTERFACE]
!  standby [HSRP-GROUP] timers [HELLO-SECONDS] [HOLD-SECONDS]
!  exit
! end

! Password Hashing Algorithms / Generate type 9 (scrypt) local secret
! enable
! configure terminal
! username [USERNAME] algorithm-type scrypt secret [PASSWORD]
! enable algorithm-type scrypt secret [ENABLE-SECRET]
! end

! Password Hashing Algorithms / Generate type 8 (PBKDF2-SHA256) secret
! enable
! configure terminal
! username [USERNAME] algorithm-type sha256 secret [PASSWORD]
! enable algorithm-type sha256 secret [ENABLE-SECRET]
! end

! Password Hashing Algorithms / Generate legacy type 5 (MD5) secret
! Legacy exam compatibility only; modern platforms may reject or convert type 5.
! enable
! configure terminal
! username [USERNAME] algorithm-type md5 secret [PASSWORD]
! enable algorithm-type md5 secret [ENABLE-SECRET]
! end

! Password Hashing Algorithms / Explicit type 0 line password
! Plaintext input and storage unless password encryption is enabled.
! enable
! configure terminal
! line console 0
!  password 0 [PASSWORD]
!  login
!  exit
! end

! Password Hashing Algorithms / Legacy service password encryption
! Obfuscates applicable plaintext line passwords as type 7. It does not create a strong hash.
! enable
! configure terminal
! service password-encryption
! end

! Password Hashing Algorithms / Import an already encoded type 9 secret
! The value must already be a valid encoded type 9 secret, not a plaintext password.
! enable
! configure terminal
! username [USERNAME] secret 9 [ENCODED-TYPE9-SECRET]
! end

! AAA / AAA local default login
! enable
! configure terminal
! ! Secret hash depends on the IOS/IOS XE release and platform.
! ! Prefer type 9 (scrypt) or type 8 (PBKDF2-SHA-256) where supported; type 5 (MD5) is legacy.
! ! See Password Hashing for algorithm-type examples; secret 8/9 requires an encoded hash.
! username [USERNAME] privilege 15 secret [PASSWORD]
! aaa new-model
! aaa authentication login default local
! end

! AAA / Explicit local console list
! enable
! configure terminal
! aaa new-model
! aaa authentication login [CONSOLE-LIST] local
! line console 0
!  login authentication [CONSOLE-LIST]
!  exit
! end

! AAA / Named VTY login list
! enable
! configure terminal
! aaa new-model
! aaa authentication login [LOGIN-LIST] local
! line vty 0 [VTY-LAST]
!  login authentication [LOGIN-LIST]
!  exit
! end

! AAA / RADIUS with local fallback
! Create the RADIUS group first. Local fallback normally occurs if the server is unavailable, not when it rejects credentials.
! enable
! configure terminal
! aaa new-model
! aaa authentication login [LOGIN-LIST] group [RADIUS-GROUP] local
! line vty 0 [VTY-LAST]
!  login authentication [LOGIN-LIST]
!  exit
! end

! AAA / Optional local EXEC authorization
! enable
! configure terminal
! aaa authorization exec [EXEC-LIST] local
! line vty 0 [VTY-LAST]
!  authorization exec [EXEC-LIST]
!  exit
! end

! RADIUS / Named RADIUS server
! enable
! configure terminal
! aaa new-model
! radius server [RADIUS-SERVER-NAME]
!  address ipv4 [SERVER-IP] auth-port 1812 acct-port 1813
!  key [SHARED-SECRET]
!  exit
! end

! RADIUS / RADIUS server group
! enable
! configure terminal
! aaa group server radius [RADIUS-GROUP]
!  server name [RADIUS-SERVER-NAME]
!  exit
! end

! RADIUS / Optional RADIUS source interface
! enable
! configure terminal
! ip radius source-interface [SOURCE-INTERFACE]
! end

! RADIUS / Bind RADIUS with local fallback to VTY
! enable
! configure terminal
! ! Secret hash depends on the IOS/IOS XE release and platform.
! ! Prefer type 9 (scrypt) or type 8 (PBKDF2-SHA-256) where supported; type 5 (MD5) is legacy.
! ! See Password Hashing for algorithm-type examples; secret 8/9 requires an encoded hash.
! username [USERNAME] privilege 15 secret [PASSWORD]
! aaa new-model
! aaa authentication login [LOGIN-LIST] group [RADIUS-GROUP] local
! line vty 0 [VTY-LAST]
!  login authentication [LOGIN-LIST]
!  exit
! end

! ACL / Named standard IPv4 ACL
! enable
! configure terminal
! ip access-list standard [ACL-NAME]
!  permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
!  deny any
!  exit
! interface [INTERFACE]
!  ip access-group [ACL-NAME] [DIRECTION]
!  exit
! end

! ACL / Numbered standard IPv4 ACL
! enable
! configure terminal
! access-list [STANDARD-ACL-NUMBER] permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
! access-list [STANDARD-ACL-NUMBER] deny any
! interface [INTERFACE]
!  ip access-group [STANDARD-ACL-NUMBER] [DIRECTION]
!  exit
! end

! ACL / Named extended IPv4 ACL
! enable
! configure terminal
! ip access-list extended [ACL-NAME]
!  permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
!  deny ip any any
!  exit
! interface [INTERFACE]
!  ip access-group [ACL-NAME] [DIRECTION]
!  exit
! end

! ACL / Numbered extended IPv4 ACL
! enable
! configure terminal
! access-list [EXTENDED-ACL-NUMBER] permit tcp [SOURCE-NETWORK] [SOURCE-WILDCARD] host [DESTINATION-IP] eq [PORT]
! access-list [EXTENDED-ACL-NUMBER] deny ip any any
! interface [INTERFACE]
!  ip access-group [EXTENDED-ACL-NUMBER] [DIRECTION]
!  exit
! end

! ACL / IPv6 ACL
! Allow required IPv6 control traffic such as router advertisements, solicitations and ICMPv6 error messages as appropriate before the final deny.
! enable
! configure terminal
! ipv6 access-list [ACL-NAME]
!  permit tcp [SOURCE-IPV6-PREFIX]/[PREFIX-LENGTH] host [DESTINATION-IPV6] eq [PORT]
!  permit icmp any any nd-ns
!  permit icmp any any nd-na
!  deny ipv6 any any
!  exit
! interface [INTERFACE]
!  ipv6 traffic-filter [ACL-NAME] [DIRECTION]
!  exit
! end

! ACL / Restrict IPv4 management sources
! enable
! configure terminal
! ip access-list standard [MGMT-ACL]
!  permit [SOURCE-NETWORK] [SOURCE-WILDCARD]
!  exit
! line vty 0 [VTY-LAST]
!  access-class [MGMT-ACL] in
!  exit
! end

! NTP / NTP lab server
! Only use as a local reference when the task requests it; prefer a real upstream time source in production.
! enable
! configure terminal
! ntp master [STRATUM]
! end

! NTP / NTP client
! Point the client at an existing reachable time server. For a local lab time source, use the separate NTP lab server example when requested.
! enable
! configure terminal
! ntp server [SERVER-IP]
! end

! NTP / NTP peer
! enable
! configure terminal
! ntp peer [PEER-IP]
! end

! NTP / Authenticated local NTP server
! enable
! configure terminal
! ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
! ntp authenticate
! ntp trusted-key [KEY-ID]
! ntp master [STRATUM]
! end

! NTP / Authenticated client
! Point the client at an existing reachable time server. For a local lab time source, use the separate Authenticated local NTP server example when requested.
! enable
! configure terminal
! ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
! ntp authenticate
! ntp trusted-key [KEY-ID]
! ntp server [SERVER-IP] key [KEY-ID]
! end

! NTP / Authenticated peer
! enable
! configure terminal
! ntp authentication-key [KEY-ID] md5 [SHARED-SECRET]
! ntp authenticate
! ntp trusted-key [KEY-ID]
! ntp peer [PEER-IP] key [KEY-ID]
! end

! Syslog / Local logging buffer
! enable
! configure terminal
! service timestamps log datetime msec
! logging buffered [BUFFER-BYTES] [SEVERITY]
! end

! Syslog / Remote IPv4 Syslog
! enable
! configure terminal
! service timestamps log datetime msec
! logging host [SERVER-IP]
! logging trap [SEVERITY]
! logging on
! end

! Syslog / Optional logging source interface
! enable
! configure terminal
! logging source-interface [SOURCE-INTERFACE]
! end

! SNMPv2c / Read-only community with ACL
! enable
! configure terminal
! ip access-list standard [MGMT-ACL]
!  permit host [MANAGER-IP]
!  exit
! snmp-server community [COMMUNITY] RO [MGMT-ACL]
! end

! SNMPv2c / Optional read-write community with ACL
! Allows write operations; use only where requested.
! enable
! configure terminal
! ip access-list standard [MGMT-ACL]
!  permit host [MANAGER-IP]
!  exit
! snmp-server community [COMMUNITY] RW [MGMT-ACL]
! end

! SNMPv2c / SNMPv2c trap destination
! enable
! configure terminal
! snmp-server host [MANAGER-IP] traps version 2c [COMMUNITY]
! snmp-server enable traps snmp linkdown linkup
! end

! SNMPv2c / Device location and contact
! enable
! configure terminal
! snmp-server location [LOCATION]
! snmp-server contact [CONTACT]
! end

! Save only after reviewing and verifying the configuration:
! copy running-config startup-config
! Confirm the destination filename if prompted.

Verify All

! Pcornel Finals - Case Skills Exam / Router Verify All
! Content version: 1.1-draft
! Privileged EXEC. Run the relevant checks; commands with placeholders require replacement.
! The show running-config/startup-config output may contain sensitive credentials.
! Disruptive tests and credential-bearing tests are excluded.

! IPv4 and IPv6 Addressing
show ip interface brief
show ipv6 interface brief
! show interfaces [INTERFACE]

! Static Routing (IPv4/IPv6)
show ip route static
show ipv6 route static
! show ip route [DESTINATION-IP]
! show ipv6 route [DESTINATION-IPV6]

! Route Summarization
! show ip route [SUMMARY-NETWORK]
! show ipv6 route [SUMMARY-IPV6-PREFIX]/[SUMMARY-PREFIX-LENGTH]
show ip ospf database summary
show ipv6 ospf summary-prefix
show bgp ipv6 unicast
show bgp ipv4 unicast

! OSPFv2
show ip ospf neighbor
show ip ospf interface brief
show ip route ospf
show ip protocols

! OSPFv3 (Traditional/Legacy)
show ipv6 ospf neighbor
show ipv6 ospf interface brief
show ipv6 route ospf

! MP-BGP (IPv4/IPv6)
show bgp ipv4 unicast summary
show bgp ipv6 unicast summary

! IP SLA
show ip sla statistics
show ip sla configuration

! Object Tracking
show track
! show track [TRACK-ID]

! HSRPv2 (IPv4/IPv6)
show standby brief
show standby

! Password Hashing Algorithms
show running-config | include ^username
show running-config | include ^enable secret
show running-config | include ^service password-encryption

! AAA
show running-config | section ^aaa
show running-config | section ^line
show users

! RADIUS
show aaa servers
show radius statistics

! ACL
show ip access-lists
! show ip interface [INTERFACE]
show ipv6 access-list
! show ipv6 interface [INTERFACE]

! NTP
show ntp associations
show ntp status
show clock detail

! Syslog
show logging
show running-config | include ^logging

! SNMPv2c
show snmp
show snmp host
show running-config | include ^snmp-server

! Final device verification
show ip route
show ipv6 route
show interfaces
show running-config
show startup-config

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?