7-2. STP Configuration

1.
(Optional) Enable or disable STP:
COS
											set spantree [enable | disable] [vlan]
IOS
(global) [no] spanning-tree [vlan
											vlan]
STP is enabled by default on VLAN 1 and any newly created VLANs. Without a specified VLAN, STP is enabled or disabled on all VLANs. Be aware that if STP is disabled, bridging loops are not detected and prevented. You should always enable STP.
2.
(Optional) Set the STP mode for the switch (Catalyst 4000 and 6000 only):
COS
											set spantree mode {mistp | pvst+ | mistp-pvst+ | mst}
IOSN/A
By default, all Catalyst switches run PVST+ STP for one instance of STP on each VLAN. To configure other STP modes, use the keywords mistp (MISTP), mistp-pvst+ (MISTP-PVST+ interoperability), or mst (MST).
3.
(MST ...

Get Cisco® Field Manual: Catalyst® Switch Configuration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.