H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – MSTP
H3C S7500 Series Ethernet Switches Chapter 1
MSTP Configuration Commands
1-29
Parameters
hops: Maximum hops to be set. This argument ranges from 1 to 40. The default
maximum hop value of an MST region is 20.
Description
Use the stp max-hops command to set the maximum hops for the MST region the
current switch belongs to.
Use the undo stp max-hops command to revert to the default maximum hops.
The maximum hop values configured on the region roots of the CIST and MSTI in an
MST region limit the size of the MST region.
A configuration BPDU contains a field that maintains the remaining hops of the
configuration BPDU. And a switch discards the configuration BPDUs whose remaining
hops are 0. After a configuration BPDU reaches a root bridge of a spanning tree in an
MST region, the value of the remaining hops field in the configuration BPDU is
decreased by 1 every time the configuration BPDU passes a switch. Such a
mechanism disables the switches beyond the maximum hops from participating in
spanning tree generation, and thus limits the size of an MST region.
With such a mechanism, the maximum hops configured on the switch operating as the
root bridge of the CIST or an MSTI in an MST region becomes the network diameter of
the spanning tree, which limits the size of the spanning tree in the current MST region.
The switches that are not root bridges in the MST region adopt the maximum hop
settings of their root bridges.
Examples
# Set the maximum hops of the current MST region to 35.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] stp max-hops 35
1.1.28 stp mcheck
Syntax
stp mcheck
View
Ethernet port view
Parameters
None