Pcornel
Networking · Routing › Static Routing

IPv6

Cheat sheet · https://pcornel.dk/topic.php?topic=625

Back to the Topic

Answer

IPv6 static routing works like IPv4: ipv6 route <prefix>/<length> <next hop | interface> [distance]. A next hop that is a link-local address must be given together with the outgoing interface.

Remember

ipv6 unicast-routing must be enabled for the router to forward IPv6. With a link-local next hop, write both interface and address: ipv6 route ::/0 Gi0/0 fe80::1. The next hop must be reachable and resolved by Neighbor Discovery.

First checks

  • show ipv6 route static — the static routes installed.
  • show running-config | include ipv6 route|ipv6 unicast-routing — configuration.
  • show ipv6 neighbors — whether the next hop is resolved.
  • show ipv6 cef <prefix> — the forwarding entry.
  • ping ipv6 <next hop> — reachability (name the interface for link-local).

Commands

show ipv6 static [detail]
show ipv6 route static
debug ipv6 routing
ping

Verify in this order

ipv6 unicast-routing on → route configured (link-local next hop with interface) → next hop reachable and resolved by ND → route installed → CEF forwards

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

IPv6 static route forms

IntentSource commandKey point
Remote prefixipv6 route <prefix>/<length> <next-hop>Next hop must be usable in the correct scope
One hostipv6 route <address>/128 <next-hop>/128 exact match
Default/fallbackipv6 route ::/0 <next-hop>Least-specific IPv6 route
Backup pathipv6 route <prefix>/<length> <next-hop> <administrative-distance>Higher AD than primary

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=625

Confirmation

Confirm action

Continue?