The bandwidth-reference command sets a bandwidth reference value for link cost calculation.
The undo bandwidth-reference command restores the default setting.
By default, the bandwidth reference value of the link cost is 100 Mbit/s. That is, the link cost is 100000000/bandwidth.
Parameter | Description | Value |
---|---|---|
value |
Specifies a bandwidth reference value for link cost calculation. |
The value is an integer that ranges from 1 to 2147483648, in Mbit/s. The default value is 100 Mbit/s. |
To set a cost for an interface that runs OSPFv3, you can run the ospfv3 cost command. If the link cost is not set, OSPFv3 calculates the link cost according to the link bandwidth (Cost = Reference Value/Bandwidth). The priority of the cost set using the ospfv3 cost command is higher than that set using the bandwidth-reference command.
The bandwidth-reference command has the same function on Eth-Trunk interfaces and physical interfaces. If the command is run on an Eth-Trunk interface, the bandwidth of the Eth-Trunk interface is the total bandwidth of all its member interfaces.
The bandwidth bandwidth command can only set an interface bandwidth obtained by the NMS from the MIB. It cannot change an interface actual bandwidth and interface cost.