static-route timer ldp-sync hold-down

Function

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.

Format

static-route timer ldp-sync hold-down { timer | infinite }

undo static-route timer ldp-sync hold-down

Parameters

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.

-

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, GMPLS-UNI interface view, VLANIF interface view, XGE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

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.

Precautions

The command cannot be run on loopback interfaces or the Null0 interface.

Example

# Set the time during which a static route remains inactive and waits for an LDP session to be established to 20 seconds.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/3
[~HUAWEI-GigabitEthernet0/1/3] static-route timer ldp-sync hold-down 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >