Configuring Spanning Tree
Configuring Spanning Tree
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 1
Configuring Spanning Tree Protocol
Information About Spanning Tree Protocol
Related Topics
Configuring the Root Switch (CLI), on page 17
Bridge ID, Device Priority, and Extended System ID, on page 5
Spanning-Tree Topology and BPDUs, on page 3
Accelerated Aging to Retain Connectivity, on page 10
The switch that has all of its ports as the designated role or as the backup role is the root switch. The switch
that has at least one of its ports in the designated role is called the designated switch.
Spanning tree forces redundant data paths into a standby (blocked) state. If a network segment in the spanning
tree fails and a redundant path exists, the spanning-tree algorithm recalculates the spanning-tree topology and
activates the standby path. Switches send and receive spanning-tree frames, called bridge protocol data units
(BPDUs), at regular intervals. The switches do not forward these frames but use them to construct a loop-free
path. BPDUs contain information about the sending switch and its ports, including switch and MAC addresses,
switch priority, port priority, and path cost. Spanning tree uses this information to elect the root switch and
root port for the switched network and the root port and designated port for each switched segment.
When two ports on a switch are part of a loop, the spanning-tree and path cost settings control which port is
put in the forwarding state and which is put in the blocking state. The spanning-tree port priority value
represents the location of a port in the network topology and how well it is located to pass traffic. The path
cost value represents the media speed.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
2 OL-30686-01
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Note By default, the switch sends keepalive messages (to ensure the connection is up) only on interfaces that
do not have small form-factor pluggable (SFP) modules. You can change the default for an interface by
entering the [no] keepalive interface configuration command with no keywords.
When the switches in a network are powered up, each functions as the root switch. Each switch sends a
configuration BPDU through all of its ports. The BPDUs communicate and compute the spanning-tree topology.
Each configuration BPDU contains this information:
• The unique bridge ID of the switch that the sending switch identifies as the root switch
• The spanning-tree path cost to the root
• The bridge ID of the sending switch
• Message age
• The identifier of the sending interface
• Values for the hello, forward delay, and max-age protocol timers
When a switch receives a configuration BPDU that contains superior information (lower bridge ID, lower
path cost, and so forth), it stores the information for that port. If this BPDU is received on the root port of the
switch, the switch also forwards it with an updated message to all attached LANs for which it is the designated
switch.
If a switch receives a configuration BPDU that contains inferior information to that currently stored for that
port, it discards the BPDU. If the switch is a designated switch for the LAN from which the inferior BPDU
was received, it sends that LAN a BPDU containing the up-to-date information stored for that port. In this
way, inferior information is discarded, and superior information is propagated on the network.
A BPDU exchange results in these actions:
• One switch in the network is elected as the root switch (the logical center of the spanning-tree topology
in a switched network). See the figure following the bullets.
For each VLAN, the switch with the highest switch priority (the lowest numerical priority value) is
elected as the root switch. If all switches are configured with the default priority (32768), the switch
with the lowest MAC address in the VLAN becomes the root switch. The switch priority value occupies
the most significant bits of the bridge ID, as shown in the following figure.
• A root port is selected for each switch (except the root switch). This port provides the best path (lowest
cost) when the switch forwards packets to the root switch.
When selecting the root port on a switch stack, spanning tree follows this sequence:
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 3
Configuring Spanning Tree Protocol
Spanning Tree Protocol
• Only one outgoing port on the stack root switch is selected as the root port. The remaining switches in
the stack become its designated switches (Switch 2 and Switch 3) as shown in the following figure.
• The shortest distance to the root switch is calculated for each switch based on the path cost.
• A designated switch for each LAN segment is selected. The designated switch incurs the lowest path
cost when forwarding packets from that LAN to the root switch. The port through which the designated
switch is attached to the LAN is called the designated port.
One stack member is elected as the stack root switch. The stack root switch contains the outgoing root port
(Switch 1).
Figure 1: Spanning-Tree Port States in a Switch Stack
All paths that are not needed to reach the root switch from anywhere in the switched network are placed in
the spanning-tree blocking mode.
Related Topics
Configuring the Root Switch (CLI), on page 17
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
4 OL-30686-01
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Spanning tree uses the extended system ID, the switch priority, and the allocated spanning-tree MAC address
to make the bridge ID unique for each VLAN. Because the switch stack appears as a single switch to the rest
of the network, all switches in the stack use the same bridge ID for a given spanning tree. If the stack master
fails, the stack members recalculate their bridge IDs of all running spanning trees based on the new MAC
address of the new stack master.
Support for the extended system ID affects how you manually configure the root switch, the secondary root
switch, and the switch priority of a VLAN. For example, when you change the switch priority value, you
change the probability that the switch will be elected as the root switch. Configuring a higher value decreases
the probability; a lower value increases the probability.
If any root switch for the specified VLAN has a switch priority lower than 24576, the switch sets its own
priority for the specified VLAN to 4096 less than the lowest switch priority. 4096 is the value of the
least-significant bit of a 4-bit switch priority value as shown in the table.
Related Topics
Configuring the Root Switch (CLI), on page 17
Restrictions for STP, on page 1
Configuring the Root Switch (CLI)
Root Switch
Specifying the MST Region Configuration and Enabling MSTP (CLI)
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 5
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Related Topics
Configuring Port Priority (CLI), on page 19
Configuring Path Cost (CLI), on page 20
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
6 OL-30686-01
Configuring Spanning Tree Protocol
Spanning Tree Protocol
When you power up the switch, spanning tree is enabled by default, and every interface in the switch, VLAN,
or network goes through the blocking state and the transitory states of listening and learning. Spanning tree
stabilizes each interface at the forwarding or blocking state.
When the spanning-tree algorithm places a Layer 2 interface in the forwarding state, this process occurs:
1 The interface is in the listening state while spanning tree waits for protocol information to move the
interface to the blocking state.
2 While spanning tree waits for the forward-delay timer to expire, it moves the interface to the learning state
and resets the forward-delay timer.
3 In the learning state, the interface continues to block frame forwarding as the switch learns end-station
location information for the forwarding database.
4 When the forward-delay timer expires, spanning tree moves the interface to the forwarding state, where
both learning and frame forwarding are enabled.
Blocking State
A Layer 2 interface in the blocking state does not participate in frame forwarding. After initialization, a BPDU
is sent to each switch interface. A switch initially functions as the root until it exchanges BPDUs with other
switches. This exchange establishes which switch in the network is the root or root switch. If there is only
one switch in the network, no exchange occurs, the forward-delay timer expires, and the interface moves to
the listening state. An interface always enters the blocking state after switch initialization.
An interface in the blocking state performs these functions:
• Discards frames received on the interface
• Discards frames switched from another interface for forwarding
• Does not learn addresses
• Receives BPDUs
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 7
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Listening State
The listening state is the first state a Layer 2 interface enters after the blocking state. The interface enters this
state when the spanning tree decides that the interface should participate in frame forwarding.
An interface in the listening state performs these functions:
• Discards frames received on the interface
• Discards frames switched from another interface for forwarding
• Does not learn addresses
• Receives BPDUs
Learning State
A Layer 2 interface in the learning state prepares to participate in frame forwarding. The interface enters the
learning state from the listening state.
An interface in the learning state performs these functions:
• Discards frames received on the interface
• Discards frames switched from another interface for forwarding
• Learns addresses
• Receives BPDUs
Forwarding State
A Layer 2 interface in the forwarding state forwards frames. The interface enters the forwarding state from
the learning state.
An interface in the forwarding state performs these functions:
• Receives and forwards frames received on the interface
• Forwards frames switched from another interface
• Learns addresses
• Receives BPDUs
Disabled State
A Layer 2 interface in the disabled state does not participate in frame forwarding or in the spanning tree. An
interface in the disabled state is nonoperational.
A disabled interface performs these functions:
• Discards frames received on the interface
• Discards frames switched from another interface for forwarding
• Does not learn addresses
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
8 OL-30686-01
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Switch A is elected as the root switch because the switch priority of all the switches is set to the default (32768)
and Switch A has the lowest MAC address. However, because of traffic patterns, number of forwarding
interfaces, or link types, Switch A might not be the ideal root switch. By increasing the priority (lowering the
numerical value) of the ideal switch so that it becomes the root switch, you force a spanning-tree recalculation
to form a new topology with the ideal switch as the root.
Figure 3: Spanning-Tree Topology
When the spanning-tree topology is calculated based on default parameters, the path between source and
destination end stations in a switched network might not be ideal. For instance, connecting higher-speed links
to an interface that has a higher number than the root port can cause a root-port change. The goal is to make
the fastest link the root port.
For example, assume that one port on Switch B is a Gigabit Ethernet link and that another port on Switch B
(a 10/100 link) is the root port. Network traffic might be more efficient over the Gigabit Ethernet link. By
changing the spanning-tree port priority on the Gigabit Ethernet port to a higher priority (lower numerical
value) than the root port, the Gigabit Ethernet port becomes the new root port.
Related Topics
Configuring Port Priority (CLI), on page 19
You can create a redundant backbone with spanning tree by connecting two switch interfaces to another device
or to two different devices. Spanning tree automatically disables one interface but enables it if the other one
fails. If one link is high-speed and the other is low-speed, the low-speed link is always disabled. If the speeds
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 9
Configuring Spanning Tree Protocol
Spanning Tree Protocol
are the same, the port priority and port ID are added together, and spanning tree disables the link with the
lowest value.
Figure 4: Spanning Tree and Redundant Connectivity
You can also create redundant links between switches by using EtherChannel groups.
Related Topics
Configuring the Root Switch (CLI), on page 17
Restrictions for STP, on page 1
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
10 OL-30686-01
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Related Topics
Changing the Spanning-Tree Mode (CLI), on page 14
Related Topics
Disabling Spanning Tree (CLI), on page 16
Default Spanning-Tree Configuration, on page 13
Default MSTP Configuration
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 11
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Related Topics
Specifying the MST Region Configuration and Enabling MSTP (CLI)
MSTP Configuration Guidelines
Multiple Spanning-Tree Regions
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
12 OL-30686-01
Configuring Spanning Tree Protocol
Default Spanning-Tree Configuration
VLAN-bridge spanning tree allows the bridge groups to form a spanning tree on top of the individual VLAN
spanning trees to prevent loops from forming if there are multiple connections among VLANs. It also prevents
the individual spanning trees from the VLANs being bridged from collapsing into a single spanning tree.
To support VLAN-bridge spanning tree, some of the spanning-tree timers are increased. To use the fallback
bridging feature, you must have the IP services feature set enabled on your switch.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 13
Configuring Spanning Tree Protocol
How to Configure Spanning-Tree Features
Related Topics
Disabling Spanning Tree (CLI), on page 16
Supported Spanning-Tree Instances, on page 11
SUMMARY STEPS
1. configure terminal
2. spanning-tree mode {pvst | mst | rapid-pvst}
3. interface interface-id
4. spanning-tree link-type point-to-point
5. end
6. clear spanning-tree detected-protocols
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
14 OL-30686-01
Configuring Spanning Tree Protocol
Changing the Spanning-Tree Mode (CLI)
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree mode {pvst | mst | Configures a spanning-tree mode. All stack members run the same version
rapid-pvst} of spanning tree.
• Select pvst to enable PVST+ (the default setting).
Example:
• Select mst to enable MSTP (and RSTP).
Switch(config)# spanning-tree mode
pvst • Select rapid-pvst to enable rapid PVST+.
Step 3 interface interface-id (Recommended for Rapid PVST+ mode only) Specifies an interface to
configure, and enters interface configuration mode. Valid interfaces include
Example: physical ports, VLANs, and port channels. The VLAN ID range is 1 to
4094. The port-channel range is 1 to 48.
Switch(config)# interface
GigabitEthernet1/0/1
Step 4 spanning-tree link-type point-to-point (Recommended for Rapid PVST+ mode only) Specifies that the link type
for this port is point-to-point.
Example: If you connect this port (local port) to a remote port through a
Switch(config-if)# spanning-tree point-to-point link and the local port becomes a designated port, the switch
link-type point-to-point negotiates with the remote port and rapidly changes the local port to the
forwarding state.
Example:
Switch(config-if)# end
Step 6 clear spanning-tree detected-protocols (Recommended for Rapid PVST+ mode only) If any port on the switch
is connected to a port on a legacy IEEE 802.1D switch, this command
Example: restarts the protocol migration process on the entire switch.
Switch# clear spanning-tree This step is optional if the designated switch detects that this switch is
detected-protocols running rapid PVST+.
Related Topics
Spanning-Tree Modes and Protocols, on page 11
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 15
Configuring Spanning Tree Protocol
Disabling Spanning Tree (CLI)
Caution When spanning tree is disabled and loops are present in the topology, excessive traffic and indefinite
packet duplication can drastically reduce network performance.
SUMMARY STEPS
1. configure terminal
2. no spanning-tree vlan vlan-id
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Example:
Switch(config)# no spanning-tree vlan 300
Example:
Switch(config)# end
Related Topics
Supported Spanning-Tree Instances, on page 11
Default Spanning-Tree Configuration, on page 13
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
16 OL-30686-01
Configuring Spanning Tree Protocol
Configuring the Root Switch (CLI)
SUMMARY STEPS
1. configure terminal
2. spanning-tree vlan vlan-id root primary [diameter net-diameter ]
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree vlan vlan-id root primary Configures a switch to become the root for the specified VLAN.
[diameter net-diameter ]
• For vlan-id, you can specify a single VLAN identified by VLAN
ID number, a range of VLANs separated by a hyphen, or a series
Example: of VLANs separated by a comma. The range is 1 to 4094.
Switch(config)# spanning-tree vlan 20-24
root primary diameter 4 • (Optional) For diameter net-diameter, specify the maximum
number of switches between any two end stations. The range
is 2 to 7.
Example:
Switch(config)# end
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 17
Configuring Spanning Tree Protocol
Configuring a Secondary Root Device (CLI)
What to Do Next
After configuring the switch as the root switch, we recommend that you avoid manually configuring the hello
time, forward-delay time, and maximum-age time through the spanning-tree vlan vlan-id hello-time,
spanning-tree vlan vlan-id forward-time, and the spanning-tree vlan vlan-id max-age global configuration
commands.
Related Topics
Bridge ID, Device Priority, and Extended System ID, on page 5
Spanning-Tree Topology and BPDUs, on page 3
Accelerated Aging to Retain Connectivity, on page 10
Restrictions for STP, on page 1
SUMMARY STEPS
1. configure terminal
2. spanning-tree vlan vlan-id root secondary [diameter net-diameter]
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree vlan vlan-id root secondary Configures a switch to become the secondary root for the specified
[diameter net-diameter] VLAN.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
18 OL-30686-01
Configuring Spanning Tree Protocol
Configuring Port Priority (CLI)
Use the same network diameter value that you used when configuring
the primary root switch.
Example:
Switch(config)# end
Note If your switch is a member of a switch stack, you must use the spanning-tree [vlan vlan-id] cost cost
interface configuration command instead of the spanning-tree [vlan vlan-id] port-priority priority
interface configuration command to select an interface to put in the forwarding state. Assign lower cost
values to interfaces that you want selected first and higher cost values that you want selected last.
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. spanning-tree port-priority priority
4. spanning-tree vlan vlan-id port-priority priority
5. end
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 19
Configuring Spanning Tree Protocol
Configuring Path Cost (CLI)
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 interface interface-id Specifies an interface to configure, and enters interface configuration mode.
Valid interfaces include physical ports and port-channel logical interfaces
Example: (port-channel port-channel-number).
Switch(config)# interface
gigabitethernet1/0/2
Step 3 spanning-tree port-priority priority Configures the port priority for an interface.
For priority, the range is 0 to 240, in increments of 16; the default is 128.
Example: Valid values are 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192,
Switch(config-if)# spanning-tree 208, 224, and 240. All other values are rejected. The lower the number,
port-priority 0 the higher the priority.
Step 4 spanning-tree vlan vlan-id port-priority Configures the port priority for a VLAN.
priority
• For vlan-id, you can specify a single VLAN identified by VLAN ID
number, a range of VLANs separated by a hyphen, or a series of
Example: VLANs separated by a comma. The range is 1 to 4094.
Switch(config-if)# spanning-tree vlan
20-25 port-priority 0 • For priority, the range is 0 to 240, in increments of 16; the default is
128. Valid values are 0, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160,
176, 192, 208, 224, and 240. All other values are rejected. The lower
the number, the higher the priority.
Example:
Switch(config-if)# end
Related Topics
Port Priority Versus Path Cost, on page 6
How a Switch or Port Becomes the Root Switch or Root Port, on page 9
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
20 OL-30686-01
Configuring Spanning Tree Protocol
Configuring Path Cost (CLI)
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. spanning-tree cost cost
4. spanning-tree vlan vlan-id cost cost
5. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 interface interface-id Specifies an interface to configure, and enters interface configuration mode.
Valid interfaces include physical ports and port-channel logical interfaces
Example: (port-channel port-channel-number).
Switch(config)# interface
gigabitethernet1/0/1
Step 4 spanning-tree vlan vlan-id cost cost Configures the cost for a VLAN.
If a loop occurs, spanning tree uses the path cost when selecting an interface
Example: to place into the forwarding state. A lower path cost represents higher-speed
Switch(config-if)# spanning-tree transmission.
vlan 10,12-15,20 cost 300
• For vlan-id, you can specify a single VLAN identified by VLAN ID
number, a range of VLANs separated by a hyphen, or a series of
VLANs separated by a comma. The range is 1 to 4094.
• For cost, the range is 1 to 200000000; the default value is derived from
the media speed of the interface.
Example:
Switch(config-if)# end
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 21
Configuring Spanning Tree Protocol
Configuring the Device Priority of a VLAN (CLI)
The show spanning-tree interface interface-id privileged EXEC command displays information only for
ports that are in a link-up operative state. Otherwise, you can use the show running-config privileged EXEC
command to confirm the configuration.
Related Topics
Port Priority Versus Path Cost, on page 6
Note Exercise care when using this command. For most situations, we recommend that you use the spanning-tree
vlan vlan-id root primary and the spanning-tree vlan vlan-id root secondary global configuration
commands to modify the switch priority.
This procedure is optional. Beginning in privileged EXEC mode, follow these steps to configure the switch
priority of a VLAN:
SUMMARY STEPS
1. configure terminal
2. spanning-tree vlan vlan-id priority priority
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree vlan vlan-id priority Configures the switch priority of a VLAN.
priority
• For vlan-id, you can specify a single VLAN identified by VLAN ID
number, a range of VLANs separated by a hyphen, or a series of VLANs
Example: separated by a comma. The range is 1 to 4094.
Switch(config)# spanning-tree vlan
20 priority 8192 • For priority, the range is 0 to 61440 in increments of 4096; the default
is 32768. The lower the number, the more likely the switch will be
chosen as the root switch.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
22 OL-30686-01
Configuring Spanning Tree Protocol
Configuring the Hello Time (CLI)
Example:
Switch(config-if)# end
SUMMARY STEPS
DETAILED STEPS
Example:
Switch(config-if)# end
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 23
Configuring Spanning Tree Protocol
Configuring the Forwarding-Delay Time for a VLAN (CLI)
SUMMARY STEPS
1. configure terminal
2. spanning-tree vlan vlan-id forward-time seconds
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree vlan vlan-id forward-time Configures the forward time of a VLAN. The forwarding delay is the
seconds number of seconds an interface waits before changing from its
spanning-tree learning and listening states to the forwarding state.
Example: • For vlan-id, you can specify a single VLAN identified by VLAN
Switch(config)# spanning-tree vlan ID number, a range of VLANs separated by a hyphen, or a series
20,25 forward-time 18 of VLANs separated by a comma. The range is 1 to 4094.
• For seconds, the range is 4 to 30; the default is 15.
Example:
Switch(config)# end
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
24 OL-30686-01
Configuring Spanning Tree Protocol
Configuring the Transmit Hold-Count (CLI)
SUMMARY STEPS
1. configure terminal
2. spanning-tree vlan vlan-id max-age seconds
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree vlan vlan-id max-age Configures the maximum-aging time of a VLAN. The maximum-aging
seconds time is the number of seconds a switch waits without receiving
spanning-tree configuration messages before attempting a reconfiguration.
Example: • For vlan-id, you can specify a single VLAN identified by VLAN
Switch(config)# spanning-tree vlan 20 ID number, a range of VLANs separated by a hyphen, or a series
max-age 30 of VLANs separated by a comma. The range is 1 to 4094.
• For seconds, the range is 6 to 40; the default is 20.
Example:
Switch(config-if)# end
Note Changing this parameter to a higher value can have a significant impact on CPU utilization, especially in
Rapid PVST+ mode. Lowering this value can slow down convergence in certain scenarios. We recommend
that you maintain the default setting.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 25
Configuring Spanning Tree Protocol
Monitoring Spanning-Tree Status
SUMMARY STEPS
1. configure terminal
2. spanning-tree transmit hold-count value
3. end
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 spanning-tree transmit hold-count value Configures the number of BPDUs that can be sent before
pausing for 1 second.
Example: For value, the range is 1 to 20; the default is 6.
Switch(config)# spanning-tree transmit
hold-count 6
Example:
Switch(config)# end
show spanning-tree vlan vlan-id Displays spanning-tree information for the specified VLAN.
show spanning-tree interface Displays spanning-tree information for the specified interface.
interface-id
show spanning-tree interface Displays spanning-tree portfast information for the specified
interface-id portfast interface.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
26 OL-30686-01
Configuring Spanning Tree Protocol
Additional References for Spanning-Tree Protocol
show spanning-tree summary [totals] Displays a summary of interface states or displays the total lines
of the STP state section.
To clear spanning-tree counters, use the clear spanning-tree [interface interface-id] privileged EXEC
command.
Description Link
To help you research and resolve system error https://www.cisco.com/cgi-bin/Support/Errordecoder/
messages in this release, use the Error Message index.cgi
Decoder tool.
Standard/RFC Title
None —
MIBs
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
OL-30686-01 27
Configuring Spanning Tree Protocol
Feature Information for STP
Technical Assistance
Description Link
The Cisco Support website provides extensive online http://www.cisco.com/support
resources, including documentation and tools for
troubleshooting and resolving technical issues with
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.
Consolidated Platform Configuration Guide, Cisco IOS XE 3.3SE (Catalyst 3850 Switches)
28 OL-30686-01