protocol spanning-tree

Designates the context for spanning tree.

Syntax

protocol spanning-tree { mstp | rstp | stp | pvst | rpvst }
no protocol spanning-tree

Command Default

STP is not enabled. STP is not required in a loop-free topology.

Parameters

mstp
Specifies the Multiple Spanning Tree Protocol (MSTP).
rstp
Specifies the Rapid Spanning Tree (RSTP).
stp
Specifies the Spanning Tree Protocol (STP).
pvst
Specifies Per-VLAN Spanning Tree Protocol Plus (PVST+).
rpvst
Specifies Rapid Per-VLAN Spanning Tree Protocol Plus (R-PVST+).

Modes

Global configuration mode

Usage Guidelines

Consider enabling STP to detect or avoid loops. You must turn off one form of STP before turning on another form.

Packet drops or packet flooding may occur if you do not enable xSTP on all devices connected on both sides of parallel links.

Enter no protocol spanning-tree to delete the context and all the configurations defined within the context or protocol for the interface.

Examples

To enable the Spanning Tree Protocol:

device# configure terminal
device(config)# protocol spanning-tree stp