64
Examples
# Enable the loop guard function on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp loop-protection
stp max-hops
Syntax
stp max-hops
hops
undo stp
max-hops
View
System view
Default level
2: System level
Parameters
hops
: Sets the maximum hops, ranging from 1 to 40.
Description
Use
stp max-hops
to set the maximum hops of the MST region.
Use
undo stp max-hops
to restore the default.
By default, the maximum number of hops of an MST region is 20.
The maximum hops limit the size of the MST region.
Related commands:
display stp
.
Examples
# Set the maximum hops of the MST region to 35.
<Sysname> system-view
[Sysname] stp max-hops 35
stp mcheck
Syntax
stp mcheck
View
System view, Ethernet interface view, WLAN mesh interface view
Default level
2: System level
Parameters
None