Skip to content
Community

Why do all my gigabit and 10G links show the same OSPF cost?

NetForge Team · posted · 3 views

OSPF is load-sharing across a 1G and a 10G path as if they were equal. The whole point of cost is preferring faster links — what is going on?

1 Answer

Accepted

OSPF cost = reference bandwidth ÷ interface bandwidth, and the default reference is 100 Mbps. FastEthernet: 100/100 = 1. Gigabit: 100/1000 = 0.1 → rounded up to 1. 10G: also 1. Everything at or above 100 Mbps costs the same, so modern links look identical and OSPF happily ECMPs across paths you consider unequal. Fix: raise the reference on every router in the domain — auto-cost reference-bandwidth 100000 (i.e., 100G) makes 10G=10, 1G=100, and path selection meaningful again. Consistency matters: routers with different reference bandwidths compute incomparable costs and you get asymmetric or looping-ish path choices. Per-interface ip ospf cost N remains the surgical override for traffic engineering a single link.

NetForge Team · answered

Your answer

Posting questions and answers is included with every paid plan, from $15/mo. On the Free plan you can read, like, comment, connect and message. Compare plans →