OSPF Routing Lab
Learn dynamic routing with Single-Area OSPFv2. Establish router adjacencies, protect edge networks with passive interfaces, and diagnose hello timer mismatches.
Interactive Lab Exercises
Complete each lab exercise in order. Your CLI configurations are evaluated against real-time scoring criteria.
Single-Area OSPFv2 Basic Adjacency
Initialize OSPF Process 1 on core routers, assign explicit router IDs, and advertise local networks into Area 0.
Scoring Checkpoints (Evaluated by Engine):
- OSPF process ID 1 initialized on all participating routers
- Explicit 32-bit router-id configured to prevent election ambiguities
- Network commands advertise correct subnets and wildcard masks into Area 0
- Neighbor adjacency transitions cleanly into FULL state on all links
Passive Interfaces & Default Route Injection
Secure LAN interfaces against rogue routing updates and distribute a quad-zero default route throughout the OSPF domain.
Scoring Checkpoints (Evaluated by Engine):
- User-facing LAN interfaces marked as passive-interface
- Verify edge ports do not transmit OSPF hello packets
- Gateway router configured with default-information originate
- Internal routers receive external O*E2 default route in routing table
Troubleshoot Broken OSPF Neighbor States
Diagnose two routers stuck in INIT or EXSTART state due to mismatched area numbers, hello timers, and MTU settings.
Scoring Checkpoints (Evaluated by Engine):
- Use show ip ospf neighbor and show ip ospf interface to isolate parameter mismatch
- Harmonize hello and dead interval timers across the point-to-point link
- Confirm OSPF database synchronization reaches 100% convergence
When an enterprise network grows beyond a handful of switches and routers, configuring static routes by hand becomes difficult and risky. A single cable cut or hardware failure forces engineers to manually retype routing tables across every remote branch.
Open Shortest Path First (OSPF) is an open-standard link-state routing protocol that automates path calculation. Routers exchange Link-State Advertisements (LSAs), build a shared map of the network, and run the Shortest Path First (SPF) algorithm to recover quickly from link drops.
Core Rules of Single-Area OSPFv2
In Single-Area OSPFv2, all participating routers connect inside backbone Area 0. To form trusted neighbor adjacencies, routers must match on four primary parameters:
- Router ID (RID): A unique 32-bit identifier written in dotted-decimal format. Cisco routers choose the RID using: 1) manual router-id setup, 2) the highest IP address on an active loopback, or 3) the highest IP address on an active physical interface.
- Area ID Agreement: Routers sharing a transit link must belong to the exact same area number (Area 0).
- Hello and Dead Timers: Routers exchange Hello packets every 10 seconds with a Dead timer of 40 seconds on broadcast and point-to-point links. Any mismatch stops routers from becoming neighbors.
- Passive Interfaces: User-facing LAN interfaces must be set to passive to prevent sending unnecessary Hello packets and protect the network from unauthorized routing devices.
OSPF Topology Addressing Plan
Review the IP addressing and area plan below before applying your network commands:
| Router | Router ID | Interface | IPv4 Address | Subnet Mask | OSPF Role |
|---|---|---|---|---|---|
| R1 | 1.1.1.1 | Gig0/0 (LAN) | 172.16.20.1 | 255.255.255.128 | Area 0 (Passive) |
| R1 | 1.1.1.1 | Serial0/0/0 (WAN) | 209.165.200.225 | 255.255.255.252 | Area 0 (Transit) |
| R2 | 2.2.2.2 | Serial0/0/0 (WAN) | 209.165.200.226 | 255.255.255.252 | Area 0 (Transit) |
| R2 | 2.2.2.2 | Gig0/0 (LAN) | 172.16.20.129 | 255.255.255.128 | Area 0 (Passive) |
Hands-On Task Guidelines
To configure routing properly, follow these engineering steps on each participating router:
Initialize OSPF Routing and Assign Router IDs
Turn on OSPF process ID 1 on routers R1 and R2. Assign the designated 32-bit router ID manually to ensure consistent primary and backup relationships during database synchronization.
Calculate Wildcard Masks and Advertise Networks
Invert the subnet masks for the /25 local user subnets and the /30 serial link to find the exact wildcard masks. Place all statements into Area 0 to build the common backbone database.
Harden User Ports with Passive Interfaces
Suppress outbound OSPF multicast Hello packets on the user-facing Gigabit Ethernet ports while continuing to advertise the subnet blocks to remote peers.
Verification and Neighbor Inspection
After applying your routing configurations, check neighbor health and routing table contents using Cisco IOS verification tools:
- Run
show ip ospf neighborto verify that adjacencies move to the FULL state on point-to-point links. - Run
show ip route ospfto check that each router learns remote LAN blocks with administrative distance 110. - Run
show ip ospf interfaceto verify that edge Gigabit ports show passive status and do not transmit Hello packets. - Send ping packets between test workstations across the WAN links to confirm full end-to-end communication.
When all neighbor states show FULL and end-to-end ICMP replies return with zero packet loss, your Single-Area OSPF domain is fully converged and ready for enterprise traffic.
