< Home

mpls ldp timer keepalive-hold

Function

The mpls ldp timer keepalive-hold command sets the timeout period of a Keepalive hold timer.

The undo mpls ldp timer keepalive-hold command restores the default configuration.

By default, the timeout period of the Keepalive-hold timers of both local and remote sessions is 45 seconds.

Format

mpls ldp timer keepalive-hold interval

undo mpls ldp timer keepalive-hold

Parameters

Parameter Description Value
interval Specifies the timeout period of a Keepalive hold timer. An integer ranging from 30 to 65535, in seconds

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

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

LDP peers exchange LDP PDUs over session connections to maintain LDP sessions. If a node does not receive any LDP PDU after the Keepalive hold timer expires, the node closes the connection to terminate the session.

Using the default value of the Keepalive hold timer is recommended. On a network with unstable links, increase the value of a Keepalive hold timer, preventing a remote LDP session from flapping.

Keepalive hold timer of the local session: used to maintain the local LDP session. The mpls ldp timer keepalive-hold command in the interface view sets a value for the timer.

The value of the Keepalive hold timer that takes effect is the smaller one between the two Keepalive hold timers configured on both ends of an LDP session.

Implementation Procedure

When the mpls ldp timer keepalive-hold command is run, the system displays the following prompt:

  Warning: All the related sessions will be deleted if the operation is performed!
Continue? (y/n):y

To continue the operation, enter y.

Configuration Impact

The value of the Keepalive hold timer that takes effect is the smaller one between the two Keepalive hold timers configured on both ends of an LDP session.

Precautions

If there is more than one LDP link between two LSRs, the values of the Keepalive hold timers set for the links must be the same. Otherwise, the LDP sessions may be unstable.

Changing the value of a Keepalive hold timer causes the reestablishment of related LDP sessions.

Example

# Set the Keepalive hold timer for a local session to 90 seconds.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] mpls ldp timer keepalive-hold 90
  Warning: All the related sessions will be deleted if the operation is performed!
Continue? (y/n)y
[sysname-GigabitEthernet0/0/0] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >