OSPF Router ID and DR/BDR Elections
The OSPF Router ID is determined by a manual config, the highest loopback IP, or the highest active physical IP; it determines DR/BDR election winners.
Determining the Router ID
The OSPF Router ID (RID) is a 32-bit value. OSPF chooses the RID based on: 1. Manual configuration, 2. Highest loopback interface IP, 3. Highest physical interface IP.
The Need for DR and BDR
On multi-access networks like Ethernet, OSPF elects a Designated Router (DR) and Backup DR (BDR) to minimize the number of adjacencies and LSA traffic.
The Election Process
Routers with the highest OSPF Priority become the DR. If priorities tie, the router with the highest Router ID wins the election.
❓ Frequently Asked Questions
What happens if I change the Router ID?
You must clear the OSPF process using 'clear ip ospf process' for the new Router ID to take effect.
What is OSPF priority 0?
An OSPF priority of 0 ensures a router will never become a DR or BDR.
Does a point-to-point link need a DR?
No, DR/BDR elections only occur on broadcast multi-access and non-broadcast multi-access (NBMA) networks.