R3102-R3103-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference
67
Views
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all member ports in the port group.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on a member port in an aggregation group, the setting takes effect only after the port leaves
the aggregation group.
You cannot configure edge port settings and loop guard, or configure root guard and loop guard on a
port at the same time.
Examples
# Enable the loop guard function on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] stp loop-protection
Related commands
• stp edged-port
• stp root-protection
stp max-hops
Use stp max-hops to set the maximum hops of the 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 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.










