About this interactive
OSPF's metric is cost: **reference bandwidth / interface bandwidth**, so faster links cost less. A path costs the sum of its links, and the lowest-cost path goes into the routing table; equal-cost paths are load-balanced.
The default reference is 100 Mbps, from slower days. A cost cannot be a fraction or lower than 1, so 100 Mbps, 1 Gbps and 10 Gbps links all cost 1, and OSPF cannot tell them apart. The lesson's fix, recommended over setting bandwidths or costs by hand on each interface, is to raise the reference bandwidth. At 100,000 Mbps, links of 10 Mbps, 100 Mbps, 1 Gbps and 10 Gbps cost 10,000, 1,000, 100 and 10. A loopback costs 1 by default.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →