The bandwidth-reference command sets the bandwidth reference value that is used when the system calculates the cost of an interface automatically.
The undo bandwidth-reference command cancels the configuration.
By default, the bandwidth reference value is 100.
| Parameter | Description | Value |
|---|---|---|
value |
Specifies the bandwidth reference value. |
The value is an integer ranging from 1 to 2147483648, in Mbit/s. |
To make the set link cost of IS-IS routes reflect the actual link cost, you need to configure a proper link cost for all interfaces or enable automatic interface cost calculation. To enable automatic interface cost calculation, you need to set a proper bandwidth reference value.
You can run the bandwidth-reference command to set a proper bandwidth reference value. After automatic interface cost calculation is enabled, and the cost type is wide or wide-compatible, the system calculates the cost of each interface with the following formula: Interface cost = (Bandwidth-reference/Interface bandwidth) x 10. If the interface cost calculated through this formula is greater than 16777214, 16777214 is used as the interface cost for route calculation. That is, the interface cost will never be greater than 16777214.
The automatic interface cost calculation is enabled by the auto-cost enable command, and the cost style is set by the cost-style command.
The bandwidth-reference command can be operated on Eth-Trunk interfaces as same with on physical interfaces. If the command is run on an Eth-Trunk interface, the bandwidth of the Eth-Trunk interface is equal to the total bandwidth of all its member interfaces.