Pcornel
Networking · Routing › Static Routing › IPv6

Network Route

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

Back to the Topic

Answer

An IPv6 static network route sends traffic for a configured prefix, such as 2001:db8:20::/64, to a next hop or exit interface: ipv6 route 2001:db8:20::/64 2001:db8:12::2. The longest matching prefix wins over shorter ones.

Remember

ipv6 unicast-routing must be enabled or the router does not forward IPv6. A static route is installed only while its next hop is reachable or its exit interface is up. A link-local next hop is valid only together with the interface. Static AD is 1; the most specific prefix wins.

First checks

show ipv6 route static → S entries with next hop. show ipv6 route <prefix> → the route that actually matches. show running-config | include ipv6 route|unicast-routing → what is configured. show ipv6 neighbors → next hop resolved.

Commands

ipv6 route <prefix>/<length> <next-hop>
Configure an IPv6 static route through a next hop.
show ipv6 route static
show ipv6 route
show ipv6 route <prefix>
show ipv6 neighbors

Verify in this order

ipv6 unicast-routing → static route configured → next hop or interface usable → S entry in the routing table → neighbour discovery for the next hop → traffic forwarded → return route on the far side

Where it usually breaks

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

Network Route · operational reference

IPv6 route componentMeaning
Prefix/lengthDestination set
Global next hopCan be recursively routed
Link-local next hopRequires local-link/interface context
ND/CEFResolves forwarding adjacency

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

Confirmation

Confirm action

Continue?