Switch 7700 Command reference Guide, v2.0

Table Of Contents
MSTP Configuration Commands 337
Parameter
None
Description
Use the stp loop-protection command to enable loop protection function.
Use the undo stp loop-protection command to restore the restore setting.
By default, the loop protection function is not enabled.
Example
Enable loop protection function in Ethernet5/0/1.
[SW7700-Ethernet5/0/1]stp loop-protection
stp max-hops Syntax
stp max-hops hop
undo stp max-hops
View
System view
Parameter
hop: Specifies the max hops, ranging from 1 to 40. By default, MST region Max
Hops is 20.
Description
Use the stp max-hops command, you can configure the Max Hops of an MST
region.
Use the undo stp max-hops command to restore the default Max Hops.
On CIST and MSTIs, the Max Hops configured on the region root determines the
max switching network diameter supported by the local MST region. As the BPDU
traveling from the spanning tree root, each time when it is forwarded by a switch,
the max hops will be reduced by 1. The switch discards the configuration BPDU
with 0 hops left, thereby limiting the network scale inside the region. If the current
switch is a CIST root bridge or MSTI root bridge in an MST region, the Max Hops
configured on it will be the network diameter of the spanning tree to limit its scale
in the local MST region. The Max Hops configured on the root bridge in an MST
region will be adopted by other switches in the same region.
Example
Set the Max Hops of an MST region to 35.
[SW7700]stp max-hops 35
stp mcheck Syntax
stp mcheck
View
Ethernet port view