IPv6 OSPF
Cheat sheet · https://pcornel.dk/topic.php?topic=1115
Answer
IPv6 OSPF is OSPFv3 carrying IPv6 routes: adjacencies form between link-local addresses, and IPv6 prefixes are advertised in dedicated LSAs separate from the topology.
Remember
ipv6 unicast-routing must be on. Enable it per interface: ipv6 ospf <process> area <area> (classic) or ospfv3 <process> ipv6 area <area> (address-family mode). A router with no IPv4 address needs router-id configured by hand. Next hops in the routing table are link-local.
First checks
show ospfv3 neighbor(orshow ipv6 ospf neighbor) — neighbours and state.show ospfv3 interface brief(orshow ipv6 ospf interface brief) — OSPFv3 interfaces and areas.show ospfv3 database— the LSAs.show ipv6 route ospf— the routes installed.show ipv6 interface brief— link-local addresses, which OSPFv3 uses for adjacencies.
Commands
show ospfv3 interface- Display OSPFv3 interface settings.
show ipv6 route ospf- Display OSPFv3 routes in the IPv6 routing table.
show ospfv3 …show ipv6 ospf …show ospfv3 interface briefshow ospfv3 neighborshow ospfv3 databaseip routingshow ipv6 ospf [<pid>] [<area>] interfaceshow ipv6 ospfshow ip ospf …
Verify in this order
ipv6 unicast-routing on → router ID set → interfaces enabled in the right area → link-local hellos match → FULL → LSAs exchanged → IPv6 routes installed with link-local next hops
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
IPv6 OSPF operational reference
| Boundary | Known-good for IPv6 OSPF | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches OSPFv3 operation for IPv6 unicast, where adjacencies are interface-centric and commonly use IPv6 link-local next hops while prefix reachability is carried separately from classic OSPFv2 addressing assumptions design | Policy, area, family or metric input differs | Compare effective configuration |
| Protocol state | Stable expected adjacency/database/topology decision | neighbors missing because OSPFv3 is not enabled on the intended interface, link-local or interface-scope confusion, a valid Full adjacency with the required IPv6 prefix absent from the LSDB or RIB, a route installed with an unexpected link-local next hop, or operators expecting OSPFv2-style network statements to explain interface participation | Inspect peer/LSDB/topology detail |
| Route/forwarding | Expected RIB/FIB next hop or multipath set | Protocol state exists but route/path disagrees | RIB/FIB/CEF and next-hop proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or state was forced | Regression test |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1115