Router ID
Cheat sheet · https://pcornel.dk/topic.php?topic=1116
Answer
The OSPF router ID is a 32-bit value, written like an IPv4 address, that identifies a router in the OSPF domain. OSPFv3 uses one too, even on IPv6-only routers.
Remember
Without an explicit router-id, the router picks one from an IPv4 address (loopback first). On a router with no IPv4 address at all, OSPFv3 cannot pick one — configure it. A changed router ID takes effect only after clear ospfv3 process (or clear ip ospf process). Duplicates are logged.
First checks
show ospfv3(orshow ipv6 ospf) — the router ID in use.show ip ospf | include ID— for OSPFv2.show logging | include DUP_RTRID|NORTRID— duplicate or missing router ID.show running-config | include router-id— configured values.
Commands
show ospfv3 neighbor- Display OSPFv3 neighbors.
show ospfv3 database- Display the OSPFv3 link-state database.
show ospfv3clear ipv6 ospf process
Verify in this order
router-id configured (or derived from IPv4) → unique in the domain → process running with that ID → neighbours form
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Router ID operational reference
| Boundary | Known-good for Router ID | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches the 32-bit OSPFv3 Router ID used as protocol identity independently of whether the routed address family is IPv6 or IPv4 design | Policy, area, family or metric input differs | Compare effective configuration |
| Protocol state | Stable expected adjacency/database/topology decision | duplicate Router IDs, an automatically selected Router ID changing after topology or interface changes, an operator expecting the Router ID to be an IPv6 address, stale neighbor/LSA state after a Router-ID change, or troubleshooting the wrong peer because link-local address and Router ID were conflated | 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=1116