The commands in this section apply at the switch (global) level. For configuring spanning tree settings on individual ports, see Configuring MSTP per-port parameters.
Syntax:
Resets the configuration name of the MST region in which the switch resides. This name can include up to 32 nonblank characters and is case-sensitive. On all switches within a given MST region, the configuration names must be identical. For more than one MSTP switch in the same MST region, the identical region name must be configured on all such switches. If the default configuration name is retained on a switch, it cannot exist in the same MST region with another switch.
The default name is a text string using the hexadecimal representation of the switch's MAC address.
The
no
form of the command overwrites the currently configured name with the default name.
Syntax:
Configures the revision number designated for the MST region in which you want the switch to reside. This setting must be the same for all switches residing in the same region. Use this setting to differentiate between region configurations in situations such as the following:
Changing configuration settings within a region where you want to track the configuration versions you use
Creating a new region from a subset of switches in a current region and want to maintain the same region name.
Using the
pending
option to maintain two different configuration options for the same physical region.This setting must be the same for all MSTP switches in the same MST region.
NOTE: This option is available only when the switch is configured for MSTP operation.
Syntax:
Sets the spanning tree compatibility mode. This command forces the switch to emulate behavior of earlier versions of spanning tree protocol, or return to MSTP behavior. The command is useful in test or debug applications and removes the need to reconfigure the switch for temporary changes in spanning tree operation.
NOTE: Even when
mstp-operation
is selected, if the switch detects an 802.1D BPDU or an 802.1w BPDU on a port, it communicates with the device linked to that port using STP or RSTP BPDU packets. Also, if errors are encountered as described in Configuring MSTP at a glance, settingforce-version
tostp-compatible
forces the MSTP switch to communicate out all ports using operations that are compatible with IEEE 802.1D STP.
Syntax:
Forces spanning tree to operate in legacy (802.!D) mode.
The
no
form of this command returns the switch to the default 802.1s native mode (MSTP-operation)
Syntax:
Syntax:
If MSTP is running and the switch is operating as the CIST (Common and Internal Spanning Tree) root for your network, this command specifies the time in seconds between transmissions of BPDUs for all ports on the switch configured with the Global option (the default). This parameter applies in MSTP, RSTP and STP modes.
During MSTP operation, you can override this global setting on a per-port basis with this command:
spanning-tree
.<port-list>
hello-time<1..10>
Syntax:
Resets the number of hops allowed for BPDUs in an MST region. When an MSTP switch receives a BPDU, it decrements the hop-count setting the BPDU carries. If the hop-count reaches zero, the receiving switch drops the BPDU.
The switch does not change the message-age and maximum-age data carried in the BPDU as it moves through the MST region and is propagated to other regions.
Syntax:
Manipulates the pending MSTP configuration. The command is useful in test or debug applications and enables rapid reconfiguration of the switch for changes in spanning tree operation.
Syntax:
Every switch running an instance of MSTP has a Bridge Identifier, which is a unique identifier that helps distinguish this switch from all others. The switch with the lowest Bridge Identifier is elected as the root for the tree.
The Bridge Identifier is composed of a configurable Priority component (2 bytes) and the bridge's MAC address (6 bytes). The ability to change the Priority component provides flexibility in determining which switch will be the root for the tree, regardless of its MAC address.
This command sets the switch (bridge) priority for the designated region in which the switch resides. The switch compares this priority with the priorities of other switches in the same region to determine the root switch for the region. The lower the priority value, the higher the priority. If there is only one switch in the region, then that switch is the root switch for the region.The root bridge in a region provides the path to connected regions for the traffic in VLANs assigned to the region's IST instance. Traffic in VLANs assigned to a numbered STP instance in a given region moves to other regions through the root switch for that instance.
The priority range for an MSTP switch is 0-61440. However, this command specifies the priority as a multiplier (0 - 15) of 4096. That is, when you specify a priority multiplier value of 0 - 15, the actual priority assigned to the switch is: (priority-multiplier) x 4096
For example, with 2 as the priority-multiplier on a given MSTP switch, the Switch Priority setting is 8,192.
NOTE: If multiple switches in the same MST region have the same priority setting, then the switch with the lowest MAC address becomes the root switch for that region.
Syntax:
Enables or disables SNMP traps for errant-BPDU, loop guard, new root and root guard event notifications. This command is designed to be used with the
spanning-tree bpdu-filter
command (see Configuring BPDU filtering) and thebpdu-protection
command (see Enabling and disabling BPDU protection).
Enables SNMP notification when an errant BPDU is received. Designed for use with BPDU filtering (see Configuring BPDU filtering).
Enables SNMP notification when a loop guard inconsistency is detected. Designed for use with the Loop Guard option (see STP loop guard).
Enables SNMP notification when a new root is elected on any VLAN configured for MSTP on the switch.
Enables SNMP notification when a root guard inconsistency is detected. See Denying a port the role of root port.