1552
C
95: MPLS B
HAPTER
Example
mpls ldp timer keepalive-hold
Syntax
View
Parameter
Description
Example
C
C
ASICS
ONFIGURATION
OMMANDS
# Set the link Hello timer for local sessions to 100 seconds on interface Ethernet
1/0.
<Sysname> System-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] mpls
[Sysname-Ethernet1/0] mpls ldp
[Sysname-Ethernet1/0] mpls ldp timer hello-hold 100
# Set the targeted Hello timer for remote sessions to 1,000 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 value
undo mpls ldp timer keepalive-hold
Interface view/MPLS LDP remote peer view
value: Length of time for the Keepalive timer, in the range 1 to 65,535 seconds.
Use the
mpls ldp timer keepalive-hold
Use the
undo mpls ldp timer keepalive-hold
defaults.
In interface view, you configure the link Keepalive timer; in MPLS LDP remote peer
view, you configure the targeted Keepalive timer.
By default, both the link Keepalive timer and targeted Keepalive timer are set to
45 seconds.
c
CAUTION:
If more than one link with LDP enabled exists between two LSRs when, for
■
example, the two LSRs are connected through multiple interfaces, the
Keepalive timers of all the links must be identical for sessions to be stable.
Changing the values of the Keepalive timers will cause existing LDP sessions to
■
be reestablished.
# Set the link Keepalive timer for local sessions to 50 seconds on interface
Ethernet 1/0.
<Sysname> System-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] mpls
[Sysname-Ethernet1/0] mpls ldp
[Sysname-Ethernet1/0] mpls ldp timer keepalive-hold 50
command to set the keepalive timers.
command to restore the