
Command Manual – STP
Quidway S8500 Series Routing Switches
Chapter 1 MSTP Configuration Commands
Huawei Technologies Proprietary
1-29
Caution:
If the equipment connected to the port of the switch cannot send STP packets to the
switch, do not configure the
loop-protection
command; otherwise the port will be
congested for a long time.
Example
# Enable loop protection function in Ethernet2/1/1.
<Quidway>system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Ethernet2/1/1
[Quidway-Ethernet2/1/1] stp loop-protection
1.1.27 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 to 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 travels
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.