Chapter 2 Cisco IOS Commands
spanning-tree vlan
Use the spanning-tree vlan global configuration command to configure spanning tree on a per-VLAN
basis. Use the no form of this command to return to the default setting.
Syntax Description
vlan-id
forward-time seconds
hello-time seconds
max-age seconds
priority priority
root primary
root secondary
diameter net-diameter
Defaults
Spanning tree is enabled on all VLANs.
The forward-delay time is 15 seconds.
The hello time is 2 seconds.
The max-age is 20 seconds.
The primary root switch priority is 24576.
The secondary root switch priority is 28672.
Command Modes
Global configuration
78-11381-05
spanning-tree vlan vlan-id {forward-time seconds | hello-time seconds | max-age seconds |
priority priority | {root {primary | secondary} [diameter net-diameter
[hello-time seconds]]}}
no spanning-tree vlan vlan-id [forward-time | hello-time | max-age | priority | root]
VLAN ID associated with a spanning-tree instance. The range is 1 to 4094
when the enhanced software image (EI) is installed and 1 to 1005 when the
standard software image (SI) is installed. Do not enter leading zeros.
Set the forward-delay time for the specified spanning-tree instance. The
forwarding time determines how long each of the listening and learning
states last before the interface begins forwarding. The range is 4 to 30
seconds.
Set the interval between hello bridge protocol data units (BPDUs) sent by
the root switch configuration messages. The range is 1 to 10 seconds.
Set the interval between messages the spanning tree receives from the root
switch. If a switch does not receive a BPDU message from the root switch
within this interval, it recomputes the spanning-tree topology. The range is
6 to 40 seconds.
Set the switch priority for the specified spanning-tree instance. This setting
affects the likelihood that the switch is selected as the root switch. A lower
value increases the probability that the switch is selected as the root switch.
The range is 0 to 61440 in increments of 4096. Valid priority values are
4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960,
45056, 49152, 53248, 57344, and 61440. All other values are rejected.
Force this switch to be the root switch.
Set this switch to be the root switch should the primary root switch fail.
Set the maximum number of switches between any two end stations. The
range is 2 to 7.
Catalyst 2950 Desktop Switch Command Reference
spanning-tree vlan
2-283