To do...
Enable output of port state transition
information
Enabling the MSTP Feature
You must enable MSTP for the device before any other MSTP-related configurations can take effect.
Make this configuration on the root bridge and on the leaf nodes separately.
Follow these steps to enable the MSTP feature:
To do...
Enter system view
Enable the MSTP feature globally
Enter
interface view
or port group
view
Enable the MSTP feature for the
ports
MSTP takes effect when it is enabled both globally and on the port.
To control MSTP flexibly, you can use the undo stp enable command to disable the MSTP
feature for certain ports so that they will not take part in spanning tree calculation and thus to save
the CPU resources of the device.
Performing mCheck
MSTP has three working modes: STP compatible mode, RSTP mode, and MSTP mode.
If a port on a device running MSTP (or RSTP) connects to a device running STP, this port will
automatically migrate to the STP-compatible mode. However, it will not be able to migrate
automatically back to the MSTP (or RSTP) mode, but will remain working in the STP-compatible mode
under the following circumstances:
The device running STP is shut down or removed.
The device running STP migrates to the MSTP (or RSTP) mode.
stp port-log { all |
instance instance-id }
system-view
stp enable
Enter Ethernet
interface view, or
interface interface-type
Layer 2 aggregate
interface-number
interface view
Enter port group
port-group manual
view
port-group-name
stp enable
Use the command...
Use the command...
4-29
Remarks
Required
This function is enabled by
default.
Remarks
—
Required
MSTP is globally enabled by
default.
Required
Use either command.
Optional
By default, MSTP is enabled
on all ports.