R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101
78
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.
1. Enabling the spanning tree feature (in STP/RSTP/MSPT mode)
In STP/RSTP/MSTP mode, make sure that the spanning tree feature is enabled globally and on the
desired ports.
Follow these steps to enable the spanning tree feature in STP/RSTP/MSTP mode:
To do... Use the command...
Remarks
Enter system view system-view —
Enable the spanning
tree feature
stp enable
Required
Whether the spanning tree feature is
globally enabled by default depends on
your device model.
Enter interface view or
Layer 2 aggregate
interface view
interface interface-type interface-number
—
Enable the spanning
tree feature for the port
or group of ports
stp enable
Optional
By default, the spanning tree feature is
enabled on all ports.
NOTE:
• To globally enable or disable the spanning tree feature, use the stp enable command or undo stp
enable command in system view. To enable or disable the spanning tree feature for specific VLANs, use
the stp vlan enable command or undo stp vlan enable command.
• 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.
Performing mCheck
If a port on a device running MSTP or RSTP connects to an STP device, this port will automatically
transition to the STP-compatible mode. However, it cannot automatically transition back to the original
mode when:
• The STP device is shut down or removed.
• The STP device transitions to the MSTP or RSTP mode.
To forcibly transition the port to operate in the original mode, you can perform an mCheck operation.
The following methods for performing mCheck produce the same result.
1. Performing mCheck globally
Follow these steps to perform global mCheck:
To do... Use the command...
Remarks
Enter system view system-view —
Perform mCheck
stp mcheck Required
2. Performing mCheck in interface view