OSPF DR/BDR Election: How the Winner Is Chosen
On an Ethernet segment with several OSPF routers, electing a designated router prevents every router from forming a full adjacency with every other router. The DR coordinates link-state flooding on that multi-access network, the BDR is the prepared standby, and the remaining routers are DROthers. CCNA questions test not only who wins, but also when an election happens and why a “better” router may not take over later.
Where DRs are elected—and where they are not
A DR/BDR election occurs on multi-access networks, most commonly broadcast Ethernet segments. It can also apply to certain non-broadcast multi-access designs.
A normal point-to-point link has only two OSPF neighbors and does not elect a DR or BDR. If an interface description or topology shows a serial-style point-to-point connection between two routers, do not apply the election rules to it.
The election is per segment, not area-wide. A router can be DR on one LAN and DROther on another.
The winner: priority first, Router ID second
For eligible routers on a segment, OSPF compares values in this order:
- 1. Highest OSPF interface priority wins the DR election.
- 2. If priorities tie, the highest Router ID wins.
The default OSPF priority is 1. The configurable range is 0 through 255. A priority of 0 is special: the router is ineligible and will never become DR or BDR on that interface.
Strictly speaking, the OSPF specification settles the BDR first and then the DR (RFC 2328, Section 9.4): if no router is already acting as DR, the newly elected BDR is promoted to DR and a new BDR is chosen. In a fresh election the outcome is the same either way — the highest eligible priority wins the DR role (Router ID breaking ties), and the next-highest becomes BDR.
A quick example
| Router | Priority | Router ID | Result |
|---|---|---|---|
| R1 | 10 | 1.1.1.1 | DR |
| R2 | 5 | 2.2.2.2 | BDR |
| R3 | 1 | 9.9.9.9 | DROther |
| R4 | 0 | 8.8.8.8 | DROther, never eligible |
R3 has the highest Router ID but still does not beat R1 because priority is checked first. R4 cannot win at any Router ID unless its priority is changed above zero and a new election occurs.
What the DR and BDR actually do
Routers on the segment form full adjacencies with the DR and BDR. DROthers do not normally form full adjacencies with each other; their relationship stays in the 2-Way state. That design dramatically reduces duplicate link-state traffic as more routers join the LAN.
The DR represents the multi-access network in the link-state database by originating the network LSA and floods updates across the segment. The BDR listens and stays synchronized so it can take over quickly if the DR fails.
The multicast addresses make the roles visible:
- DROthers send updates to 224.0.0.6, the AllDRouters address, which is heard by the DR and BDR.
- The DR sends updates to 224.0.0.5, the AllSPFRouters address, so every OSPF router on the segment receives them.
Do not reverse those two addresses in an exam question.
The most tested rule: elections are not preemptive
An OSPF election is not preemptive. Suppose R1 becomes DR with priority 10. Later, R2 is connected with priority 200 and a higher Router ID. R2 does not immediately force R1 out. R1 remains DR until it fails, its OSPF process or interface restarts in a way that triggers a new election, or another re-election event occurs.
When the DR fails, the existing BDR is promoted to DR and a new BDR is elected from the remaining eligible routers. The newly connected high-priority router can compete in that later BDR election, but it still does not jump over the promoted BDR as DR.
This stability prevents needless adjacency churn every time a router boots more slowly or joins the segment late.
Timing can beat configuration on startup
Routers use an OSPF wait period while discovering neighbors before completing the election. If one router boots and waits through its election process before another router appears, the first eligible router may already be DR. A higher-priority router that starts too late joins as a non-DR because the election is non-preemptive.
This is why lab outcomes sometimes surprise students: the “best” values win a fresh election, but joining order and timing determine whether a fresh election happens at all.
How to verify the result
Use these Cisco IOS commands:
show ip ospf interface— shows the interface priority, DR, BDR, and neighbor count.show ip ospf interface brief— a compact one-line-per-interface view (interface, area, cost, state, neighbor count). Its State column shows only this router's own role on each interface (DR, BDR, or DROTHER) — it does not list the DR/BDR addresses. Useshow ip ospf interfacefor those.show ip ospf neighbor— shows neighbor Router IDs, priority, and state. On a multi-access segment, DROther-to-DROther relationships normally show 2WAY/DROTHER, while adjacencies to the DR and BDR show FULL/DR or FULL/BDR.
If a router unexpectedly has priority 0, it cannot be elected. If all priorities are equal, compare Router IDs. If the expected winner joined after the current DR, non-preemption is the likely explanation.
On the exam
This is core CCNA (200-301) IP Connectivity material. Expect scenarios like:
- “Which router becomes DR?” Compare priority first, then Router ID.
- “Why did the new router not become DR?” Because OSPF DR elections are not preemptive.
- “Which routers form full adjacencies?” DROthers form them with the DR and BDR, not with every DROther.
- “A priority of 0 means what?” The router can never be DR or BDR on that interface.
- “What addresses do DROthers and the DR use?” DROthers send to 224.0.0.6; the DR floods to 224.0.0.5.
Also check the link type first. On a point-to-point link, the correct answer may be that no DR is elected.
Practical takeaway
Set priorities deliberately on important LAN segments. Use priority 0 for routers that should never lead, give the intended DR the highest priority, and remember that configuration changes do not automatically cause a takeover. Plan elections before the routers boot if the role matters.
FAQ
Does the highest Router ID always become DR? No. Router ID is only the tie-breaker. The highest interface priority wins first.
If the BDR becomes DR, is a new BDR elected? Yes. The BDR is promoted when the DR fails, and the remaining eligible routers elect a replacement BDR.
Can a router with priority 0 still route OSPF traffic? Yes. Priority 0 only makes it ineligible to become DR or BDR on that interface. It can still be an OSPF neighbor and route traffic.
Ready to prove it?
Reading about OSPF elections is a start. CertCrack practice exams for CCNA test you the way the real exam does — with explanations for every answer.
Try a Free Sample Quiz