auto-cost reference-bandwidth

Use this command to configure an OSPF auto cost reference bandwidth for this OSPFv2 instance.

Syntax

auto-cost reference-bandwidth bandwidth-multiplier
no auto-cost reference-bandwidth bandwidth-multiplier

Parameters

bandwidth-multiplier Specifies the auto cost bandwidth multiplier in megabits per second for this OSPFv2 instance. Valid values are 1 - 4294967. The default value is 100.

Defaults

None.

Mode

OSPF router configuration.

Usage

The formula for calculating the OSPF interface cost metric is the reference bandwidth divided by the interface bandwidth. By default the reference bandwidth is set to 100 Mbps. For 10 Mbps links, the resulting cost is 10. For 100, 1000, or 10000 Mbps links, the resulting cost is 1. The ability to re-center the reference bandwidth to a higher value, allows for OSPF interface costs to default to a value greater than 1 for 100, 1000, or 10000 Mbps links and greater than 10 for 10 Mbps links.

It is recommended that the auto cost reference bandwidth be the same value for all OSPF routers in the domain.

The OSPF interface cost can be statically set or determined using the interface summoning method with tracked objects using ip ospf cost.

The “no” form of this command resets the auto cost reference bandwidth to 100 Mbps for this OSPFv2 instance.

Example

This example shows how to configure the auto cost reference bandwidth to 1Gbps for OSPF instance 10:

System(su)->configure
System(su-config)->router ospf 10
System(su-config-ospf-10)->auto-cost reference-bandwidth 1000
System(su-config-ospf-10)->