R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

94
Default level
2: System level
Parameters
None
Description
Use stp enable to enable the spanning tree feature globally.
Use undo stp enable to disable the spanning tree feature.
By default, the spanning tree feature is enabled globally and on all ports.
Configured in system view, the setting takes effect globally.
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.
When you enable the spanning tree feature, the device works in STP-compatible, RSTP, or MSTP mode,
depending on the spanning tree mode setting.
When the spanning tree feature is enabled, the device dynamically maintains the spanning tree status of
VLANs based on received configuration BPDUs. When the spanning tree feature is disabled, the device
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 MSTP mode, disable the spanning tree feature on port GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] undo stp enable
stp loop-protection
Syntax
stp loop-protection
undo stp loop-protection
View
Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None