13-17
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter13 Understanding and Conf iguring STP
Configuring STP
To configure the spanning tree bridge priority of a VLAN, perform this task:
This example shows how to configure the bridge priority of VLAN 200 to 33,792:
Switch# configure terminal
Switch(config)# spanning-tree vlan 200 priority 33792
Switch(config)# end
Switch#
This example shows how to verify the configuration:
Switch# show spanning-tree vlan 200 bridge brief
Hello Max Fwd
Vlan Bridge ID Time Age Delay Protocol
---------------- -------------------- ---- ---- ----- --------
VLAN200 33792 0050.3e8d.64c8 2 20 15 ieee
Switch#
Configuring the Hello Time
Note Exercise care when configuring the hello time. In most cases, we recommend that you use the
spanning-tree vlan vlan_ID root primary a nd the spanning-tree vlan vlan_ID root secondary
commands to modify the hello time.
To configure the spanning tree hello time of a VLAN, perform this task:
This example shows how to configure the hello time for VLAN 200 to 7 second s:
Switch# configure terminal
Switch(config)# spanning-tree vlan 200 hello-time 7
Switch(config)# end
Switch#
Command Purpose
Step1 Switch(config)# [no] spanning-tree vlan
vlan_ID
priority
bridge_priority
Configures the bridge priority of a VLAN. The
bridge_priority value can be from 1 to 65,535.
You can use the no keyword to restore the defaults.
Step2 Switch(config)# end Exits configuration mode.
Step3 Switch# show spanning-tree vlan
vlan_ID
bridge
[brief]
Verifies the configuration.
Command Purpose
Step1 Switch(config)# [no] spanning-tree vlan
vlan_ID
hello-time
hello_time
Configures the hello time of a VLAN. The hello_time
value can be from 1 to 10 seconds.
You can use the no keyword to restore the defaults.
Step2 Switch(config)# end Exits configuration mode.
Step3 Switch# show spanning-tree vlan
vlan_ID
bridge
[brief]
Verifies the configuration.