327
Configuring STP
How to Configure STP
How to Configure STP
Changing the Spanning-Tree Mode
Command Purpose
1. configure terminal Enters global configuration mode.
2. spanning-tree mode {pvst | mst |
rapid-pvst}
Configures a spanning-tree mode.
pvst—Enables PVST+ (the default setting).
mst—Enables MSTP (and RSTP). For more configuration steps, see
Configuring MSTP, page 333
rapid-pvst—Enables rapid PVST+.
3. interface interface-id (Recommended for rapid-PVST+ mode only) Specifies an interface to
configure, and enters interface configuration mode. Valid interfaces
include physical ports, VLANs, and port channels.
4. spanning-tree link-type point-to-point (Recommended for rapid-PVST+ mode only) Specifies that the link type
for this port is point-to-point.
If you connect this port (local port) to a remote port through a
point-to-point link and the local port becomes a designated port, the
switch negotiates with the remote port and rapidly changes the local
port to the forwarding state.
5. end Returns to privileged EXEC mode.
6. clear spanning-tree detected-protocols (Recommended for rapid-PVST+ mode only) Restarts the protocol
migration process on the entire switch if any port on the switch is
connected to a port on a legacy IEEE 802.1D switch,
This step is optional if the designated switch detects that this switch is
running rapid PVST+.