nerdexam
Cisco

200-301 · Question #1620

Lab Simulation 43 Guidelines This is a lab item in which tasks will be performed on virtual devices. - Refer to the Tasks tab to view the tasks for this lab item. - Refer to the Topology tab to access

OSPF Lab 43 - Full Explanation --- Overall Goal This lab configures OSPF Area 0 on a multi-device network (R1, R2, R3, Sw101) where all devices share a common Layer 2 segment via VLAN101. The two key constraints are: 1. Use interface-level OSPF assignment instead of the network c

Submitted by jordan8· Mar 5, 2026IP Connectivity

Question

Lab Simulation 43 Guidelines This is a lab item in which tasks will be performed on virtual devices. - Refer to the Tasks tab to view the tasks for this lab item. - Refer to the Topology tab to access the device console(s) and perform the tasks. - Console access is available for all required devices by clicking the device icon or using the tab(s) above the console window. - All necessary preconfigurations have been applied. - Do not change the enable password or hostname for any device. - Save your configurations to NVRAM before moving to the next item. - Click Next at the bottom of the screen to submit this lab and move to the next question. - When Next is clicked, the lab doses and cannot be reopened. Topology Tasks Task 1 Configure OSPF Area 0 with Process ID 110 on all devices under their respective interfaces connected to VLAN101. To accomplish this, do not use the network command under the OSPF process. Task 2 Configure R1 to always be the DR and Sw101 always to be the BDR. R2 and R3 should be configured not to participate in the DR/BDR election. Answer: See the below explanation

Exhibits

200-301 question #1620 exhibit 1
200-301 question #1620 exhibit 2

Explanation

OSPF Lab 43 - Full Explanation


Overall Goal

This lab configures OSPF Area 0 on a multi-device network (R1, R2, R3, Sw101) where all devices share a common Layer 2 segment via VLAN101. The two key constraints are:

  1. Use interface-level OSPF assignment instead of the network command
  2. Engineer a predetermined DR/BDR election outcome

This reflects real-world scenarios where you want deterministic OSPF role assignment rather than leaving it to the default election process.


Why Interface-Level OSPF Instead of network?

The traditional approach uses network <ip> <wildcard> area 0 under the OSPF process. The modern alternative assigns OSPF directly on the interface:

ip ospf <process-id> area <area-id>

Why it's better: It ties OSPF participation explicitly to a specific interface, leaving no ambiguity about which interfaces are in which area. It also avoids wildcard mask errors and is the preferred method in current IOS versions.


Step-by-Step Reasoning

Steps 1–3: R1 OSPF Configuration

R1(config)# router ospf 110
R1(config-if)# interface Ethernet0/2
R1(config-if)# ip ospf 110 area 0
  • Step 1 creates the OSPF process with ID 110. The process ID is locally significant (doesn't need to match neighbors), but this lab requires 110 specifically.
  • Step 2 navigates to the interface facing VLAN101. The specific interface name varies by topology - Ethernet0/2 here connects R1 to the shared segment.
  • Step 3 is the critical substitution for network. It tells OSPF process 110 to advertise this interface and run OSPF on it within Area 0.

If skipped: R1 won't participate in OSPF at all. No adjacency forms, no routes are exchanged.

Steps 4–6 / 7–9: R2 and R3 OSPF Configuration

Same pattern - router ospf 110, navigate to the VLAN101-facing interface, then ip ospf 110 area 0.

  • R2 uses Ethernet0/1, R3 uses Ethernet0/0 - different interface names because the topology wires them differently.

Common mistake: Using the wrong interface name. Always confirm which interface faces VLAN101 before entering config.

Steps 10–12: Sw101 OSPF Configuration

Sw101(config-if)# interface Vlan101
Sw101(config-if)# ip ospf 110 area 0

Sw101 is a Layer 3 switch, so its VLAN101 participation is through a SVI (Switched Virtual Interface) - interface Vlan101 - not a physical Ethernet interface. This is why the interface name differs from the routers.

If you used a physical interface here instead of the SVI: OSPF would run on the wrong interface and fail to form adjacencies with the routers on VLAN101.


DR/BDR Election - The Concept

On a multi-access network (like Ethernet/VLAN), OSPF elects:

  • DR (Designated Router): Acts as the hub for LSA flooding - all others form adjacency with DR
  • BDR (Backup DR): Takes over if DR fails
  • DROther: Forms adjacency only with DR and BDR, not with each other

Election rules (in order):

  1. Highest OSPF priority wins DR (default priority = 1)
  2. Tie-break: Highest Router ID
  3. Priority 0 = permanently excluded from election

Steps 13–14: Make R1 the DR

R1(config-if)# ip ospf priority 255

Priority 255 is the maximum value, guaranteeing R1 wins the DR election regardless of Router IDs. Any value higher than all others suffices, but 255 leaves no ambiguity.

If skipped: DR election falls back to Router ID comparison - R1 might not win.

Steps 15–16: Make Sw101 the BDR

Sw101(config-if)# ip ospf priority 200

Priority 200 is the second highest, making Sw101 the BDR. It must be lower than R1's 255 but higher than R2/R3's 0.

If you set Sw101 to 255 as well: A tie would be broken by Router ID - outcome becomes unpredictable.

Steps 17–18 / 19–20: Exclude R2 and R3 from Election

R2(config-if)# ip ospf priority 0
R3(config-if)# ip ospf priority 0

Priority 0 is special - it permanently disqualifies the interface from ever becoming DR or BDR. The device still forms OSPF adjacencies and exchanges routes, it just never competes for DR/BDR roles.

Critical caveat: DR/BDR elections are non-preemptive after the initial election. If you change priorities on a live network without resetting OSPF, the change won't take effect until the current DR/BDR fails or adjacencies are cleared. On a fresh lab this isn't an issue, but on a production network you'd need clear ip ospf process.


What Happens if Steps Are Out of Order?

MistakeConsequence
Set priority before ip ospf 110 area 0Priority is set, but interface isn't in OSPF yet - no problem, order doesn't matter here
Enable OSPF on wrong interfaceAdjacency forms on wrong segment; VLAN101 routes missing
Skip router ospf 110 before interface configip ospf 110 area 0 still creates the process implicitly on most IOS versions, but it's risky practice
Set R2/R3 priority to 1 instead of 0They can still become DR/BDR if R1 or Sw101 fails - violates the requirement

Memory Tips

"Interface OSPF = ip ospf PID area AREA" - same syntax as the network command's area number, just moved to the interface.

Priority mnemonic - "R1 is #1, BDR is second best, zeros sit out":

  • R1 = 255 (max = #1 always)
  • Sw101 = 200 (high but not max = second place)
  • R2, R3 = 0 (zero = out of the race)

Don't forget to save: write memory or copy run start on every device before clicking Next - the lab requires saving to NVRAM.

Topics

#OSPF Configuration#DR/BDR Election#OSPF Priority#Interface OSPF

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice