![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/b/be/bbe1e288-4d15-4ed1-a675-ae1111215856/bbe1e288-4d15-4ed1-a675-ae1111215856-bgd9.png)
15-27
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
78-14099-04
Chapter 15 Configuring STP and IEEE 802.1s MST
Configuring STP
To configure a Catalyst 6500 series switch as the secondary root bridge, perform this task:
This example shows how to configure the Catalyst 6500 series switch as the secondary root bridge for
VLAN 10, with a network diameter of 4:
Router# configure terminal
Router(config)# spanning-tree vlan 10 root secondary diameter 4
Router(config)# end
Router#
Configuring STP Port Priority
If a loop occurs, STP considers port priority when selecting a LAN port to put into the forwarding state.
You can assign higher priority values to LAN ports that you want STP to select first and lower priority
values to LAN ports that you want STP to select last. If all LAN ports have the same priority value, STP
puts the LAN port with the lowest LAN port number in the forwarding state and blocks other LAN ports.
The possible priority range is 0 through 240 (default 128), configurable in increments of 16.
Cisco IOS uses the port priority value when the LAN port is configured as an access port and uses VLAN
port priority values when the LAN port is configured as a trunk port.
To configure the STP port priority of a Layer 2 LAN interface, perform this task:
Command Purpose
Step 1
Router(config)# [no] spanning-tree vlan vlan_ID
root secondary [diameter hops [hello-time
seconds]]
Configures a Catalyst 6500 series switch as the secondary
root bridge. The vlan_ID value can be 1 through 4094,
except reserved VLANs (see Table 9-1 on page 9-2).
Router(config)# no spanning-tree vlan vlan_ID
root
Clears the root bridge configuring.
Step 2
Router(config)# end
Exits configuration mode.
Command Purpose
Step 1
Router(config)# interface {{type
1
slot/port} |
{port-channel port_channel_number}}
Selects an interface to configure.
Step 2
Router(config-if)# spanning-tree port-priority
port_priority
Configures the port priority for the LAN interface. The
port_priority value can be from 1 to 252 in increments
of 4.
Router(config-if)# no spanning-tree port-priority
Reverts to the default port priority value.
Step 3
Router(config-if)# spanning-tree vlan vlan_ID
port-priority port_priority
Configures the VLAN port priority for the LAN interface.
The port_priority value can be from 1 to 252 in
increments of 4. The vlan_ID value can be 1 through
4094, except reserved VLANs (see Table 9-1 on
page 9-2).
Router(config-if)# [no] spanning-tree vlan
vlan_ID port-priority
Reverts to the default VLAN port priority value.
Step 4
Router(config-if)# end
Exits configuration mode.