<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 argument 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
•
•
path-vectors
label advertise
Use label advertise to specify what type of label the egress should distribute to the penultimate hop.
Use undo label advertise to restore the default.
86