3.12.9. spanning-tree mode

Syntax

spanning-tree mode (mstp|rstp|stp)

no spanning-tree force-version

Parameter


mstp Enable the Multiple Spanning Tree (MSTP) operation.

rstp Enable the Rapid Spanning Tree (RSTP) operation.

stp Enable the Spanning Tree (STP) operation.


Default

The default mode is rstp.

Mode

Global Configuration

Usage

To specify the spanning tree operation mode, use the command of spanning- tree mode in the Global Configuration mode. For the default configuration, use the command no spanning-tree force-version in the Global Configuration mode. When the switch is configured as MSTP mode, it can use STP and RSTP for the backward compatibility with switches working in STP and RSTP mode individually. For the RSTP configuration, the switch can also use STP for the switches working in the STP operation.

Example

The following example sets the STP operation to MSTP.

Switch(config)# spanning-tree mode mstp