The stp mode command sets the operation mode of spanning tree protocol for the current MSTP process.
The undo stp mode command restores the default operation mode of the current MSTP process.
By default, the operation mode of spanning tree protocol for the current MSTP process is MSTP.
Parameter | Description | Value |
---|---|---|
mstp | Indicates the MSTP operation mode for the ports bound to the current MSTP process. | - |
rstp | Indicates the RSTP operation mode for the ports bound to the current MSTP process. | - |
stp | Indicates the STP operation mode for the ports bound to the current MSTP process. | - |
Usage Scenario
After an MSTP process is created on an MSTP network, all ports bound to the MSTP process operate in MSTP mode by default. These ports may be connected to STP/RSTP devices. As a result, spanning trees cannot be properly calculated, because devices running different spanning tree protocols cannot exchange packets.
To address this problem, the stp mode command can be set an operation mode for a switching device. The operation mode can be MSTP, RSTP, or STP.
By default, if a port on a switching device is bound to a process and is connected to an STP switching device, the switching device automatically sets the operation mode of this port to STP and the operation mode of the other ports to MSTP.
Precautions
After the stp mode mstp command is run in an MSTP process, all ports that are running MSTP and are bound to the MSTP process, excluding the ports directly connected to STP switching devices, operate in MSTP mode and can send MST BPDUs. The ports directly connected to STP switching devices operate in STP mode.
After the stp mode rstp command is run in an MSTP process, all ports that are running MSTP and are bound to the MSTP process, excluding the ports directly connected to STP switching devices, operate in RSTP mode and can send RST BPDUs. The ports directly connected to STP switching devices operate in STP mode.
After the stp mode stp command is run in an MSTP process, all ports bound to the MSTP process operate in STP mode and send configured BPDUs.
A port operating in MSTP mode can communicate with a port operating in RSTP mode.
Running the stp mode rstp command on a device that supports MSTP is not recommended. The function of the stp mode rstp command can be implemented by the stp mode mstp command by default.