Configures reference bandwidth.
Reference bandwidth is 100 Mbps.
OSPF router configuration mode
OSPF router VRF configuration mode
Use this command to configure the cost of an interface that a device advertises to it's OSPF neighbors. OSPF calculates the cost of a route as the ratio of the reference bandwidth to the bandwidth of the egress interface. An increase in the reference bandwidth results in an increased cost. If the resulting cost is less than 1, the software rounds the cost up to 1.
The bandwidth for interfaces that consist of more than one physical port is calculated as follows:
If a change to the reference bandwidth results in a cost change to an interface, the device sends a link-state update to update the costs of interfaces advertised by the device.
Note
If you specify the cost for an individual interface (by using the ip ospf cost command), the cost you specify overrides the cost calculated by the software.The no form of the command disables bandwidth configuration.
The following example configures a reference bandwidth of 500.
device# configure terminal device(config)# router ospf device(config-router-ospf-vrf-default-vrf)# auto-cost reference-bandwidth 500
The reference bandwidth specified in this example results in the following costs:
The costs for 10 Mbps and 100 Mbps ports change as a result of the changed reference bandwidth. Costs for higher-speed interfaces remain the same.