138
Examples
# Enable the spanning tree feature globally.
<Sysname> system-view
[Sysname] stp global enable
Related commands
stp enable
stp mode
stp global mcheck
Use stp global mcheck to perform mCheck globally.
Syntax
stp global mcheck
Views
System 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 operate in the
original mode.
The device operates in STP, RSTP, PVST, or MSTP mode, depending on the spanning tree mode
setting.
The
stp global mcheck command takes effect only when the device operates in MSTP, RSTP,
or PVST mode.
Examples
# Perform mCheck globally.
<Sysname> system-view
[Sysname] stp global mcheck
Related commands
stp mcheck
stp mode
stp ignore-pvid-inconsistency
Use stp ignore-pvid-inconsistency to disable inconsistent PVID protection.
Use
undo stp ignore-pvid-inconsistency to enable inconsistent PVID protection.