![HP 3100 v2 Series Скачать руководство пользователя страница 121](http://html.mh-extra.com/html/hp/3100-v2-series/3100-v2-series_command-reference-manual_165751121.webp)
114
Examples
# Enable the loop guard function on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/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, in the range of 1 to 40.
Description
Use
stp max-hops
to set the maximum hops of the MST region.
Use
undo stp max-hops
to restore the default.
By default, the maximum number of hops of an MST region is 20.
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
View
System view, Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use
stp mcheck
to perform the mCheck operation globally or on a port.
If a port on a device running MSTP, RSTP, or PVST mode connects to an STP device, the port will
automatically migrate to the STP mode. It will not be able to migrate automatically back to the MSTP,
RSTP, or PVST mode, so it will remain operating in the STP mode until the STP switch is shut down