R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
76
Configured in Ethernet interface view, the setting takes effect on the interface only.
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.
Related commands: stp edged-port and stp root-protection.
Examples
# Enable the loop guard function on GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/1
[Sysname-GigabitEthernet0/1] stp loop-protection
stp max-hops
Syntax
stp max-hops hops
undo stp max-hops
View
System view
Default level
2: System level
Parameters
hops: Sets the maximum hops, ranging from 1 to 40.
Description
Use the stp max-hops command to set the maximum hops of the MST region.
Use the undo stp max-hops command to restore the default.
By default, the maximum number of hops of an MST region is 20.
The maximum hops limit the size of the MST region.
Related commands: display stp.
Examples
# Set the maximum hops of the MST region to 35.
<Sysname> system-view
[Sysname] stp max-hops 35
stp mcheck
Syntax
stp mcheck