
99
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
[Sysname-Vlan-interface1] mpls ldp timer hello-hold 100
# Set the targeted hello timer to 1000 seconds.
<Sysname> system-view
[Sysname] mpls ldp remote-peer BJI
[Sysname-mpls-ldp-remote-bji] remote-ip 3.3.3.3
[Sysname-mpls-ldp-remote-bji] mpls ldp timer hello-hold 1000
mpls ldp timer keepalive-hold
Description
Use the
mpls ldp timer keepalive-hold
command to set a keepalive timer.
Use the
undo mpls ldp timer keepalive-hold
command to restore the default.
In interface view, you set the link keepalive timer. In MPLS LDP remote peer view, you set the targeted
keepalive timer.
By default, both the link keepalive timer and targeted keepalive timer are set to 45 seconds.
If more than one link with LDP enabled exists between two LSRs (for example, when the two LSRs are
connected through multiple interfaces), the keepalive timers of all the links must be identical for the
sessions to be stable.
Changing the values of the keepalive timers will cause all LDP sessions and the LSPs based on the
sessions to be removed and then reestablished.
Syntax
mpls ldp timer keepalive-hold
value
undo mpls ldp timer keepalive-hold
View
Interface view, MPLS LDP remote peer view
Default level
2: System level
Parameters
value
: Specifies the value of the keepalive timer, ranging from 1 to 65,535, in seconds.
Examples
# Set the link keepalive timer to 50 seconds on interface VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls
[Sysname-Vlan-interface1] mpls ldp
[Sysname-Vlan-interface1] mpls ldp timer keepalive-hold 50
# Set the targeted keepalive timer to 1000 seconds.
<Sysname> system-view