Designates the context for spanning tree.
STP is not enabled. STP is not required in a loop-free topology.
Global configuration mode
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.
To enable the Spanning Tree Protocol:
device# configure terminal device(config)# protocol spanning-tree stp