Use it when an unexpected router is DR, when neighbours stay in 2-Way, or when deciding which router should hold the role on a segment.
OSPF DR / BDR Election Deep Reference
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.
1. show ip ospf interface <interface> — who is DR and BDR, and what is this router's priority?
2. Wrong DR → set ip ospf priority, then restart OSPF on the segment's routers; it does not take over by itself.
3. Routers that must never be DR → priority 0.
4. Only two routers on the link → ip ospf network point-to-point.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip ospf neighborVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show ip ospf neighbor
show ip ospf interface GigabitEthernet0/0
The neighbour table shows each neighbour's priority and role: FULL/DR, FULL/BDR, FULL/DROTHER or 2WAY/DROTHER. The interface view shows this router's own state (DR, BDR or DROTHER), its priority, the network type, and the DR and BDR by router ID and address.
Known-good: all routers on the segment name the same DR and BDR, every router is Full with both, and routers with neither role are 2-Way with each other.
Step 2 Failure boundaries & interpretation Narrow the fault
- The router with the highest priority is not DR. The election does not preempt; it joined after a DR was in place.
- A priority change had no effect. It applies at the next election only.
- Neighbours stuck in 2-Way. Normal between two DROTHER routers. A problem only if all routers have priority 0, so nobody is DR.
- Routers disagree about the DR. They do not all hear each other — a partitioned VLAN or filtered multicast.
- A hub-and-spoke network loses routes. A spoke became DR; only the hub reaches everyone, so spokes need priority 0.
- Slow start on a two-router link. The routers wait out the election timer; use network type point-to-point.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
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.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
On a multi-access segment such as Ethernet, OSPF elects a designated router (DR) and a backup (BDR). The other routers synchronise their databases with these two only, instead of with every router on the segment.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Without a DR, ten routers on a VLAN would need 45 adjacencies. With one, each router needs two. The election has two properties that cause confusion: it is decided by priority before router ID, and a router that is already DR keeps the role when a "better" one arrives.
ReferenceHow it works1 section · depth on demand
How it works
Who wins. The router with the highest interface priority becomes DR; the next highest becomes BDR. The priority is 1 by default and is set with ip ospf priority <0–255>. If priorities are equal, the highest router ID wins. A router with priority 0 never takes either role.
When. A router that comes up on a segment waits for the dead interval (40 seconds by default) to hear whether a DR already exists. If one does, it is accepted. The election is not repeated when a router with higher priority joins later: the DR stays DR until it fails. Then the BDR takes over and a new BDR is elected.
In practice the first routers to boot hold the roles. To get a particular router as DR, give it the highest priority and restart OSPF on the segment's routers — or set priority 0 on those that must never have the role.
What the roles do. Every router forms a full adjacency with the DR and the BDR. Two routers that hold neither role stay in state 2-Way with each other, shown as 2WAY/DROTHER — that is normal. Updates are sent to the DR and BDR on 224.0.0.6, and the DR passes them to everyone on 224.0.0.5. The DR also originates the Network LSA for the segment.
Point-to-point links have no DR. On an Ethernet link between just two routers, ip ospf network point-to-point skips the election and the wait.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
DR and BDR election details that matter in operations
The Catalyst 9300 OSPF guide documents ip ospf priority (0–255, default 1) for DR selection. RFC 2328 Hellos carry each router's priority and its view of the current DR and BDR.
Election behaviour
| Rule | Detail |
|---|---|
| Who takes part | Routers with priority > 0 on broadcast and NBMA networks |
| BDR first | The BDR is elected first, then the DR (a router declaring itself BDR is preferred for BDR) |
| Winner | Highest priority, then highest router ID |
| Wait timer | A router joining a segment waits (the wait interval equals the dead interval) before electing, to learn the existing DR and BDR |
| Non-preemptive | A better router joining later doesn't take over |
| DR fails | The BDR becomes DR; a new BDR is elected |
C9300# show ip ospf interface Vlan100 | include State|Designated|Backup|Wait
Transmit Delay is 1 sec, State BDR, Priority 90
Designated Router (ID) 10.0.0.11, Interface address 10.100.0.1
Backup Designated router (ID) 10.0.0.12, Interface address 10.100.0.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
C9300# show ip ospf neighbor Vlan100
C9300# clear ip ospf process ! re-runs the election on all interfaces of the process
What the DR does
| Task | Detail |
|---|---|
| Adjacencies | Every router on the segment is FULL with the DR and BDR only |
| Network-LSA | The DR originates the type 2 LSA listing attached routers |
| Flooding | Routers send updates to 224.0.0.6 (DR and BDR); the DR floods them to 224.0.0.5 |
Design
| Case | Recommendation |
|---|---|
| Two-router Ethernet links | ip ospf network point-to-point: no election, no wait timer, no type 2 LSA |
| Shared segments with many routers | Set the core routers' priorities high; give the others 0 |
| Hub-and-spoke NBMA | DR must be the hub (spokes priority 0) |
The wait timer is why adjacencies on broadcast links take about 40 s to form after a reboot. Point-to-point links come up faster.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → OSPF DR / BDR Election Deep Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
OSPF DR/BDR Election — Fast Check
Explain current DR/BDR without assuming the election preempts