Enabling the spanning tree feature
You must enable the spanning tree feature for the device before any other spanning tree related
configurations can take effect. In STP, RSTP, or MSTP mode, make sure the spanning tree feature is
enabled globally and on the desired ports. In PVST mode, make sure the spanning tree feature is
enabled globally, in the desired VLANs, and on the desired ports.
You can disable the spanning tree feature for certain ports with the undo stp enable command to exclude
them from spanning tree calculation and save CPU resources of the device. Make sure no loops occur in
the network after you disable the spanning tree feature on these ports.
Enabling the spanning tree feature in STP/RSTP/MSTP mode
Step
1.
Enter system view.
2.
Enable the spanning tree
feature.
3.
Enter Layer 2 Ethernet or
aggregate interface view.
4.
(Optional.) Enable the
spanning tree feature for the
port.
Enabling the spanning tree feature in PVST mode
Step
1.
Enter system view.
2.
Enable the spanning tree
feature.
3.
Enable the spanning tree
feature in VLANs.
Command
system-view
stp global enable
interface interface-type
interface-number
stp enable
Command
system-view
stp global enable
stp vlan vlan-id-list
enable
98
Remarks
N/A
•
If the device starts up with the initial
settings, the spanning tree feature is
disabled globally by default.
•
If the device starts up with the factory
defaults, the spanning tree feature is
enabled globally by default.
For more information about the startup
configuration, see Fundamentals
Configuration Guide.
N/A
By default, the spanning tree feature is
enabled on all ports.
Remarks
N/A
•
If the device starts up with the initial
settings, the spanning tree feature is
disabled globally by default.
•
If the device starts up with the factory
defaults, the spanning tree feature is
enabled globally by default.
For more information about the startup
configuration, see Fundamentals
Configuration Guide.
The spanning tree feature is enabled for all
VLANs.