OSPF calculates cost based on interface bandwidth. The formula is:
The default reference bandwidth is Mbps ( bps). Examples:
- Mbps link: cost
- Mbps link: cost
- Gbps link: cost (minimum)
The problem: links faster than Mbps all get cost . Modern networks should increase the reference bandwidth:
Router(config-router)# auto-cost reference-bandwidth 10000
This sets reference to Gbps, allowing differentiation between fast links.