Instiq
Chapter 3 · IP Connectivity·v1.0.0·Updated 7/17/2026·~17 min

What's changed: Initial version

3.4OSPF DR/BDR election and router ID

Key points

Covers the roles of the DR (Designated Router) and BDR (Backup DR) that curb the explosion of adjacencies on a broadcast network, the election decided by priority (default 1; 0 means ineligible) then router ID, the fact that the election is non-preemptive, and how the router ID is chosen in the order manual -> highest loopback IP -> highest physical IP, all through diagnosing the DR/BDR/DROTHER output of show ip ospf neighbor.

As the previous section showed, broadcast links elect a DR/BDR. CCNA frequently poses diagnostics that require precisely understanding the election rules: "why did the most powerful router not become the DR?" or "why did the router ID not change after I added a loopback?" This section nails down—as real device behavior—that the election is decided by priority then router ID, that a once-elected DR sits tight non-preemptively, and the order in which the router ID is determined.

3.4.1The role of the DR/BDR and the election rules

  • A DR (Designated Router) and BDR (Backup DR) exist because, on one broadcast segment, having every router form a Full adjacency with every other would explode the adjacency count to n(n-1)/2. To prevent this, one DR is elected as a representative, and all DROTHERs form Full only with the DR and BDR. The BDR is a standby that takes over instantly if the DR fails.
  • The election works as: (1) the router with the highest interface priority (ip ospf priority, default 1, range 0-255) becomes DR, the runner-up BDR. On a priority tie, (2) the router with the highest router ID wins. A router with priority 0 never becomes DR or BDR (always a DROTHER).
  • The election is non-preemptive: once a DR is chosen, a later-joining router with a higher priority does not seize the DR role. No changeover occurs until the existing DR fails or OSPF is reset (clear ip ospf process). This contrasts with HSRP's preempt (next section).

3.4.2The router-ID selection order

  • The router ID (32 bits, in IP-address form) is chosen in this order: (1) the value set manually with the router-id command -> (2) the highest IP among loopback interfaces -> (3) the highest IP among active physical interfaces. A loopback outranks a physical interface and rarely goes down, yielding a stable router ID.
  • The router ID is fixed once, at OSPF process startup. Adding a loopback or changing router-id during operation does not change the existing router ID until you restart OSPF with clear ip ospf process (or reload the router).
Exam point

Most-tested: DR/BDR election is "priority (higher wins, 0 is ineligible) -> router ID (higher wins)." The election is non-preemptive (a higher priority arriving later does not take over). The router ID is chosen "manual -> highest loopback IP -> highest physical IP," fixed at process startup and unchanged until clear ip ospf process. Also remember that point-to-point does not elect a DR/BDR at all.

Suppose you later added a high-performance new router, R3, to a broadcast segment. You raised R3's interface priority from the default 1 to 100, thinking "this will make R3 the DR," yet show ip ospf neighbor shows R1—which came up earlier—still the DR. Suspecting "priority 100 is not taking effect" and questioning the config would be hasty; the real cause is that OSPF's DR election is non-preemptive. The DR is fixed by the members present when the election first completed on the segment, and a later-joining higher-priority R3 does not seize the existing DR (R1)—this is correct behavior per spec. To deliberately make R3 the DR, you must force a re-election with clear ip ospf process on the segment (done during a maintenance window). Another common case: aiming for a stable router ID, you later configure a loopback interface (with a high IP) on R3, yet show ip ospf's router ID remains the physical interface's IP. This too follows the spec that the router ID is fixed once at process startup and does not change after you add a loopback until you clear ip ospf process—not a misconfiguration. Both DR election and router ID share the pitfall that reflecting a change requires restarting the OSPF process, and knowing this avoids the misdiagnosis of "not reflected = broken."

DecisionFirst criterionTie-breakerNote
DR/BDR electionHighest priority (default 1)Highest router IDPriority 0 ineligible; non-preemptive
Router-ID selectionManual `router-id`Highest loopback IPThen highest physical IP; fixed at startup
Warning

Trap: "Adding a higher-priority router later automatically makes it the DR" is wrong—OSPF's DR election is non-preemptive and does not change over until the existing DR fails or you clear ip ospf process. Also wrong: "adding a loopback automatically updates the router ID to the highest loopback IP"—the router ID is fixed at process startup and does not change until a restart. Note that neither DR election nor router ID makes "the most powerful or newest router automatically the star."

DR/BDR election rules and router-ID order.
Electing a representative to avoid adjacency explosion

3.4.3Section summary

  • Broadcast networks elect a DR/BDR, and DROTHERs form Full only with them (preventing an adjacency explosion)
  • The election is priority (higher wins, 0 ineligible) -> router ID (higher wins), and is non-preemptive (a later higher priority does not take over)
  • The router ID is chosen manual -> highest loopback IP -> highest physical IP, fixed at process startup and unchanged until clear ip ospf process

Sign in to track progress — Log in.

Quick check

(just a quick review)

Q1. After OSPF has been running stably on a broadcast segment, you add a new router R3 configured with a higher priority (100). Yet `show ip ospf neighbor` shows the earlier-running R1 still as DR, with R3 as a DROTHER. What best explains this?

Q2. For an OSPF router with no manual `router-id` command and no loopback interface, what is the router ID based on? Choose the most appropriate.

Q3. On a broadcast segment, the operational policy is that a certain router "must never become DR or BDR (it should always act as a DROTHER)." What is the most appropriate setting on that router's interface?

Check your understandingPractice questions for Chapter 3: IP Connectivity