20-16
Cisco IE 2000 Switch Software Configuration Guide
OL-25866-01
Chapter 20 Configuring STP
How to Configure STP
Configuring a Secondary Root SwitchConfiguring Port PriorityConfiguring Path Cost
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 spanning-tree vlan vlan-id root secondary
[diameter net-diameter [hello-time
seconds]]
Configures a switch to become the secondary root for the specified
VLAN.
vlan-id—Specifies a single VLAN identified by VLAN ID
number, a range of VLANs separated by a hyphen, or a series of
VLANs separated by a comma. The range is 1 to 4096.
(Optional) diameter net-diameter—Specifies the maximum
number of switches between any two end stations. The range is
2 to 7.
(Optional) hello-time seconds—Specifies the interval in seconds
between the generation of configuration messages by the root
switch. The range is 1 to 10; the default is 2.
Use the same network diameter and hello-time values that you used
when configuring the primary root switch. See the “Configuring the
Root Switch” section on page 20-15.
Step 3 end Returns to privileged EXEC mode.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 interface interface-id Specifies an interface to configure, and enters interface
configuration mode.
Valid interfaces include physical ports and port-channel
logical interfaces (port-channel port-channel-number).
Step 3 spanning-tree port-priority priority Configures the port priority for an interface.
Step 4 spanning-tree vlan vlan-id port-priority priority Configures the port priority for a VLAN.
Step 5 end Returns to privileged EXEC mode.
Command Purpose
Step 1 configure terminal Enters global configuration mode.
Step 2 interface interface-id Specifies an interface to configure, and enters interface
configuration mode. Valid interfaces include physical ports and
port-channel logical interfaces (port-channel
port-channel-number).