bandwidth-reference (OSPF view)

Function

The bandwidth-reference command sets the bandwidth reference value for interface cost calculation.

The undo bandwidth-reference command restores the default configuration.

The default bandwidth reference value is 100 Mbit/s.

Format

bandwidth-reference value

undo bandwidth-reference

Parameters

Parameter Description Value
value

Specifies the bandwidth reference value for interface cost calculation.

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

Views

OSPF view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

The interface cost calculation formula is as follows: Interface cost = Bandwidth reference value/Interface bandwidth. The system only supports integer interface costs. If a calculated result is smaller than 1, such as 0.3, the system takes 1 as the result. If a calculated result is greater than 1 but not an integer, such as 2.3, the system takes the integer (2 in this example) as the result. If the bandwidth-reference command is executed to configure a new bandwidth reference value, the interface cost will be changed, and OSPF will re-select routes.

Configuration Impact

After the bandwidth-reference command is configured in a process, bandwidth reference values of all interfaces in the process are changed to the specified value.

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 >