IPv6
Cheat sheet · https://pcornel.dk/topic.php?topic=625
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 staticdebug ipv6 routingping
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
| Intent | Source command | Key point |
|---|---|---|
| Remote prefix | ipv6 route <prefix>/<length> <next-hop> | Next hop must be usable in the correct scope |
| One host | ipv6 route <address>/128 <next-hop> | /128 exact match |
| Default/fallback | ipv6 route ::/0 <next-hop> | Least-specific IPv6 route |
| Backup path | ipv6 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