Pcornel
Networking · Routing › OSPF › OSPF Fundamentals

Router ID

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

Back to the Topic

Answer

The OSPF router ID is a 32-bit value written like an IPv4 address that uniquely identifies each OSPF router. It is chosen from router-id, else the highest loopback IP, else the highest active interface IP — duplicates break adjacencies and SPF.

Remember

Do not infer service health from one command. For Router ID, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.

First checks

  • show ip ospf — Routing Process with ID
  • show running-config | section router ospf — router-id

Commands

clear ip ospf process
show ip ospf neighbor

Verify in this order

router-id configured → OSPF process → identifies LSAs

Where it usually breaks

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

Router ID · technical reference

ItemMeaning
Format32-bit value shown as dotted decimal
Used byNeighbor identity, LSAs, DR/BDR tie-break
Best practiceExplicit, unique and stable
Not proof ofReachable interface or forwarding path

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

Confirmation

Confirm action

Continue?