bandwidth-reference (OSPFv3 view)

Function

The bandwidth-reference command sets the bandwidth reference value for interface 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. The bandwidth is in bit/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

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

If the interface cost is not set, OSPFv3 calculates it according to the link bandwidth (Cost = Reference Value/Bandwidth). The ospfv3 cost command sets a cost for an OSPFv3 interface. The priority of the cost set using the ospfv3 cost command is higher than that of the cost set using the bandwidth-reference command.

Example

# Set the bandwidth reference value to 1000.
<HUAWEI> system-view
[~HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] bandwidth-reference 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >