2-1015
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
spanning-tree vlan
spanning-tree vlan
To configure STP on a per-VLAN basis, use the spanning-tree vlan command. To return to the default
value, use the no form of this command.
spanning-tree vlan vlan_id [forward-time seconds | hello-time seconds | max-age seconds |
priority priority | protocol protocol | root {primary | secondary} [diameter net-diameter
[hello-time seconds]]]
no spanning-tree vlan vlan_id [forward-time | hello-time | max-age | priority | root]
Syntax Description
Defaults The default settings are as follows:
• Forward-time—15 seconds
• Hello-time—2 seconds
• Max-age—20 seconds
• Priority—32768 with STP enabled; 128 with MST enabled
• Root—No STP root
Command Modes Global configuration mode
Command History
vlan_id VLAN identification number; valid values are from 1 to 4094.
forward-time seconds (Optional) Sets the STP forward delay time; valid values are from 4 to
30 seconds.
hello-time seconds (Optional) Specifies, in seconds, the time between configuration messages
generated by the root switch; valid values are from 1 to 10 seconds.
max-age seconds (Optional) Sets the maximum time, in seconds, that the information in a
BPDU is valid; valid values are from 6 to 40 seconds.
priority priority (Optional) Sets the STP bridge priority; valid values are from 0 to 65535.
protocol protocol (Optional) Specifies the protocol.
root primary (Optional) Forces this switch to be the root bridge.
root secondary (Optional) Specifies this switch act as the root switch should the primary
root fail.
diameter net-diameter (Optional) Specifies the maximum number of bridges between two end
stations; valid values are from 2 to 7.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.1(12c)EW Support for extended addressing was added.