HP VPN Firewall Appliances Network Management Command Reference

99
stp enable
Use stp enable to enable the spanning tree feature.
Use undo stp enable to disable the spanning tree feature.
Syntax
stp enable
undo stp enable
Default
The spanning tree feature is enabled on all ports and disabled globally.
Views
System view, Ethernet interface view, Layer 2 aggregate interface view
Default command level
2: System level
Usage guidelines
Configured in system view, the setting takes effect globally.
Configured in Ethernet interface view, the setting takes effect only on the interface.
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 operates in STP, RSTP, or MSTP mode, depending
on the spanning tree mode setting.
When you enable the spanning tree feature, the device dynamically maintains the spanning tree status
of VLANs based on received configuration BPDUs.
When you disable the spanning tree feature, the device stops maintaining the spanning tree status.
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
Related commands
stp mode
stp loop-protection
Use stp loop-protection to enable the loop guard function on the ports.
Use undo stp loop-protection to disable the loop guard function on the ports.