R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
34
Usage guidelines
On a port, the loop guard function is mutually exclusive with the root guard function or the edge port
setting.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only the interface.
Examples
# Enable the loop guard function on GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] stp loop-protection
Related commands
• stp edged-port
• stp root-protection
stp max-hops
Use stp max-hops to set the maximum number of hops for an MST region.
Use undo stp max-hops to restore the default.
Syntax
stp max-hops hops
undo stp max-hops
Default
The maximum number of hops for an MST region is 20.
Views
System view
Predefined user roles
network-admin
Parameters
hops: Sets the maximum hops in the range of 1 to 40.
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 on a port.
Syntax
stp mcheck