The mpls ldp timer keepalive-hold command sets the Keepalive hold timer value.
The undo mpls ldp timer keepalive-hold command restores the default configuration.
By default, the value of the Keepalive hold timer is 45s.
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
Usage Scenario
LDP peers maintain LDP sessions using LDP PDUs transmitted over session connections. If a node does not receive any LDP PDU before the Keepalive hold timer times out, the node terminates the session by closing the connection.
The default timer value is recommended. On a network where the link status is unstable, you can increase the Keepalive hold timer value properly. This helps prevent LDP flapping. There are two types of Keepalive hold timers:Prerequisites
MPLS LDP has been enabled on the interface.
Implementation Procedure
After the mpls ldp timer keepalive-hold command is run, the system displays the following message:
Warning: All the related sessions will be deleted if the operation is performed! Continue? [Y/N]:y To confirm to run the command, enter y.Configuration Impact
After the mpls ldp timer keepalive-hold command is run, the Keepalive hold timer value that takes effect is the smaller one of the Keepalive hold timer values configured on both ends of an LDP session.
Precautions
For a local LDP multi-link session, the values of the Keepalive hold timers configured for all links must be the same. If the values are different, the LDP session or LSP cannot be established.
For a coexistent local and remote LDP session, the values of the Keepalive hold timers configured for all links and remote peers must be the same. Otherwise, the LDP session or LSP cannot be established. If the Keepalive hold timers configured on multiple links and remote peers are different, LDP establishes a session only by using the first-discovered adjacency. Other adjacencies with different configurations cannot be bound to the session. As a result, no LSP can be established on these adjacencies. If the value of the Keepalive hold timer negotiated by both ends of an LDP session is less than 9s, the value 9s is used. Note: Changing the value of a KeepAlive hold timer may lead to reestablishment of related LDP sessions.<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls ldp [*HUAWEI-mpls-ldp] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls [*HUAWEI-GigabitEthernet0/1/0] mpls ldp [*HUAWEI-GigabitEthernet0/1/0] mpls ldp timer keepalive-hold 90