stp mode (MSTP process view)

Function

The stp mode command sets an operation mode for a spanning tree protocol in a Multiple Spanning Tree Protocol (MSTP) process.

The undo stp mode command restores the default operation mode of a spanning tree protocol in an MSTP process.

By default, the operation mode of a spanning tree protocol in an MSTP process is MSTP.

Format

stp mode { mstp | rstp | stp }

undo stp mode

Parameters

Parameter Description Value
mstp

Indicates that all the ports bound to an MSTP process work in the MSTP mode.

-

rstp

Indicates that all the ports bound to an MSTP process work in the RSTPmode.

-

stp

Indicates that all the ports bound to an MSTP process work in the STP mode.

-

Views

MSTP process view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mstp write

Usage Guidelines

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, and spanning trees cannot be properly calculated because devices running different spanning tree protocols cannot exchange packets.
  • To address this problem, run the stp mode command to set an operation mode for a device. The operation mode can be MSTP, RSTP, or STP.
  • By default, if a port bound to an MSTP process is connected to an STP device, the operation mode of this port is automatically switched to STP and the operation mode of the other ports remains MSTP.

Configuration Impact

  • After the stp mode mstp command is run in an MSTP process, all MSTP process-binding ports except the port directly connected to an STP port operate in MSTP mode and send MST BPDUs. The port directly connected to an STP port operates in STP mode.
  • After the stp mode rstp command is run in an MSTP process, all MSTP process-binding ports except the port directly connected to an STP port operate in RSTP mode and send RST BPDUs. The port directly connected to an STP port operates 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 STP configuration BPDUs.

Precautions

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.

Example

# Set the operation mode of MSTP process 1 to STP.
<HUAWEI> system-view
[~HUAWEI] stp process 1
[*HUAWEI-mst-process-1] stp mode stp
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >