Configuration STP
Configuration STP
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
1
Configuring Spanning Tree Protocol
Information About Spanning Tree Protocol
• You cannot have a switch stack containing a mix of Catalyst 3850 and Catalyst 3650 switches.
Related Topics
Configuring the Root Device (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 device that has all of its ports as the designated role or as the backup role is the root device. The device
that has at least one of its ports in the designated role is called the designated device.
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. Devices send and receive spanning-tree frames, called bridge protocol data units
(BPDUs), at regular intervals. The devices do not forward these frames but use them to construct a loop-free
path. BPDUs contain information about the sending device and its ports, including device and MAC addresses,
device priority, port priority, and path cost. Spanning tree uses this information to elect the root device and
root port for the switched network and the root port and designated port for each switched segment.
When two ports on a device 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.
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
2
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Note By default, the device 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 devices in a network are powered up, each functions as the root device. Each device 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 device that the sending device identifies as the root device
• The spanning-tree path cost to the root
• The bridge ID of the sending device
• Message age
• The identifier of the sending interface
• Values for the hello, forward delay, and max-age protocol timers
When a device 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
device, the device also forwards it with an updated message to all attached LANs for which it is the designated
device.
If a device receives a configuration BPDU that contains inferior information to that currently stored for that
port, it discards the BPDU. If the device is a designated device 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 device in the network is elected as the root device (the logical center of the spanning-tree topology
in a switched network). See the figure following the bullets.
For each VLAN, the device with the highest device priority (the lowest numerical priority value) is
elected as the root device. If all devices are configured with the default priority (32768), the device with
the lowest MAC address in the VLAN becomes the root device. The device priority value occupies the
most significant bits of the bridge ID, as shown in the following figure.
• A root port is selected for each device (except the root device). This port provides the best path (lowest
cost) when the device forwards packets to the root device.
When selecting the root port on a device stack, spanning tree follows this sequence:
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
3
Configuring Spanning Tree Protocol
Spanning Tree Protocol
• Only one outgoing port on the stack root device is selected as the root port. The remaining devices in
the stack become its designated devices (Device 2 and Device 3) as shown in the following figure.
• The shortest distance to the root device is calculated for each device based on the path cost.
• A designated device for each LAN segment is selected. The designated device incurs the lowest path
cost when forwarding packets from that LAN to the root device. The port through which the designated
device is attached to the LAN is called the designated port.
One stack member is elected as the stack root device. The stack root device contains the outgoing root port
(Device 1).
Figure 1: Spanning-Tree Port States in a Device Stack
All paths that are not needed to reach the root device from anywhere in the switched network are placed in
the spanning-tree blocking mode.
Related Topics
Configuring the Root Device (CLI), on page 17
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
4
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Spanning tree uses the extended system ID, the device priority, and the allocated spanning-tree MAC address
to make the bridge ID unique for each VLAN. Because the device stack appears as a single device to the rest
of the network, all devices 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 device, the secondary root
device, and the device priority of a VLAN. For example, when you change the device priority value, you
change the probability that the device will be elected as the root device. Configuring a higher value decreases
the probability; a lower value increases the probability.
If any root device for the specified VLAN has a device priority lower than 24576, the device sets its own
priority for the specified VLAN to 4096 less than the lowest device priority. 4096 is the value of the
least-significant bit of a 4-bit device priority value as shown in the table.
Related Topics
Configuring the Root Device (CLI), on page 17
Restrictions for STP, on page 1
Configuring the Root Device (CLI)
Root Switch
Specifying the MST Region Configuration and Enabling MSTP (CLI)
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
5
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Related Topics
Configuring Port Priority (CLI), on page 20
Configuring Path Cost (CLI), on page 21
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
6
Configuring Spanning Tree Protocol
Spanning Tree Protocol
When you power up the device, spanning tree is enabled by default, and every interface in the device, 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 device 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 device interface. A device initially functions as the root until it exchanges BPDUs with other
devices. This exchange establishes which device in the network is the root or root device. If there is only one
device 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 device 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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
8
Configuring Spanning Tree Protocol
Spanning Tree Protocol
Device A is elected as the root device because the device priority of all the devices is set to the default (32768)
and Device A has the lowest MAC address. However, because of traffic patterns, number of forwarding
interfaces, or link types, Device A might not be the ideal root device. By increasing the priority (lowering the
numerical value) of the ideal device so that it becomes the root device, you force a spanning-tree recalculation
to form a new topology with the ideal device 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 Device B is a Gigabit Ethernet link and that another port on Device 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 20
You can create a redundant backbone with spanning tree by connecting two device 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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
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
highest value.
Figure 4: Spanning Tree and Redundant Connectivity
You can also create redundant links between devices by using EtherChannel groups.
Related Topics
Configuring the Root Device (CLI), on page 17
Restrictions for STP, on page 1
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
10
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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
12
Configuring Spanning Tree Protocol
Default Spanning-Tree Configuration
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
13
Configuring Spanning Tree Protocol
How to Configure Spanning-Tree Features
Note Beginning in Cisco IOS Release 15.2(4)E, the default STP mode is Rapid PVST+.
Related Topics
Disabling Spanning Tree (CLI), on page 16
Supported Spanning-Tree Instances, on page 11
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
14
Configuring Spanning Tree Protocol
Changing the Spanning-Tree Mode (CLI)
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree mode {pvst | mst | rapid-pvst}
4. interface interface-id
5. spanning-tree link-type point-to-point
6. end
7. clear spanning-tree detected-protocols
DETAILED STEPS
Example:
Device> enable
Example:
Device# configure terminal
Step 4 interface interface-id Specifies an interface to configure, and enters interface configuration
mode. Valid interfaces include physical ports, VLANs, and port
Example: channels. The VLAN ID range is 1 to 4094. The port-channel range is
1 to 48.
Device(config)# interface
GigabitEthernet1/0/1
Step 5 spanning-tree link-type point-to-point Specifies that the link type for this port is point-to-point.
If you connect this port (local port) to a remote port through a
Example: point-to-point link and the local port becomes a designated port, the
Device(config-if)# spanning-tree device negotiates with the remote port and rapidly changes the local
link-type point-to-point port to the forwarding state.
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
15
Configuring Spanning Tree Protocol
Disabling Spanning Tree (CLI)
Example:
Device(config-if)# end
Step 7 clear spanning-tree detected-protocols If any port on the device is connected to a port on a legacy IEEE 802.1D
device, this command restarts the protocol migration process on the
Example: entire device.
Device# clear spanning-tree This step is optional if the designated device detects that this device is
detected-protocols running rapid PVST+.
Related Topics
Spanning-Tree Modes and Protocols, on page 11
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. enable
2. configure terminal
3. no spanning-tree vlan vlan-id
4. end
DETAILED STEPS
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
16
Configuring Spanning Tree Protocol
Configuring the Root Device (CLI)
Example:
Device# configure terminal
Example:
Device(config)# no spanning-tree vlan 300
Example:
Device(config)# end
Related Topics
Supported Spanning-Tree Instances, on page 11
Default Spanning-Tree Configuration, on page 13
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree vlan vlan-id root primary [diameter net-diameter
4. end
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
17
Configuring Spanning Tree Protocol
Configuring the Root Device (CLI)
DETAILED STEPS
Example:
Device> enable
Example:
Device# configure terminal
Step 3 spanning-tree vlan vlan-id root primary Configures a device 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
Example: series of VLANs separated by a comma. The range is 1 to 4094.
Device(config)# spanning-tree vlan 20-24
root primary diameter 4 • (Optional) For diameter net-diameter, specify the maximum
number of devices between any two end stations. The range
is 2 to 7.
Example:
Device(config)# end
What to Do Next
After configuring the device as the root device, 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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
18
Configuring Spanning Tree Protocol
Configuring a Secondary Root Device (CLI)
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree vlan vlan-id root secondary [diameter net-diameter
4. end
DETAILED STEPS
Example:
Device> enable
Example:
Device# configure terminal
Step 3 spanning-tree vlan vlan-id root secondary Configures a device to become the secondary root for the specified
[diameter net-diameter VLAN.
• For vlan-id, you can specify a single VLAN identified by VLAN
Example: ID number, a range of VLANs separated by a hyphen, or a series
Device(config)# spanning-tree vlan of VLANs separated by a comma. The range is 1 to 4094.
20-24 root secondary diameter 4
• (Optional) For diameter net-diameter, specify the maximum
number of devices between any two end stations. The range is 2
to 7.
Use the same network diameter value that you used when configuring
the primary root device.
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
19
Configuring Spanning Tree Protocol
Configuring Port Priority (CLI)
Example:
Device(config)# end
Note If your device is a member of a device 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. enable
2. configure terminal
3. interface interface-id
4. spanning-tree port-priority priority
5. spanning-tree vlan vlan-id port-priority priority
6. end
DETAILED STEPS
Example:
Device> enable
Example:
Device# configure terminal
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
20
Configuring Spanning Tree Protocol
Configuring Path Cost (CLI)
Step 4 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,
Device(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 5 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.
Device(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:
Device(config-if)# end
Related Topics
Port Priority Versus Path Cost, on page 6
How a Device or Port Becomes the Root Device or Root Port, on page 9
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
21
Configuring Spanning Tree Protocol
Configuring Path Cost (CLI)
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. spanning-tree cost cost
5. spanning-tree vlan vlan-id cost cost
6. end
DETAILED STEPS
Example:
Device> enable
Example:
Device# configure terminal
Step 3 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).
Device(config)# interface
gigabitethernet1/0/1
Step 5 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
Device(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.
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
22
Configuring Spanning Tree Protocol
Configuring the Device Priority of a VLAN (CLI)
Example:
Device(config-if)# end
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 device priority.
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree vlan vlan-id priority priority
4. end
DETAILED STEPS
Example:
Device> enable
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
23
Configuring Spanning Tree Protocol
Configuring the Hello Time (CLI)
Example:
Device# configure terminal
Step 3 spanning-tree vlan vlan-id priority Configures the device 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
Example: VLANs separated by a comma. The range is 1 to 4094.
Device(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 device will be
chosen as the root device.
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.
Example:
Device(config-if)# end
SUMMARY STEPS
1. enable
2. spanning-tree vlan vlan-id hello-time seconds
3. end
DETAILED STEPS
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
24
Configuring Spanning Tree Protocol
Configuring the Forwarding-Delay Time for a VLAN (CLI)
Example:
Device> enable
Step 2 spanning-tree vlan vlan-id hello-time Configures the hello time of a VLAN. The hello time is the time interval
seconds between configuration messages generated and sent by the root device.
These messages mean that the device is alive.
Example: • For vlan-id, you can specify a single VLAN identified by VLAN ID
Device(config)# spanning-tree vlan number, a range of VLANs separated by a hyphen, or a series of
20-24 hello-time 3 VLANs separated by a comma. The range is 1 to 4094.
• For seconds, the range is 1 to 10; the default is 2.
Example:
Device(config-if)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree vlan vlan-id forward-time seconds
4. end
DETAILED STEPS
Example:
Device> enable
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
25
Configuring Spanning Tree Protocol
Configuring the Maximum-Aging Time for a VLAN (CLI)
Example:
Device# configure terminal
Step 3 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
Device(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:
Device(config)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree vlan vlan-id max-age seconds
4. end
DETAILED STEPS
Example:
Device> enable
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
26
Configuring Spanning Tree Protocol
Configuring the Transmit Hold-Count (CLI)
Example:
Device# configure terminal
Step 3 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 device waits without receiving
spanning-tree configuration messages before attempting a reconfiguration.
Example: • For vlan-id, you can specify a single VLAN identified by VLAN
Device(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:
Device(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.
SUMMARY STEPS
1. enable
2. configure terminal
3. spanning-tree transmit hold-count value
4. end
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
27
Configuring Spanning Tree Protocol
Monitoring Spanning-Tree Status
DETAILED STEPS
Example:
Device# configure terminal
Step 3 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.
Device(config)# spanning-tree transmit
hold-count 6
Example:
Device(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.
show spanning-tree summary [totals] Displays a summary of interface states or displays the total lines
of the STP state section.
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
28
Configuring Spanning Tree Protocol
Additional References for Spanning-Tree Protocol
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
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
29
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.
Software Configuration Guide, Cisco IOS XE Everest 16.4.1 (Catalyst 3850 Switches)
30