< Home

ospf timer ldp-sync hold-max-cost

Function

The ospf timer ldp-sync hold-max-cost command sets the interval at which OSPF link state advertisements (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 configuration.

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. 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 up. -

Views

Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view, Virtual-Template interface view, BDIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an LDP session over an active link fails, run the ospf timer ldp-sync hold-max-cost command to set an interval during which traffic is still transmitted along a standby link before the LDP session over the active link is reestablished.

You can choose different parameters as needed.
  • If OSPF carries only LDP services, configure infinite to ensure that OSPF routing is always consistent with the LDP label switched path (LSP).
  • If OSPF carries multiple services including LDP services, set value to ensure that OSPF route selection and other services still run properly even though the LDP session over the active link fails.
If both infinite and value are configured, the latest configuration overrides the previous one.

Example

# Set the interval at which OSPF LSAs are sent to advertise the maximum metric on the local device to 8 seconds.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-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 >