The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them.
Note: It is not recommended to turn STP off. There is no global command to disable spanning tree globally. But, you can disable all configured VLAN by “no spanning-tree vlan 1(that is on an individual vlan basis) or (have this done in range as shown below. vlan 1 – vlan50)
switch7(config)#no spanning-tree vlan 11-15
Now run the commands below to ensure spanning-tree is disabled for the vlans.
switch7#sh span No spanning tree instance exists. or use the full command as shown below switch7#sh spanning-tree No spanning tree instance exists.
Note: Only turn off spanning-Tree for the configured vlans on the switch.