stp mcheck

Syntax

stp mcheck

View

System view, Ethernet interface view, Layer 2 aggregate interface view

Default level

2: System level

Parameters

None

Description

Use stp mcheck to perform the mCheck operation globally or on a port.

If a port on a device running MSTP, RSTP, or PVST mode connects to an STP device, the port will automatically migrate to the STP mode. It will not be able to migrate automatically back to the MSTP, RSTP, or PVST mode, so it will remain operating in the STP mode until the STP switch is shut down or removed, or migrated to the MSTP, RSTP, or PVST mode. Then, you can perform an mCheck operation to force the port to migrate to the MSTP, RSTP, or PVST mode.

Suppose Device A running STP, Device B with no spanning tree feature enabled, and Device C running MSTP, RSTP, or PVST are connected in order. Device B will transparently transmit the STP BPDUs, and the port on Device C and connecting to Device B will transition 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