IntermediatePublished 2026-06-24
OSPF Cost & Path Selection: Deterministic Control (3 Routers)
Bundle lab
Build a 3-router triangle with two end-to-end paths between Branch A and the Data Center. Stand up OSPF area 0, create an ECMP condition, then intentionally steer traffic using ip ospf cost. Verify from the end hosts and troubleshoot common OSPF control-plane mismatches.
Learning objectives
- Configure OSPF area 0 on addressed transit and LAN interfaces while keeping LANs passive
- Establish OSPF adjacencies and verify with neighbor and route tables
- Create ECMP and then prefer a specific path using interface costs
- Validate path selection and failover from end hosts using ping and traceroute
- Troubleshoot OSPF neighbor and route issues caused by passive-interface, area, or cost misconfiguration
Troubleshooting focus
- A neighbor sits in INIT or 2WAY: verify both sides are in area 0, not passive on that transit, and share hello/dead timers and MTU.
- No neighbor forms on a link at all: check the interface is un-passived, cabled, addressed in the same /30, and up/up.
- A remote LAN is missing from the routing table: it must be advertised with the correct wildcard mask, and its interface must be up.
- Only one path to 10.30.30.0/24 where you expect ECMP: the direct link's cost must equal the two-hop sum from each side. Cost is per egress interface — set it on both ends.
traceroutefrom CLIENT-A01 still crosses the direct link after you raise its cost: confirmip ospf costis on Ethernet0/1 of both RTR-A-BR and RTR-C-DC, then re-read the route table.
Topology
Subscribe to preview this lab's topology.
See plansGrade your work
How this lab is graded
- Build it your way. Where a lab lets you choose a value — a VLAN name, an interface description — grading checks that you configured it, not which name you picked. Names that another line has to reference, like an ACL applied with
access-class, are stated in the guide and do have to match. - Addresses, modes and protocol keywords are exact. An IP address, a subnet mask,
switchport mode trunk, an encapsulation — these carry the meaning of the lab, so they are graded as written in the guide. - Grading reads your saved configuration. Export the lab from CML after you have configured it, and make sure anything you set is in the running-config — a change that only exists in a terminal session never reaches the grader.
- You can submit as many times as you like. Your best score stands, and each attempt tells you which checks passed so you can work the gaps.
- Scored something you believe is correct? Use Report an issue on this page — that is exactly how the grading fixes in the changelog got found.
Create a free account to submit your lab for grading.
Create a free accountFound a problem with this lab?
Please sign in to report a problem — tying it to your attempts lets us reproduce and fix it faster.