Pcornel
Networking · Routing › Static Routing › IPv6

Host Route

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

Back to the Topic

Answer

An IPv6 host route uses a /128 prefix to match exactly one IPv6 address. It overrides broader connected, static or dynamic prefixes for that destination by longest-prefix match when eligible. Host routes are useful for explicit reachability, traffic steering or management endpoints, but they can also mask a broader routing problem if added as an ad-hoc workaround.

Remember

A /128 matches exactly one address and, being the longest possible prefix, beats every other route to it. Do not confuse a static host route (S) with the L /128 entries — those are the router's own interface addresses, installed automatically.

First checks

show ipv6 route <address> → the entry that wins for that address and its code (S, L, C). show ipv6 route static → your /128 routes. show ipv6 cef <address> → the interface used.

Commands

ipv6 route <address>/128 <next-hop>
Configure a /128 IPv6 host static route.
show ipv6 route <address>
show ipv6 static <address>/128 detail

Verify in this order

/128 static configured → next hop usable → S …/128 installed → longest match beats the /64 → traffic for that one address follows the host route; the rest of the subnet is unchanged

Where it usually breaks

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

Host Route operational reference

BoundaryKnown-good for Host RouteSuspicious signatureNext proof
IntentMatches IPv6 /128 host route designConfiguration differs from peer/designCompare effective config
Control stateStable expected role/route/member statea /128 silently overriding the expected aggregate path, a stale host route surviving topology changes, or a host route resolving through an unavailable next hopInspect protocol/RIB detail
ForwardingExpected egress/Port-Channel/VLAN pathState exists but traffic path disagreesFIB/MAC/adjacency
ClosureOriginal test passes for explained reasonSymptom merely moved or was bypassedRegression test

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

Confirmation

Confirm action

Continue?