R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

69
Syntax
stp max-hops hops
undo stp max-hops
Default
The maximum number of hops of an MST region is 20.
Views
System view
Default command level
2: System level
Parameters
hops: Sets the maximum hops in the range of 1 to 40.
Usage guidelines
The maximum hops limit the size of the MST region.
Examples
# Set the maximum hops of the MST region to 35.
<Sysname> system-view
[Sysname] stp max-hops 35
Related commands
display stp
stp mcheck
Use stp mcheck to perform the mCheck operation globally or on a port.
Syntax
stp mcheck
Views
System view, Ethernet interface view, Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
If a port on a device that runs MSTP or RSTP mode connects to an STP device, the port will automatically
transit to the STP mode. It cannot automatically transit back to the original mode when:
The STP device is shut down or removed.
The STP device transits to the MSTP or RSTP mode.
Then, you can perform an mCheck operation to forcibly transit the port to operation in the original mode.
Suppose Device A running STP, Device B with no spanning tree feature enabled, and Device C running
RSTP or MSTP are connected in order. Device B will transparently transmit STP BPDUs, and the port on
Device C and connecting to Device B will transit to the STP mode. After you enable the spanning tree
feature on Device B, to run RSTP or MSTP between Device B and Device C, you must perform an mCheck