Pcornel
Networking · Network & Protocols › OSPF Protocol Reference

OSPF DR / BDR Election Deep Reference

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

Back to the Topic

Answer

On a multi-access segment OSPF elects a designated router (DR) and a backup (BDR). The other routers synchronise only with these two, which keeps the number of adjacencies down.

Remember

Highest interface priority wins, then highest router ID; priority 0 never takes the role. The election does not preempt: a router that is already DR stays DR when a better one arrives. 2-Way between two DROTHER routers is normal.

First checks

  • show ip ospf neighbor — each neighbour's priority and role.
  • show ip ospf interface <interface> — own state, priority, network type, DR and BDR.
  • Compare on all routers of the segment: they must name the same DR and BDR.

Commands

ip ospf priority
ip ospf network point-to-point
ip ospf priority <0–255>

Verify in this order

all routers on the segment hear each other → priorities compared, then router IDs → DR and BDR elected once → every router Full with both → DR originates the Network LSA

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=225

Confirmation

Confirm action

Continue?