You configure R3 as the Designated Router (DR) and R4 as the Backup Designated Router (BDR) on a shared Ethernet segment.

Figure 1 – Topology used for the configuration of DR and BDR
Your topology connects four routers to the 192.168.1.0/24 subnet on interface GigabitEthernet0/0:
R1: 192.168.1.1
R2: 192.168.1.2
R3: 192.168.1.3
R4: 192.168.1.4
Because you configure no manual router ID, each router uses its G0/0 IP address as its OSPF Router ID.
OSPF Configuration on All Routers
Enable OSPF and advertise the shared subnet on R1:
R1# conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)# router ospf 1 R1(config-router)# network 192.168.1.0 0.0.0.255 area 0 R1(config-router)# endApply the exact same configuration to R2, R3, and R4.
Your network command activates OSPF on G0/0 and immediately starts the DR and BDR election.Answer the question below
Which subnet do all four routers share on G0/0?
All routers start with the default OSPF interface priority of 1.
Inspecting the Neighbor Table
Check the elected roles from R1:
R1# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 192.168.1.3 1 FULL/BDR 00:00:23 192.168.1.3 GigabitEthernet0/0 192.168.1.4 1 FULL/DR 00:00:23 192.168.1.4 GigabitEthernet0/0 192.168.1.2 1 2WAY/DROTHER 00:00:23 192.168.1.2 GigabitEthernet0/0You see R4 acting as DR and R3 as BDR.
R2 stays in 2WAY/DROTHER with R1: two DROTHERs do not exchange full databases with each other.Why R4 Won
When priorities match, OSPF elects the router with the highest Router ID:
R4 (192.168.1.4): Highest Router ID, elected DR.
R3 (192.168.1.3): Second-highest Router ID, elected BDR.
Your design goal is to make R3 the DR and R4 the BDR.
Answer the question below
When priorities are equal, which value decides the DR?
To change the election outcome, raise the interface priority on R3.
Raising the Priority on R3
Configure the OSPF priority directly under the interface on R3:
R3# conf t Enter configuration commands, one per line. End with CNTL/Z. R3(config)# interface g0/0 R3(config-if)# ip ospf priority 100 R3(config-if)# endYour change does not trigger an immediate election.
OSPF elections are non-preemptive: an active DR keeps its role until its process resets.Restarting the Current DR
Clear the OSPF process on current DR R4 to force a new election:
R4# clear ip ospf process Reset ALL OSPF processes? [no]: yes %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.2 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.3 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detachedWhen R4 resets, existing BDR R3 is promoted to DR immediately.
R2 wins the temporary BDR role over R1 due to its higher Router ID.Moving the BDR Role to R4
When R4 finishes restarting, it becomes a DROTHER because R2 already holds BDR.
Clear the OSPF process on R2 so R4 can take over BDR:R2# clear ip ospf process Reset ALL OSPF processes? [no]: yes %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.3 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.4 on GigabitEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detachedR4 wins the new BDR election against R1 based on its higher Router ID.
Verifying the Final Roles
Verify your new roles from R1:
R1# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 192.168.1.4 1 FULL/BDR 00:00:24 192.168.1.4 GigabitEthernet0/0 192.168.1.3 100 FULL/DR 00:00:24 192.168.1.3 GigabitEthernet0/0 192.168.1.2 1 2WAY/DROTHER 00:00:24 192.168.1.2 GigabitEthernet0/0R3 is now the DR and R4 is the BDR.
Check the interface status directly on R3:R3# show ip ospf interface g0/0 GigabitEthernet0/0 is up, line protocol is up Internet address is 192.168.1.3/24, Area 0 Process ID 1, Router ID 192.168.1.3, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DR, Priority 100 Designated Router (ID) 192.168.1.3, Interface address 192.168.1.3 Backup Designated Router (ID) 192.168.1.4, Interface address 192.168.1.4 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:00 Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 3, Adjacent neighbor count is 3 Adjacent with neighbor 192.168.1.4 (Backup Designated Router) Adjacent with neighbor 192.168.1.2 Adjacent with neighbor 192.168.1.1 Suppress hello for 0 neighbor(s)As the DR, R3 maintains full adjacencies with all three routers on your segment.
Answer the question below
Which command triggers a new DR/BDR election?
When your DR goes offline, the active BDR takes over the DR role immediately.
The remaining DROTHERs then elect a replacement BDR.
Figure 2 – R3 is DR, R4 is BDR, R1 and R2 are DROTHERs

Figure 3 – R3 fails, R4 becomes DR and a new BDR is elected
Simulating a DR Outage
Shut down the OSPF interface on R3:
R3# conf t Enter configuration commands, one per line. End with CNTL/Z. R3(config)# interface g0/0 R3(config-if)# shutdown %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to downR3 stops sending Hello packets.
Your remaining routers wait for the 40-second Dead timer to expire before tearing down the adjacency.Verifying Failover from R1
After the dead timer expires, check your neighbor table on R1:
R1# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 192.168.1.4 1 FULL/DR 00:00:35 192.168.1.4 GigabitEthernet0/0 192.168.1.2 1 FULL/BDR 00:00:35 192.168.1.2 GigabitEthernet0/0R4 takes over as DR because it was the active BDR.
R2 becomes the new BDR, bringing its adjacency with R1 to FULL.
R3 drops out of your neighbor table completely.Now do it again in the next lab, without the guide.
Answer the question below
Which router takes over when the DR fails?
Answer the question below
Same segment just before the failure, but R1's Router ID is 200.0.0.1 instead of 192.168.1.1: which router becomes BDR when R3 goes down?