auto-cost reference bandwidth
Use this command to control how OSPF calculates the default metric for the interface.
Use the no form of this command to assign cost based only on the interface bandwidth.
Command Syntax
auto-cost reference-bandwidth <1-4294967>
no auto-cost reference-bandwidth
Parameters
<1-4294967>
The reference bandwidth in Mbps. The default is 100 Mbps.
Default
By default, OSPF calculates the OSPF metric for an interface by dividing the reference bandwidth by the interface bandwidth. The default value for the reference bandwidth is 100Mbps. The auto-cost command is used to differentiate high bandwidth links. For multiple links with high bandwidth, specify a larger reference bandwidth value to differentiate cost on those links.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#auto-cost reference-bandwidth 50
(config)#router ospf 100
(config-router)#no auto-cost reference-bandwidth
Last modified date: 10/16/2023