< Home

bandwidth-reference (OSPF)

Function

The bandwidth-reference command sets a bandwidth reference value that is used to calculate interface costs.

The undo bandwidth-reference command restores the default bandwidth reference value.

The default bandwidth reference value is 100 Mbit/s.

Format

bandwidth-reference value

undo bandwidth-reference

Parameters

Parameter Description Value

value

Specifies a bandwidth reference value for link cost calculation.

The value is an integer ranging from 1 to 2147483648, in Mbit/s. The default value is 100 Mbit/s.

Views

OSPF view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The calculation formula is as follows: Interface cost = Bandwidth reference value/Interface bandwidth. The integer of the calculated result is the interface cost. If the calculated result is smaller than 1, the interface cost value is 1. If the bandwidth-reference command is executed to configure a new bandwidth reference value, the interface cost will be changed. As a result, OSPF will re-select routes.

The default bandwidth reference value is 100 Mbit/s. The interface cost value is 100000000 divided by the interface bandwidth value.

Precautions

  • After the bandwidth-reference command is configured in a process view, bandwidth reference values of all interfaces in the process are changed to the specified value.
  • If the bandwidth-reference 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.

Example

# Set the bandwidth reference value to 1000 Mbit/s.

<HUAWEI> system-view
[HUAWEI] ospf 100
[HUAWEI-ospf-100] bandwidth-reference 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >