The static-route timer ldp-sync hold-down command sets the time during which a static route remains inactive and waits for an LDP session to be established.
The undo static-route timer ldp-sync hold-down command restores the default setting.
By default, the time during which a static route remains inactive and waits for an LDP session to be established is 10 seconds.
static-route timer ldp-sync hold-down { timer | infinite }
undo static-route timer ldp-sync hold-down
| Parameter | Description | Value |
|---|---|---|
| timer | Specifies the time during which a static route remains inactive and waits for an LDP session to be established. | An integer ranging from 0 to 65535, in seconds |
| infinite | Indicates that the Hold-down timer never expires. A static route becomes active only after an LDP session is established. | - |
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
On an MPLS network with primary and backup links, LSRs establish LSPs based on static routes. When the LDP session of the primary link becomes faulty (the fault is not caused by a link failure) or the primary link recovers, configuring synchronization between LDP and static routes minimizes traffic loss during traffic switchover and switchback. After synchronization between LDP and static routes is enabled, and the static-route timer ldp-sync hold-down command is run, the recovered static route becomes temporarily inactive. It waits for an LDP session to be established before the Hold-down timer expires, which synchronizes LDP and the static route.
If the Hold-down timer expires, the static route becomes active regardless of whether an LDP session has been established.
If the Hold-down timer is set to 0 seconds, synchronization between LDP and static routes is disabled on an interface.
If the Hold-down timer is set to infinite, the timer never expires. In this case, the static route becomes active and MPLS traffic is switched only after an LDP session is established.