maximum-link-cost (OSPFv3 view)

Function

The maximum-link-cost command sets the maximum cost for OSPFv3 links.

The undo maximum-link-cost command restores the default value.

By default, the maximum cost of OSPFv3 links is 65535.

Format

maximum-link-cost cost

undo maximum-link-cost [ cost ]

Parameters

Parameter Description Value
cost

Sets the maximum cost for OSPFv3 links.

The value is an integer ranging from 1 to 65534.

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

An OSPFv3 neighbor relationship is re-established when the status of the corresponding OSPFv3 interface changes from down to up. After IGP route convergence, services will be switched back. Because the IGP route convergence speed is fast, many services that depend on IGP routes may expect a delayed IGP route switchback. This delay can be achieved using the ospfv3 peer hold-max-cost command, allowing OSPFv3 to set the link cost in local LSAs to LSInfinity (65535) for a period of time. However, as defined in the corresponding standard protocol, the links with the cost 65535 cannot participate in FRR route calculation. To resolve this issue, the maximum-link-cost command can be used to change link costs.

Example

# Set the maximum cost to 65534 for OSPFv3 links.
<HUAWEI> system-view
[~HUAWEI] ospfv3 100
[*HUAWEI-ospfv3-100] maximum-link-cost 65534
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >