stp mcheck
Use stp mcheck to perform the mCheck operation on a port.
Syntax
stp mcheck
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Usage guidelines
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.
The port cannot detect the change.
In this case, you can perform an mCheck operation to forcibly transit the port to operation in the original mode.
For example, Device A, Device B, and Device C are connected in sequence. Device A runs STP, Device B does not run any spanning tree protocol, and Device C runs RSTP, MSTP, or PVST. When Device C receives an STP BPDU transparently transmitted by Device B, the receiving port transits to the STP mode. If you configure Device B to run RSTP, MSTP, or PVST with Device C, perform mCheck operations on the ports that connect Device B and Device C.
The device operates in STP, RSTP, PVST, or MSTP mode, depending on the spanning tree mode setting.
The stp mcheck command takes effect only when the device operates in MSTP, RSTP, or PVST mode.
When the command is configured in Layer 2 Ethernet interface view, it takes effect only on that interface.
When the command is configured in Layer 2 aggregate interface view, it takes effect only on the aggregate interface.
When the command is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group.
Examples
# Perform mCheck on Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] stp mcheck
Related commands
stp global mcheck
stp mode