![H3C S9500 Series Скачать руководство пользователя страница 59](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036059.webp)
Command Manual – MPLS Basics
H3C S9500 Series Routing Switches
Chapter 1 MPLS Basics Configuration Commands
1-51
1.1.25 hops-count
Syntax
hops-count
hop-number
undo hops-count
View
MPLS LDP view/MPLS LDP VPN instance view
Default Level
1: Monitor level
Parameters
hop-number
: Hop count.
Description
Use the
hops-count
command to set the maximum hop count for loop detection.
Use the
undo hops-count
command to restore the default.
By default, the maximum hop count for loop detection is 32.
Note that:
z
You must configure the command before enabling LDP on any interface.
z
The maximum hop count dictates how fast LDP detects a loop. Adjust this
argument as required.
Related commands:
loop-detect
,
path-vectors
.
Examples
# Set the maximum hop count for loop detection to 25 for the public network LDP.
<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 named vpn1.
<Sysname> system-view
[Sysname] mpls ldp vpn-instance vpn1
[Sysname-mpls-ldp-vpn-instance-vpn1] hops-count 25
1.1.26 label advertise
Syntax
label advertise
{
explicit-null
|
implicit-null
|
non-null
}