91
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.
Configuration restrictions and guidelines
•
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.
•
In PVST mode, when you globally enable the spanning tree feature the device automatically
enables the spanning tree feature for the first
n
(which is the number of PVST instances that the
switch supports and is 128 for the S3600V2 switch) of the existing VLANs by default. To enable the
spanning tree feature for other VLANs, you must first disable the spanning tree feature for certain
VLANs. This guideline does not apply if the number of existing VLANs on the switch does not
exceed
n
.
Enabling the spanning tree feature (in STP/RSTP/MSTP mode)
In STP/RSTP/MSTP mode, make sure that the spanning tree feature is enabled globally and on the
desired ports.
To enable the spanning tree feature in STP/RSTP/MSTP mode:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the spanning
tree feature globally.
stp enable
By default, the spanning tree
feature is disabled globally.
3.
Enter interface view or
port group view.
•
Enter Layer 2 Ethernet interface view or
Layer 2 aggregate interface view:
interface
interface-type interface-number
•
Enter port group view:
port-group manual
port-group-name
Use either command.
4.
Enable the spanning
tree feature for the
port or group of ports.
stp
enable
Optional.
By default, the spanning tree
feature is enabled for all ports.
Enabling the spanning tree feature (in PVST mode)
In PVST mode, make sure that the spanning tree feature is enabled globally and on the desired VLANs
and ports.
To enable the spanning tree feature in PVST mode:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Globally enable the spanning
tree feature.
stp enable
By default, the spanning tree
feature is disabled globally.