92
Enabling 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.
stp global enable
•
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
.
3.
Enter Layer 2 Ethernet or
aggregate interface view.
interface interface-type
interface-number
N/A
4.
(Optional.) Enable the
spanning tree feature for the
port.
stp
enable
By default, the spanning tree feature is
enabled on all ports.
Enabling the spanning tree feature in PVST mode
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the spanning tree
feature.
stp global enable
•
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
.
3.
Enable the spanning tree
feature in VLANs.
stp
vlan
vlan-id-list
enable
The spanning tree feature is enabled for all
VLANs.
4.
Enter Layer 2 Ethernet or
aggregate interface view.
interface interface-type
interface-number
N/A
5.
Enable the spanning tree
feature on the port.
stp
enable
By default, the spanning tree feature is
enabled on all ports.
Performing mCheck
The mCheck feature enables user intervention in the port status transition process.
When a port on an MSTP, RSTP, or PVST device connects to an STP device and receives STP
BPDUs, the port automatically transits to the STP mode. However, the port cannot automatically
transit back to the original mode when the following conditions exist:
•
The peer STP device is shut down or removed.