Pcornel
Networking · Routing › OSPF › OSPFv3

Router ID

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

Back to the Topic

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 (or show 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 ospfv3
clear 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

BoundaryKnown-good for Router IDSuspicious signatureNext proof
IntentMatches the 32-bit OSPFv3 Router ID used as protocol identity independently of whether the routed address family is IPv6 or IPv4 designPolicy, area, family or metric input differsCompare effective configuration
Protocol stateStable expected adjacency/database/topology decisionduplicate 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 conflatedInspect peer/LSDB/topology detail
Route/forwardingExpected RIB/FIB next hop or multipath setProtocol state exists but route/path disagreesRIB/FIB/CEF and next-hop proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or state was forcedRegression test

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

Confirmation

Confirm action

Continue?