< Home

ospf timer ldp-sync hold-max-cost

Function

The ospf timer ldp-sync hold-max-cost command sets the interval at which OSPF LSAs are sent to advertise the maximum metric on the local device.

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

By default, the interval is 10 seconds.

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 for sending OSPF LSAs 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 is reestablished. -

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the primary LSP recovers from a fault, run 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 of the primary LSP is reestablished.

You can choose different parameters as required.
  • When OSPF carries only LDP services, to ensure that OSPF routing is always consistent with the LDP LSP, specify infinite.
  • When OSPF carries multiple services including LDP services, to ensure that OSPF route selection and other services still run properly in case the LDP session of the primary LSP fails, specify value.

Prerequisites

LDP and OSPF synchronization has been enabled using the ospf ldp-sync command in the interface view.

Precautions

This command is circular in nature, and the latest configuration overrides the previous configurations.

Example

# Set the interval at which OSPF LSAs are sent to advertise the maximum metric on the local device to 8 seconds.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ospf ldp-sync
[HUAWEI-Vlanif100] ospf timer ldp-sync hold-max-cost 8
# Set the interval at which OSPF LSAs are sent to advertise the maximum metric on the local device to 8 seconds.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] ospf ldp-sync
[HUAWEI-GigabitEthernet0/0/1] ospf timer ldp-sync hold-max-cost 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >