Follow these steps to o shut down STP either globally, on a specific interface, or a specific VLAN.
device# configure terminal
Shut down STP globally and return to privileged EXEC mode.
device(config)# protocol spanning-tree stp device(config-stp)# shutdown device(config-stp)# end
Shut down STP on a specific interface and return to privileged EXEC mode.
device(config)# interface ethernet 0/2 device(conf-if-eth-0/2)# spanning-tree shutdown device(conf-if-eth-0/2)# end
Shut down STP on a specific VLAN and return to privileged EXEC mode.
device(config)# vlan 10 device(config-vlan-10)# spanning-tree shutdown device(config-vlan-10)# end
device# show spanning-tree device#
device# copy running-config startup-config
device# configure terminal device(config)# vlan 10 device(config-vlan-10)# spanning-tree shutdown device(config-stp)# end device# show spanning-tree device# copy running-config startup-config
Note
Shutting down STP on a VLAN is used in this example.