The mpls ldp timer keepalive-hold command sets the value of a Keepalive hold timer.
The undo mpls ldp timer keepalive-hold command restores the default setting.
By default, the value of the Keepalive-hold timers of both local and remote sessions is 45 seconds.
Parameter | Description | Value |
---|---|---|
interval |
Specifies the timeout period of a Keepalive hold timer. |
The value is an integer ranging from 30 to 65535, in seconds. |
VLANIF interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-trunk interface view, remote MPLS LDP peer view
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.
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 the session flapping.
Prerequisites
The remote LDP peer has been configured or MPLS LDP has been enabled on the interface.
Precautions
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.
If more than one LDP link exists 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.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mpls ldp [HUAWEI-Vlanif100] mpls ldp timer keepalive-hold 60 Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] mpls ldp [HUAWEI-GigabitEthernet0/0/1] mpls ldp timer keepalive-hold 60 Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y
<HUAWEI> system-view [HUAWEI] mpls ldp remote-peer bji [HUAWEI-mpls-ldp-remote-bji] mpls ldp timer keepalive-hold 50 Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y