ospf timer ldp-sync hold-max-cost

Function

The ospf timer ldp-sync hold-max-cost command sets the interval at which OSPF advertises the maximum cost through LSAs.

The undo ospf timer ldp-sync hold-max-cost command restores the default interval.

By default, OSPF always advertises the maximum metric in LSAs on the local device before an LDP session is reestablished.

Format

ospf timer ldp-sync hold-max-cost { value | infinite }

undo ospf timer ldp-sync hold-max-cost

Parameters

Parameter Description Value
value

Specifies the interval at which OSPF LSAs are sent to advertise the maximum metric on the local device.

The value is an integer ranging from 0 to 65535, in seconds.

infinite

Indicates that OSPF always advertises the maximum metric in LSAs on the local device before an LDP session and an LDP adjacency are reestablished.

-

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, GMPLS-UNI interface view, Global VE sub-interface view, Tunnel 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 the primary LSP recovers from a fault, you can use the ospf timer ldp-sync hold-max-cost command to set the interval during which traffic is still transmitted along the backup LSP before the LDP session and LDP adjacency of the primary LSP are reestablished.

You can choose different parameters as required.

  • When OSPF carries only LDP services, set infinite to ensure that the OSPF route is always consistent with the LDP LSP.
  • When OSPF carries multiple services, including LDP services, specify value to ensure that OSPF route selection and other services are normal if an LDP session or LDP adjacency for the primary LSP fails.

Precautions

If this command is run more than once, the latest configuration overrides the previous ones.

Example

# Set the interval to 8 seconds for sending OSPF LSAs to advertise the maximum metric on the local device.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ospf timer ldp-sync hold-max-cost 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >