port on Device C and connecting to Device B will transit to the STP mode. After you enable the spanning
tree feature on Device B, to run MSTP, RSTP, or PVST between Device B and Device C, you must perform
an mCheck operation on the ports interconnecting Device B and Device C, in addition to configuring the
spanning tree to operate in MSTP, RSTP, or PVST mode on Device B.
The device operates in STP, RSTP, MSTP, or PVST mode depending on the spanning tree mode setting.
The stp mcheck command is effective only when the device operates in MSTP, RSTP, or PVST mode.
Configured in system view, the setting takes effect globally.
Configured in Ethernet interface view, the setting takes only effect on the interface.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on a member port in an aggregation group, the setting takes effect only after the port leaves
the aggregation group.
Related commands: stp mode.
Examples
# Perform mCheck on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] stp mcheck
stp mode
Syntax
stp mode { stp | rstp | mstp | pvst }
undo stp mode
View
System view
Default level
2: System level
Parameters
stp: Configures the spanning tree device to operate in STP mode.
rstp: Configures the spanning tree device to operate in RSTP mode.
mstp: Configures the spanning tree device to operate in MSTP mode.
pvst: Configures the spanning tree device to operate in PVST mode.
Description
Use stp mode to configure the spanning tree operating mode.
Use undo stp mode to restore the default.
By default, a spanning tree device operates in MSTP mode.
Related commands: stp mcheck and stp enable.
Examples
# Configure the spanning tree device to operate in STP mode.
135