R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide

45
Usage guidelines
The LDP recovery time refers to the maximum time that the stale state label will be kept by the LSR after
a TCP reconnection.
Modifying the LDP recovery time will cause all LDP sessions and all LSPs based on the sessions to be
removed and then reestablished.
Examples
# Set the LDP recovery time to 45 seconds.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] graceful-restart timer recovery 45
hops-count
Use hops-count to set the maximum hop count for loop detection.
Use undo hops-count to restore the default.
Syntax
hops-count hop-number
undo hops-count
Default
The maximum hop count for loop detection is 32.
Views
MPLS LDP view, MPLS LDP VPN instance view
Default command level
2: System level
Parameters
hop-number: Specifies the hop count in the range of 1 to 32.
Usage guidelines
Configure this command before enabling LDP on any interface.
The maximum hop count dictates how fast LDP detects a loop. Adjust this value as required.
Examples
# Set the maximum hop count for loop detection to 25 for the public network LDP instance.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-mpls-ldp] hops-count 25
# Set the maximum hop count for loop detection to 25 for LDP instance vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] hops-count 25
Related commands
loop-detect