228 CHAPTER 23: MSTP CONFIGURATION
Enabling the MSTP
Feature
Refer to “Enabling the MSTP Feature” on page 224 in the section about root 
bridge configuration.
Performing mCheck Ports on an MSTP-compliant device have three working modes: STP compatible 
mode, RSTP mode, and MSTP mode.
In a switched network, if a port on the device running MSTP (or RSTP) connects to 
a device running STP, this port will automatically migrate to the STP-compatible 
mode. However, if the device running STP is removed, this will not be able to 
migrate automatically to the MSTP (or RSTP) mode, but will remain working in the 
STP-compatible mode. In this case, you can perform an mCheck operation to force 
the port to migrate to the MSTP (or RSTP) mode.
You can perform mCheck on a port through two approaches, which lead to the 
same result.
Configuration
Prerequisites
MSTP has been correctly configured on the device.
Configuration Procedure Performing mCheckglobally
Follow these steps to perform global mCheck:
Performing mCheck in Ethernet interface view
Follow these steps to perform mCheck in Ethernet interface view:
c
CAUTION: The stp mcheck command is meaningful only when the device works 
in the MSTP (or RSTP) mode, not in the STP-compatible mode.
Configuration Example # Perform mCheck on port GigabitEthernet 1/0/1.
1 Method 1: Perform mCheck globally.
<Sysname> system-view
[Sysname] stp mcheck 
2 Method 2: Perform mCheck in Ethernet interface view.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp mcheck 
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Perform mCheck  stp mcheck Required
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter Ethernet interface view  interface interface-type interface-number - 
Perform mCheck  stp mcheck Required