13-8
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter13 Understanding and Configuring STP
Configuring STP
To enable a spanning tree on a per-VLAN basis, perform this task:
This example shows how to enable a spanning tree on VLAN 200:
Switch# configure terminal
Switch(config)# spanning-tree vlan 200
Switch(config)# end
Switch#
Note Because spanning tree is enabled by default, issuing a show running command to view the resulting
configuration will not display the command you entered to enable spanning tree.
This example shows how to verify that spanning tree is enabled on V LAN 200:
Switch# show spanning-tree vlan 200
VLAN200 is executing the ieee compatible Spanning Tree protocol
Bridge Identifier has priority 32768, address 0050.3e8d.6401
Configured hello time 2, max age 20, forward delay 15
Current root has priority 16384, address 0060.704c.7000
Root port is 264 (FastEthernet5/8), cost of root path is 38
Topology change flag not set, detected flag not set
Number of topology changes 0 last change occurred 01:53:48 ago
Times: hold 1, topology change 24, notification 2
hello 2, max age 14, forward delay 10
Timers: hello 0, topology change 0, notification 0
Port 264 (FastEthernet5/8) of VLAN200 is forwarding
Port path cost 19, Port priority 128, Port Identifier 129.9.
Designated root has priority 16384, address 0060.704c.7000
Designated bridge has priority 32768, address 00e0.4fac.b000
Designated port id is 128.2, designated path cost 19
Timers: message age 3, forward delay 0, hold 0
Number of transitions to forwarding state: 1
BPDU: sent 3, received 3417
Switch#
Enabling the Extended System ID
Note The extended system ID is enabled permanently on chassis that support 64 MAC addresses.
You can use the spanning-tree extend system-id command to enable the extended system ID on chassis
that support 1024 MAC addresses. See the “Understanding the Bridge ID” section on page 13-2.
Command Purpose
Step1 Switch# configure terminal Enters global configuration mode.
Step2 Switch(config)# spanning-tree vlan
vlan_ID
Enables spanning tree for VLAN vlan_id. The vlan_ID value
can range from 1 to 4094.
Step3 Switch(config)# end Exits configuration mode.
Step4 Switch# show spanning-tree vlan
vlan_ID
Verifies that spanning tree is enabled.