Enabling or disabling RPVST+ spanning tree

With the spanning tree mode set to RPVST+, you can do either of the following:

  • Enable or disable RPVST+ on all VLANs on the switch.

  • Enable or disable RPVST+ on specified VLANs that are RPVST+-enabled on the switch.

Syntax:


no spanning-tree [enable | disable]

To globally enable RPVST+ on all VLANs on the switch, use either of the following:


spanning-tree [enable]

no spanning-tree disable

To globally disable RPVST+ on all VLANs on the switch, use any of the following:


no spanning-tree

spanning-tree disable

no spanning-tree enable
NOTE:

This status will always be shown in show run to let you know whether the spanning-tree is enabled. Having spanning tree present but not enabled will lead to a change in the existing factory default settings.

NOTE:

This command overrides the per-VLAN enable/disable command (below).

Syntax:


spanning-tree vlan vid list [enable | disable]

To enable RPVST+ on one or more VLANs on the switch, use either of the following:


spanning-tree vlan vid list enable

no spanning-tree vlan vid list disable

To disable RPVST+ on one or more VLANs on the switch, use any of the following:


no spanning-tree vlan vid list

spanning-tree vlan vid listdisable

no spanning-tree vlan vid list enable