ospfv3 peer hold-max-cost(interface view)

Function

The ospfv3 peer hold-max-cost command sets a period during which OSPFv3 keeps the maximum cost in local LSAs.

The undo ospfv3 peer hold-max-cost command restores the default configuration.

By default, no such a period is set after an OSPFv3 neighbor relationship is established.

Format

ospfv3 peer hold-max-cost timer hold-max-cost-value [ instance instance-id ]

undo ospfv3 peer hold-max-cost timer [ hold-max-cost-value ] [ instance instance-id ]

Parameters

Parameter Description Value
instance instance-id

Specifies the ID of the instance to which an interface belongs.

The value is an integer ranging from 0 to 255.

timer hold-max-cost-value

Specifies a period during which OSPFv3 keeps the maximum cost in local LSAs.

The value is an integer ranging from 100 to 1000000, in milliseconds.

Views

100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, Global VE sub-interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

When an OSPFv3 interface changes from Down to Up, the OSPFv3 neighbor relationship is re-established. When IGP route convergence ends, traffic is switched back. IGP routes converge fast. Many services that depend on IGP routes may require a delayed switchback. In this case, you can run the ospfv3 peer hold-max-cost command so that OSPFv3 keeps the maximum cost in local LSAs for a specified period after the OSPFv3 neighbor relationship reaches Full state. During this period, the traffic forwarding path remains unchanged. After this period elapses, the original cost is restored, and traffic is switched back.

Example

# Set the period during which OSPFv3 keeps the maximum cost in local LSAs on GE 0/1/0 to 1000 ms.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] ospfv3 100 area 0 instance 100
[*HUAWEI-GigabitEthernet0/1/0] ospfv3 peer hold-max-cost timer 1000 instance 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >