OSPF Router ID Selection & Duplicate RID Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=244
Answer
The OSPF router ID is a 32-bit number that names a router. It is taken from the router-id command, otherwise the highest loopback address, otherwise the highest interface address — and it must be unique.
Remember
The ID is chosen when the process starts and kept; a new router-id applies only after clear ip ospf process or a reload. Duplicates between neighbours block the adjacency; duplicates elsewhere in the area make routes flap. Configure it explicitly everywhere.
First checks
show ip ospf | include ID— the ID in use.show ip ospf neighbor— the neighbours' IDs.show ip ospf database router | include Advertising|Seq— a sequence number that races upward.show logging | include DUP_RTRID— duplicate-ID messages.
Commands
clear ip ospf processshow ip ospf neighbor
Verify in this order
router ID configured explicitly → process (re)started with it → unique among neighbours → unique in the area → LSAs stable, sequence numbers rising only at refresh
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=244