![HP 3100 v2 Series Скачать руководство пользователя страница 120](http://html.mh-extra.com/html/hp/3100-v2-series/3100-v2-series_command-reference-manual_165751120.webp)
113
When you enable MSTP, the switch dynamically maintains the spanning tree status of VLANs, based
on received configuration BPDUs.
When you disable MSTP, the switch stops maintaining the spanning tree status.
Related commands:
stp mode
.
Examples
# In MSTP mode, enable the spanning tree feature globally.
<Sysname> system-view
[Sysname] stp enable
# In PVST mode, enable the spanning tree feature globally and in VLAN 2.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp enable
[Sysname] stp vlan 2 enable
# In MSTP mode, disable the spanning tree feature on port Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] undo stp enable
stp loop-protection
Syntax
stp loop-protection
undo stp
loop-protection
View
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Description
Use
stp loop-protection
to enable the loop guard function on the ports.
Use
undo stp loop-protection
to restore the default.
By default, the loop guard function is disabled.
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all 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.
Related commands:
stp edged-port
and
stp root-protection
.