nerdexam
Cisco

200-301 · Question #1756

Lab Simulation 64 Please use the "Tasks" and "Topology" tabs to complete this lablet. Topology Tasks Refer to the topology. All physical cabling is in place. Routers R2 and R3 are inaccessible. Config

OSPF Configuration Lab - Deep Explanation Overall Goal You're configuring OSPF (Open Shortest Path First) on R1 so that it forms neighbor relationships with R2 and R3, and ensures R1 always wins the Designated Router (DR) election on all shared links. OSPF requires careful setup:

Submitted by ngozi_ng· Mar 5, 2026IP Connectivity

Question

Lab Simulation 64 Please use the "Tasks" and "Topology" tabs to complete this lablet. Topology Tasks Refer to the topology. All physical cabling is in place. Routers R2 and R3 are inaccessible. Configure OSPF routing for the network and ensure R1 has joined Area 0 as the Designated Router (DR). Task 1 Configure OSPF on R1 and ensure R2 and R3 become neighbors. - use process ID 111 - use Lo0 IP as the router ID - advertise connected networks using an inverted subnet mask to match the exact prefixes used Task 2 Ensure R1 always becomes the DR for Area 0 on all links. Answer: Task 1 - Enable OSPF (PID 111), use Lo0 as router ID, advertise exact prefixes R1# conf t ! interface Loopback0 ip address 10.0.1.1 255.255.255.255 ! (example Lo0 IP - use the one from the lab) ! router ospf 111 router-id 10.0.1.1 ! use the Loopback0 IP network 10.0.112.0 0.0.0.3 area 0 ! 10.0.112.0/30 link to R2 network 10.0.113.0 0.0.0.7 area 0 ! 10.0.113.0/29 link to R3 network 10.0.1.1 0.0.0.0 area 0 ! Loopback0 /32 OSPF process 111 is created, the router-id is set to the Loopback0 IP, and each connected network is advertised with a wildcard mask that matches its exact prefix (/30 → 0.0.0.3, /29 → 0.0.0.7, /32 → 0.0.0.0). This lets R2 and R3 form OSPF neighbor adjacencies with R1 in Area 0. Task 2 - Make R1 always the DR on all Area 0 links interface e0/0 ip ospf priority 255 ! interface e0/1 ip ospf priority 255 On multiaccess OSPF networks, the router with the highest interface priority becomes the DR. Setting the OSPF priority to 255 on R1's Area 0 interfaces ensures R1 always wins the DR election on those links.

Exhibits

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

Explanation

OSPF Configuration Lab - Deep Explanation

Overall Goal

You're configuring OSPF (Open Shortest Path First) on R1 so that it forms neighbor relationships with R2 and R3, and ensures R1 always wins the Designated Router (DR) election on all shared links. OSPF requires careful setup: a stable router ID, correct network advertisements, and priority tuning for DR control.


Why This Approach Is Correct

OSPF on Cisco IOS has three distinct configuration layers:

  1. Process + Router ID - identifies R1 uniquely in the OSPF domain
  2. Network statements - tells OSPF which interfaces to activate and advertise
  3. Interface priority - controls who wins the DR election on multiaccess segments

Skipping any layer breaks a different part of the protocol.


Step-by-Step Reasoning

Steps 1–4 - Configure Loopback0

conf t
interface Loopback0
ip address 10.0.1.1 255.255.255.255

A Loopback interface is a virtual, always-up interface. OSPF uses it as the router ID because physical interfaces can go down. If you use a physical interface IP as the router ID and that interface flaps, OSPF adjacencies reset across the entire router. The /32 mask (255.255.255.255) is standard for loopbacks - it means "exactly this host, nothing else."

Skip consequence: Without Loopback0, OSPF would auto-select a router ID from an active physical interface, which could change unpredictably and cause adjacency instability.


Steps 5–6 - Start OSPF process and set router ID

router ospf 111
router-id 10.0.1.1

router ospf 111 creates the OSPF process. The process ID (111) is locally significant - R2 and R3 can run different process IDs and still neighbor with R1. However, the lab requires 111 specifically, so deviating fails the graded check.

router-id manually pins the router ID to the Loopback0 IP. Without this, Cisco auto-selects the highest IP among active loopbacks, or the highest physical IP if no loopback exists. Manual assignment removes ambiguity and survives interface changes.

Skip consequence: If router-id is omitted, OSPF auto-selects one - which might still work, but is non-deterministic and fails the lab's explicit requirement.


Steps 7–9 - Network statements with wildcard masks

network 10.0.112.0 0.0.0.3 area 0
network 10.0.113.0 0.0.0.7 area 0
network 10.0.1.1 0.0.0.0 area 0

The network command activates OSPF on any interface whose IP falls within the specified range. The second argument is a wildcard mask (inverted subnet mask), not a subnet mask.

PrefixSubnet MaskWildcard MaskLogic
/30255.255.255.2520.0.0.3Matches 4 addresses
/29255.255.255.2480.0.0.7Matches 8 addresses
/32255.255.255.2550.0.0.0Matches exactly 1 address

The wildcard rule: 0 bits = must match, 1 bits = don't care. So 0.0.0.3 means "match the first 30 bits exactly" - precisely a /30.

Using a broader wildcard (e.g., 0.0.0.255) would still work for adjacency but would advertise an imprecise prefix. The lab explicitly requires matching exact prefixes, so wildcard precision matters.

Skip consequence: If a network statement is missing for a link (e.g., the R3 link), OSPF won't activate on that interface and R3 will never form a neighbor relationship with R1.


Steps 11–16 - Set OSPF priority 255 on e0/0 and e0/1

interface e0/0
ip ospf priority 255

interface e0/1
ip ospf priority 255

On multiaccess networks (Ethernet segments with multiple routers), OSPF elects a Designated Router (DR) to reduce flooding overhead. Instead of every router flooding to every other (O(n²) LSA traffic), all routers sync with the DR only.

DR election rules:

  1. Highest OSPF interface priority wins (default is 1; range 0–255)
  2. Tie-break: highest router ID
  3. Priority 0 = ineligible to become DR

Setting priority to 255 (the maximum) guarantees R1 wins regardless of what priority R2 or R3 have. You need this on each interface separately because priority is a per-interface setting - configuring it under router ospf doesn't exist.

Skip consequence: With default priority 1, R2 or R3 could win the DR election if their router IDs are higher. The lab requirement fails. Also note: DR elections are non-preemptive - if R2 or R3 already became DR before you set priority, you'd need to reset the OSPF process to force a new election.


What Would Go Wrong If Steps Are Out of Order

  • Setting router-id after neighbors form: OSPF ignores the new router ID until the process is cleared (clear ip ospf process). The old ID persists.
  • Setting interface priority after DR election: The election is already done. The new priority only takes effect after the next election (triggered by a neighbor going down/up or process reset).
  • Advertising networks before router-id: OSPF will auto-assign an ID immediately when the first network statement activates an interface. If Loopback0 wasn't up yet, it picks a physical IP instead.

Memory Tips

Wildcard mask shortcut: Subtract the subnet mask from 255.255.255.255.

  • /30 → 255.255.255.252 → wildcard = 0.0.0.3
  • /29 → 255.255.255.248 → wildcard = 0.0.0.7
  • /32 → 255.255.255.255 → wildcard = 0.0.0.0

DR priority mnemonic: "255 = I'm always the boss." Priority 0 means "I refuse to be DR." Any value in between is a vote weight.

Loopback = stability anchor: Always configure the loopback before starting the OSPF process, so the router ID is set from a stable source before any adjacencies form.

Topics

#OSPF Configuration#OSPF Router ID#OSPF DR Election#OSPF Wildcard Masks

Community Discussion

No community discussion yet for this question.

Full 200-301 Practice