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.
ospf timer ldp-sync hold-max-cost { value | infinite }
undo ospf timer ldp-sync hold-max-cost
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. | - |
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.
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.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ospf ldp-sync [HUAWEI-Vlanif100] ospf timer ldp-sync hold-max-cost 8
<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