stp mode
Use stp mode to configure the spanning tree operating mode.
Use undo stp mode to restore the default.
Syntax
stp mode { mstp | pvst | rstp | stp }
undo stp mode
Default
A spanning tree device operates in MSTP mode.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
mstp: Configures the spanning tree device to operate in MSTP mode.
pvst: Configures the spanning tree device to operate in PVST mode.
rstp: Configures the spanning tree device to operate in RSTP mode.
stp: Configures the spanning tree device to operate in STP mode.
Usage guidelines
The MSTP mode is compatible with the RSTP mode, and the RSTP mode is compatible with the STP mode.
The PVST mode's compatibility with other modes is as follows:
Access port—The PVST mode is compatible with other modes in any VLAN.
Trunk or hybrid port—The PVST mode is compatible with other modes only in the default VLAN.
Examples
# Configure the spanning tree device to operate in STP mode.
<Sysname> system-view [Sysname] stp mode stp
Related commands
stp enable
stp global enable
stp global mcheck
stp mcheck
stp vlan enable.