Skip to content

STP

spanning-tree

Command Objective: This command enables the spanning tree operation in the switch for the selected spanning tree Mode.

Spanning tree operation provides path redundancy while preventing undesirable loops in the network that are created by multiple active paths between stations. It logically breaks such loops and prevents looping traffic from clogging the network.

The no form of this command disables the spanning tree operation in the switch. The spanning tree operation is automatically enabled in the switch, once the spanning tree Mode is changed.

The spanning tree operation can be enabled in the switch only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax:

  • spanning-tree
  • no spanning-tree

Mode: Global Configuration Mode.

spanning-tree mode

Command Objective: This command sets the type of spanning tree to be executed, enables spanning tree operation and starts spanning tree functionality in the switch. The current selected type of spanning tree is enabled and the existing spanning tree type is disabled in the switch.

Syntax: spanning-tree mode {mst\|rst}

Parameter Description:

  • mst: Configures the switch to execute MSTP for preventing undesirable loops. MSTP configures spanning tree on per VLAN basis or multiple VLANs per spanning tree. The Mode cannot be set as mst, if the base bridge Mode is configured as transparent bridging.
  • rst: Configures the switch to execute RSTP for preventing undesirable loops. RSTP provides rapid recovery of connectivity following the failure of a bridge/bridge port or a LAN.

Mode: Global Configuration Mode.

spanning-tree transmit hold-count

Command Objective: This command sets the transmit hold-count value for the switch.The transmit hold count value is a counter that is used to limit the maximum transmission rate of the switch and to avoid flooding. This value specifies the maximum number of packets that can be sent in a given hello time interval. This value ranges between 1 and 10.

The no form of this command sets the transmit hold-count to its default value. The transmit hold-count is changed to its default value even if the spanning tree Mode is changed.

The transmit hold-count value can be configured in the ]{.s39}[switch, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax:

  • spanning-tree transmit hold-count <value (1-10)>
  • no spanning-tree transmit hold-count

Parameter Description:

  • hold-count: This value specifies the maximum number of packets that can be sent in a given hello time interval. This value ranges between 1 and 10.

Mode: Global Configuration Mode.

spanning-tree forward-time

Command Objective: This command configures the forward timer of the spanning tree and the no form of the command sets the forward timer to the default value. The forward timer controls the speed at which a port changes its spanning tree state from Blocking state to Forwarding state. The timer value ranges between 4 and 30 seconds.

The values configured for the spanning tree forward timers should satisfy the following conditions:

2* (forward-time - 1) >= max-age, and max-age >= 2 * (hello-time +1)

This command is a standardized implementation of the existing command; spanning-tree timers. It operates similar to the existing command.

Syntax:

  • spanning-tree forward-time <seconds(4-30)>
  • no spanning-tree forward-time

Mode: Global Configuration Mode.

spanning-tree max-age

Command Objective This command configures the max-age timer of the spanning tree.The max-age timer denotes the time (in seconds) after which the spanning tree protocol information learnt from the network on any port will be discarded. The timer value ranges between 6 and 40 seconds.

The no form of the command sets the max-age timer to the default value.

The values configured for the spanning tree forward timers ]{.s39}[should satisfy the following conditions:

2* (forward-time - 1) >= max-age, and max-age >= 2 * (hello-time +1)

This command is a standardized implementation of the existing command; spanning-tree timers. It operates similar to the existing command.

Syntax:

  • spanning-tree max-age <seconds(6-40)>
  • no spanning-tree max-age

Mode: Global Configuration Mode.

spanning-tree hello-time

Command Objective: This command configures the spanning tree hello time.

The no form of this command resets the hello time to its default value.

The hello time represents the time interval (in seconds) between two successive configuration BPDUs generated by the switch on the port. This value is either 1 or 2 seconds. This value is applied to all active MSTIs.

Syntax:

  • spanning-tree hello-time<value(1-2)>
  • no spanning-tree hello-time

Mode: Global Configuration Mode.

spanning-tree mst forward-time

Command Objective: This command configures the forward timer of the spanning tree and the no form of the command sets the forward timer to the default value. The forward timer controls the speed at which a port changes its spanning tree state from Blocking state to Forwarding state. The timer value ranges between 4 and 30 seconds.

The values configured for the spanning tree forward timers ]{.s39}[should satisfy the following conditions:

2* (forward-time - 1) >= max-age, and max-age >= 2 * (hello-time +1)

This command is a standardized implementation of the existing command; spanning-tree timers. It operates similar to the existing command.

The STP forward timers can be configured in the switch, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax:

  • spanning-tree mst forward-time <seconds(4-30)>
  • no spanning-tree mst forward-time

Mode: Global Configuration Mode.

spanning-tree mst max-age

Command Objective: This command configures the max-age timer of the spanning tree.The max-age timer denotes the time (in seconds) after which the spanning tree protocol information learnt from the network on any port will be discarded. The timer value ranges between 6 and 40 seconds.

The no form of the command sets the max-age timer to the default value.

The values configured for the spanning tree forward timers should satisfy the following conditions:

2* (forward-time - 1) >= max-age, and max-age >= 2 * (hello-time +1)

This command is a standardized implementation of the existing command; spanning-tree timers. It operates similar to the existing command.

The STP forward timers can be configured in the switch, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax:

  • spanning-tree mst max-age <seconds(6-40)>
  • no spanning-tree mst max-age

Mode: Global Configuration Mode.

spanning-tree mst hello-time

Command Objective: This command configures the spanning tree hello time.

The no form of this command resets the hello time to its default value.

The hello time represents the time interval (in seconds) between two successive configuration BPDUs generated by the switch on the port. This value is either 1 or 2 seconds. This value is applied to all active MSTIs.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set as mst.

Syntax:

  • spanning-tree mst hello-time<value(1-2)>
  • no spanning-tree mst hello-time

Mode: Global Configuration Mode / PORT Interface Mode.

clear spanning-tree counters

Command Objective: This command deletes all bridge and port level spanning tree statistics information.

For RSTP, the information contains number of:

  • Transitions to forwarding state.
  • RSTP BPDU count received / transmitted.
  • Config BPDU count received / transmitted.
  • TCN BPDU count received / transmitted.
  • Invalid BPDU count transmitted.
  • Port protocol migration count.

For MSTP, the information contains number of:

  • Port forward transitions.
  • Port received BPDUs.
  • Port transmitted BPDUs.
  • Port invalid BPDUs received.
  • Port protocol migration count.
  • BPDUs sent / received for each MSTI.

The statistics information can be deleted, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: clear spanning-tree [mst <instance-id>] counters[interface]<interface-type> <interface-id>]

Parameter Description:

  • mst <instance-id>: Clears the statistical counters specific to the MSTP instance already created in the switch. This value ranges between 1 and 64. This option is applicable, only if the spanning tree Mode is set as mst.
  • interface: Clears all port-level spanning-tree statistics information for the given port.
  • <interface-type>: Clears all port-level spanning-tree statistics information for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • <interface-id>: Clears all port-level spanning-tree statistics information for the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash. For Example: 0/1 represents that the slot number is 0 and port number is 1. Only port-channel ID is provided, for interface type port-channel. For Example: 1 represents port-channel ID.

Mode: Global Configuration Mode.

spanning-tree priority

Command Objective: This command configures the priority value that is assigned to the switch.

The no form of this command resets the priority to its default value. The priority value is changed to its default value even if the spanning tree Mode is changed.

In RSTP, this value is used during the election of root. In MSTP, this value is used during the election of CIST root, CIST regional root and IST root.

The priority value can be configured in the switch, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax:

  • spanning-tree [mst <instance-id>] priority <value(0-61440)>
  • no spanning-tree [mst <instance-id(1-64)>] priority

Parameter Description:

  • mst <instance-id>: Configures the ID of MSTP instance already created in the switch. This value ranges between 1 and 64. The special value 4094 can be used only in the switch that supports PBB-TE. This special value represents PTETID that identifies VID used by ESPs. This option is applicable, only if the spanning tree Mode is set as mst.
  • priority <value(0-61440)>: Configures the priority value for the switch and for the MSTI, in RSTP and MSTP respectively. This value ranges between 0 and 61440. The value should be set in steps of 4096, that is, you can set the value as 0, 4096, 8192, 12288 and so on.

Mode: Global Configuration Mode.

spanning-tree mst max-instance

Command Objective: This command configures the maximum number of active MSTIs that can be created. This value ranges between 1 and 64.

The no form of this command resets maximum MSTP instance value to its default value.

This command can be executed successfully, only if the spanning tree functionality is started and enabled in the switch. The type of spanning tree Mode should be set as mst.

Syntax:

  • spanning-tree mst max-instance <short(1-64)>
  • no spanning-tree mst max-instance

Mode: Global Configuration Mode.

spanning-tree mst root

Command Objective: This command enables BPDU (Bridge Protocol Data Unit) transmission and reception on the interface.

This command is a standardized implementation of the existing command; spanning-tree priority. It operates similar to the existing command.

The no form of the command disables BPDU transmission and reception on the interface.

This command executes only if:

  • Instance is created.
  • Spanning tree Mode is set as mst.

Syntax:

  • spanning-tree mst {instance-id \<instance-id(1-64)>} root {primary | secondary}
  • no spanning-tree mst {instance-id <instance-id(1-64)>} root

Parameter Description:

  • instance-id <instance-id(1-64)>: Configures the ID of MSTP instance already created in the switch. This value ranges between 1 and 64. This option is applicable, only if the spanning tree Mode is set as mst.
  • primary: Sets high enough priority (low value) for the switch so that the switch can be made as the bridge root of the spanning-tree instance. The priority value is set as 24576.
  • secondary: Sets the switch as a secondary root, if the primary root fails. The priority value is set as 28672.

Mode: Global Configuration Mode.

spanning-tree mst configuration

Command Objective: This command enters into MSTP configuration Mode, where instance specific and MST region configuration can be done.

This command can be executed successfully, only if the ]{.s39}[spanning tree functionality is started and enabled in the switch. The type of spanning tree Mode should be set as mst.

Syntax: spanning-tree mst configuration

Mode: Global Configuration Mode.

name

Command Objective: This command configures the name for the MST region.

The name is unique and used to identify the specific MST region. Each MST region contains multiple spanning tree instances and runs special instance of spanning tree known as IST to disseminate STP topology information for other STP instances.

The no form of this command resets the name to its default value.

Syntax:

  • name <string(optional max Length)>
  • no name

Mode: MSTP Configuration Mode.

revision

Command Objective: This command configures the revision number for the MST region. This value ranges between 0 and 65535.

The no form of this command resets the revision number to its default value.

Syntax:

  • revision <value(0-65535)>
  • no revision

Mode: MSTP Configuration Mode.

instance

Command Objective: This command creates an MST instance and maps it to VLANs.

The no form of this command deletes the instance / unmaps specific VLANs from the MST instance.

Syntax:

  • instance <instance-id(1-64 | 4094)> vlan <vlan-range>
  • no instance <instance-id (1-64 | 4094> [vlan<vlan-range>]

Mode: MSTP configuration Mode.

spanning-tree auto-edge

Command Objective: This command enables automatic detection of Edge port parameter of an interface.

The no form of this command disables automatic detection of Edge port parameter of an interface. The automatic detection of Edge port parameter is disabled, even if the spanning tree Mode is changed.

Once automatic detection is enabled, the Edge port parameter is automatically detected and set. The port is set as edge port, if no BPDU is received on the port. The port is set as non-edge port, if any BPDU is received.

The automatic detection of Edge port parameter can be configured in the switch, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax:

  • spanning-tree auto-edge
  • no spanning-tree auto-edge

Mode: Interface Configuration Mode.

This command is applicable in PORT/PORT-CHANNEL Interface Mode.

spanning-tree - Properties of an interface

Command Objective: This command configures the port related spanning tree information for all kinds of STPs. This can be applied for any port, in RSTP/MSTP Mode. This command creates port in STP when Automatic Port Create feature is disabled.

The no form of this command resets the port related spanning tree information to its default value. The port related spanning tree information is changed to its default value even if the spanning tree Mode is changed. This command also deletes port in STP when Automatic Port Create feature is disabled.

In STP module, whenever a port is mapped to any context, the corresponding port is created irrespective of whether STP is intended to be enabled on that interface. This leads To STP scaling issues and this problem is solved by having control at STP module on the port entry creation at STP module itself.

Syntax:

  • spanning-tree [{cost <value(0-200000000)>|disable|link- type{point-to-point|shared}|port-priority <value(0-240)>}]
  • no spanning-tree [{cost|disable|link-type|port-priority}]

Parameter Description:

  • cost <value(0-200000000)>: Configures the port's path cost value that contributes to the path cost of paths containing this particular port. The paths' path cost is used during calculation of shortest path to reach the root. The path cost represents the distance between the root port and designated port. This value ranges between 1 and 200000000. The configured path cost is used, even if the dynamic pathcost calculation feature or LAGG speed feature is enabled.
  • disable: Disables the spanning tree operation on the port. The port does not take part in the execution of spanning tree operation for preventing undesirable loops in the network.
  • link-type: Configures the link status of the LAN segment attached to the port. The options available are:

    • point-to-point: The port is treated as if it is connected to a point-to-point link.
    • shared: The port is treated as if it is using a shared media connection.
  • port-priority: 128.

Mode: Interface Configuration Mode.

This command is applicable in PORT/PORT-CHANNEL Interface Mode.

spanning-tree mst- Properties of an interface for MSTP

Command Objective: This command configures the port related spanning tree information for a specified MSTI in a port.

The no form of this command resets the spanning tree information of a port to its default value.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set as mst.

Syntax:

  • spanning-tree mst <instance-id(1-64)> {cost <value(1- 200000000)>| port-priority <value(0-240)> | disable}
  • no spanning-tree mst<instance-id(1-64)>{cost|port-priority | disable}

Parameter Description:

  • <instance-id(1-64)>: Configures the ID of MSTP instance already created in the switch.This value ranges between 1 to 64.
  • cost<value(1-200000000)>: Configures the port's path cost value that contributes to the path cost of paths containing this particular port. The paths' path cost is used during calculation of shortest path to reach the root. The path cost represents the distance between the root port and designated port. This value ranges between 1 and 200000000. The configured path cost is used, even if the dynamic pathcost calculation feature or LAGG speed feature is enabled.
  • port-priority<value(0-240)>: Configures the priority value assigned to the port. This value is used during port role selection process. This value ranges between 0 and 240. This value should be set in steps of 16, that is, you can set the value as 0, 16, 32, 48, and so on. The MSTP puts the interface with lowest number in forwarding state and blocks all other interfaces, if all interfaces have the same priority value.
  • disable: Disables the spanning tree operation on the port. The port does not take part in the execution of spanning tree operation for preventing undesirable loops in the network.

Mode: Interface Configuration Mode.

This command is applicable in PORT/PORT-CHANNEL Interface Mode.

show spanning-tree - Summary, Blockedports, Pathcost

Command Objective: This command displays spanning tree related information available in the switch for the current STP enabled in the switch.

The information contain priority, address and timer details for root and bridge, status of dynamic pathcost calculation feature, status of spanning tree function, STP compatibility version used, configured spanning tree Mode, bridge and port level spanning tree statistics information, and details of ports enabled in the switch. The port details contain port ID, port role, port state, port cost, port priority and link type.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: show spanning-tree [{ summary | blockedports | pathcost method }] [switch <context_name>]

Parameter Description:

  • summary: Displays the currently used STP, applied path cost method and port details such as port ID, port role, port state and port status.
  • blockedports: Displays the list of ports in blocked state and the total number of blocked ports.
  • pathcost method: Displays the port pathcost method configured for the switch.
  • switch <context_name>: Displays the STP related information in the switch, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree detail

Command Objective: This command displays detailed spanning tree related information of the switch and all ports enabled in the switch.

The information contains status of spanning tree operation, current selected spanning Mode, current spanning tree compatibility version, bridge and root priority, bridge and root addresses, port path cost, port priority, port timers, bridge and port level spanning tree statistics information, transmit hold-count value, link-type, and status of L2GP, loop guard, BPDU receive, BPDU transmit, restricted TCN, restricted role and portfast features.

This command can be executed successfully, only if the ]{.s39}[spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: show spanning-tree detail [switch <context_name>]

Parameter Description:

  • switch <context_name>: Displays detailed spanning tree related information, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree active

Command Objective: This command displays spanning tree related information available in the switch for the current STP enabled in the switch.

The information contains priority, address and timer details for root and bridge, status of dynamic pathcost calculation feature, status of spanning tree function, STP compatibility version used, configured spanning tree Mode, bridge and port level spanning tree statistics information, and details of ports enabled in the switch.

The port details contain port ID, port role, port state, port cost, port priority and link type.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: show spanning-tree active [detail] [switch <context_name>]

Parameter Description:

  • detail: Displays detailed spanning tree related information of the switch and all ports enabled in the switch. The information contains status of spanning tree operation, current selected spanning Mode, current spanning tree compatibility version, bridge and root priority, bridge and root addresses, port path cost, port priority, port timers, bridge and port level spanning tree statistics information, transmit hold-count value, link-type, and status of L2GP, loop guard, BPDU receive, BPDU transmit, restricted TCN, restricted role and portfast features.
  • switch <context_name>: Displays spanning tree related information available in the switch, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree interface

Command Objective: This command displays the port related spanning tree information for the specified interface.

The information contains port ID, port role, port state, port cost, port priority and link type.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: show spanning-tree interface <interface-type> <interface-id> [{cost | priority | portfast | rootcost | restricted-role | restricted-tcn | state | stats | detail }]

Parameter Description:

  • <interface-type>: Displays the port related spanning tree information for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • <interface-id>: Displays the information about the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash. For Example: 0/1 represents that the slot number is 0 and port number is 1. Only port-channel ID is provided, for interface type port- channel. For Example: 1 represents port-channel ID.

  • cost: Displays the cost of the port or instances assigned to that port.
  • priority: Displays the priority of the port or instances assigned to that port.
  • rootcost: Displays the root cost of the port or instances assigned to that port. The root cost defines the pathcost to reach the root bridge.
  • restricted-role: Displays the status of the restricted role feature for the port. This option cannot be executed in the PVRST Mode.
  • restricted-tcn: Displays the status of the restricted TCN feature for the port. This option cannot be executed in the PVRST Mode.
  • state: Displays the state of the port.
  • stats: Displays the port level spanning tree statistics information.
  • detail: Displays detailed spanning tree related information for the port. The information contains current selected spanning Mode, bridge and root priority, bridge and root addresses, port path cost, port priority, port timers, bridge and port level spanning tree statistics information, link-type, and status of L2GP, loop guard, BPDU receive, BPDU transmit, restricted TCN, restricted role and portfast features.

Mode: Privileged EXEC Mode.

show spanning-tree root

Command Objective: This command displays the spanning tree root information. The information contain root ID, root path cost, maximum age time, forward delay time and root port, for the RSTP. The information also contains the instance ID for MSTP.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch.

The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: show spanning-tree root [{address | cost | forward-time | id | max- age | port | priority | detail}] [ switch <context_name>]

Parameter Description:

  • address: Displays the MAC address of the root bridge.
  • cost: Displays the cost of the root bridge.
  • forward-time: Displays the forward delay time of the root bridge.
  • id: Displays the ID of the root bridge.
  • max-age: Displays the maximum age time of the root bridge.
  • port: Displays the ID of the root port.
  • priority: Displays the priority of the root bridge.
  • detail: Displays the root priority, root address, root cost, root port, forward delay time and maximum age time.
  • **switch <context_name>: Displays spanning tree root information, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree bridge

Command Objective: This command displays the spanning tree bridge information. The information contain bridge ID, hello time, maximum age time, forward delay time and protocol enabled, for the RSTP. The information also contains the instance ID for MSTP.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch.

The type of spanning tree Mode should be set, if the functionality is already shutdown.

Syntax: show spanning-tree bridge [{address | forward-time | hello-time | id | max-age | protocol | priority | detail}] [ switch<context_name>]

Parameter Description:

  • address: Displays the MAC address of the bridge.
  • forward-time: Displays the forward delay time of the bridge.
  • hello-time: Displays the hello time of the bridge.
  • id: Displays the ID of the bridge.
  • max-age: Displays the maximum age time of the bridge.
  • protocol: Displays the protocol currently enabled in the bridge.
  • priority: Displays the priority of the bridge.
  • detail: Displays the priority, address, maximum age time and forward delay time for the bridge.
  • switch: Displays spanning tree bridge information, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree mst - CIST or specified mst Instance

Command Objective: This command displays multiple spanning tree information for all MSTIs in the switch.

The information contain MSTI ID, VLAN IDs mapped to the instance, bridge address and priority, root address and priority, IST root address, priority and path cost, forward delay, maximum age, maximum hop count, and port details of interfaces enabled in the switch. The port details contain interface ID, port role, port state, port cost, port priority and port link type.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set as mst.

Syntax: show spanning-tree mst [<instance-id(1-64 | 4094)>] [detail] [switch <context_name>]

Parameter Description:

  • <instance-id(1-64)>: Displays the multiple spanning tree information for the specified MSTI. This value ranges between 1 to 64.
  • detail: Displays the detailed multiple spanning tree information for the MSTI. This information contain MSTI ID, VLAN IDs mapped to the instance, bridge address and priority, root address and priority, IST root address, priority and path cost, forward delay, maximum age, maximum hop count, and BPDUs sent and received in the port.
  • switch<context_name>: Displays multiple spanning tree bridge information, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree mst configuration

Command Objective: This command displays multiple spanning tree instance related information. This information contains the MST region name, MST region revision, and a list containing MSTI IDs and VLAN IDs mapped to the corresponding MSTI.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set as mst.

Syntax: show spanning-tree mst configuration [ switch <context_name>]

Parameter Description:

  • **switch <context_name>: Displays multiple spanning tree instance related information, for the specified context. This value represents unique name of the switch context. This value is a string with the maximum size as 32. This parameter is specific to multiple instance feature.

Mode: Privileged EXEC Mode.

show spanning-tree mst - Port Specific Configuration

Command Objective: This command displays multiple spanning tree port specific information for the specified port. This information contain interface ID, edge port status, port link type, port hello time, BPDUs sent and received on the port, and instance related details. The instance details contain MSTI ID, MSTI role, MSTI status, MSTI cost and MSTI priority.

This command can be executed successfully, only if the spanning tree functionality is not shutdown in the switch. The type of spanning tree Mode should be set as mst.

Syntax: show spanning-tree mst [<instance-id(1-64)>] interface <interface-type> <interface-id> [{ stats | hello-time | detail}]

Parameter Description:

  • <instance-id(1-64)>: Displays the multiple spanning tree port specific information for the specified MSTI. This value ranges between 1 to 64.
  • <interface-type>: Displays the port related spanning tree information for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • <interface-id>: Displays the information about the specified interface identifier. This is a unique value that represents the specific interface. This value is a combination of slot number and port number separated by a slash. For Example: 0/1 represents that the slot number is 0 and port number is 1. Only port-channel ID is provided, for interface type port- channel. For Example: 1 represents port-channel ID.

  • stats: Displays the number of BPDUs sent and received for the MSTIs assigned to the specified interface.
  • hello-time: Displays the hello time of the MSTIs assigned to the specified interface.
  • detail: Displays detailed multiple spanning tree port specific information for the specified interface. The information contain port priority, port cost, root address, priority and cost, IST address, priority and cost, bridge address, priority and cost, forward delay, maximum age, maximum hop count, and BPDUs sent and received.

Mode: Privileged EXEC Mode.

show customer spanning-tree

Command Objective: This command displays the detailed customer spanning tree information.

Syntax: show customer spanning-tree [cep interface <interface-type><interface-number>] [{detail [active] | active [detail]}]

Parameter Description:

  • <interface-type>: Displays the port related spanning tree information for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.
  • detail: Displays in detail about the port and bridge. This includes designated Bridge details, designated port details, timer values, root bridge and so on.

  • active: Displays the Bridge and details of the active (active ports are those ports that are participating in the spanning- tree) ports.

Mode: Privileged EXEC Mode.

show spanning-tree - layer2-gateway-port

Command Objective: This command displays spanning tree layer two gateway port specific configuration.

Syntax: show spanning-tree [interface <interface-type> <interface-id>] layer2-gateway-port [switch <context_name>]

Parameter Description:

  • <interface-type>: Displays the port related spanning tree information for the specified type of interface. The interface can be:

    • gigabitethernet: A version of LAN standard architecture that supports data transfer upto 1 Gigabit per second.
    • port-channel: Logical interface that represents an aggregator which contains several ports aggregated together.

Mode: Privileged EXEC Mode.