show spanning-tree bridge
Syntax
Release Information
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Display the configured or calculated spanning-tree protocol (can be either STP, RSTP, or MSTP) parameters.
Options
- none
(Optional) Display brief STP bridge information for all Multiple Spanning Tree Instances (MSTIs).
- brief | detail
(Optional) Display the specified level of output.
- msti msti-id
(Optional) Display STP bridge information for the specified MSTP instance ID or Common and Internal Spanning Tree (CIST). Specify 0 for CIST. Specify a value from 1 through 4094 for an MSTI.
- vlan vlan-id
(Optional) Display STP bridge information for the specified VLAN. Specify a VLAN tag identifier from 1 through 4094.
Required Privilege Level
view
Related Topics
List of Sample Output
show spanning-tree bridgeshow spanning-tree bridge brief
show spanning-tree bridge detail
Output Fields
Table 1 lists the output fields for the show spanning-tree bridge command. Output fields are listed in the approximate order in which they appear.
Table 1: show spanning-tree bridge Output Fields
Field Name | Field Description |
|---|---|
Context ID | An internally generated identifier. |
Enabled protocol | Spanning-tree protocol type enabled. |
Root ID | Bridge ID of the elected spanning tree root bridge. The bridge ID consists of a configurable bridge priority and the MAC address of the bridge. |
Root cost | Calculated cost to reach the root bridge from the bridge where the command is entered. |
Root port | Interface that is the current elected root port for this bridge. |
CIST regional root | Bridge ID of the elected MSTP regional root bridge. |
CIST internal root cost | Calculated cost to reach the regional root bridge from the bridge where the command is entered. |
Hello time | Configured number of seconds between transmissions of configuration BPDUs. |
Maximum age | Maximum age of received protocol BPDUs. |
Forward delay | Configured time an STP bridge port remains in the listening and learning states before transitioning to the forwarding state. |
Hop count | Configured maximum number of hops a BPDU can be forwarded in the MSTP region. |
Message age | Number of seconds elapsed since the most recent BPDU was received. |
Number of topology changes | Total number of STP topology changes detected since the switch last booted. |
Time since last topology change | Number of seconds elapsed since the most recent topology change. |
Topology change initiator | Interface name of the interface that received the topology change request. |
Topology change last recvd. from | Bridge ID of the bridge that requested the last topology change. |
Bridge ID (Local) | Locally configured bridge ID. The bridge ID consists of a configurable bridge priority and the MAC address of the bridge. |
Extended system ID | Internally generated system identifier. |
MSTI regional root | Bridge ID of the elected MSTP regional root bridge. |
Internal instance ID | An internally generated identifier. |
Path Cost Method | Bridges supporting 802.1D (legacy) implement only 16-bit values for path cost. Newer versions of this standard support 32-bit values. |
Sample Output
show spanning-tree bridge
user@switch> show spanning-tree bridge STP bridge parameters
Context ID : 0
Enabled protocol : MSTP
STP bridge parameters for CIST
Root ID : 32768.00:11:f2:56:df:40
Root cost : 0
Root port : ge-0/0/1.0
CIST regional root : 32768.00:11:f2:56:df:40
CIST internal root cost : 20000
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Hop count : 19
Message age : 0
Number of topology changes : 1
Time since last topology change : 108 seconds
Topology change initiator : ge-0/0/1.0
Topology change last recvd. from : 00:11:f2:56:df:4c
Local parameters
Bridge ID : 32768.00:11:f2:57:1c:00
Extended system ID : 0
Internal instance ID : 0
STP bridge parameters for MSTI 10
MSTI regional root : 32778.00:11:f2:56:df:40
Root cost : 20000
Root port : ge-0/0/1.0
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Hop count : 19
Number of topology changes : 1
Time since last topology change : 108 seconds
Topology change initiator : ge-0/0/1.0
Topology change last recvd. from : 00:11:f2:56:df:41
Local parameters
Bridge ID : 32778.00:11:f2:57:1c:00
Extended system ID : 0
Internal instance ID : 1
show spanning-tree bridge brief
user@switch> show spanning-tree bridge briefSTP bridge parameters
Context ID : 0
Enabled protocol : RSTP
Root ID : 32768.00:19:e2:50:95:a0
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Message age : 0
Number of topology changes : 0
Local parameters
Bridge ID : 32768.00:19:e2:50:95:a0
Extended system ID : 0
Internal instance ID : 0
show spanning-tree bridge detail
user@switch> show spanning-tree bridge detail
STP bridge parameters
Context ID : 0
Enabled protocol : RSTP
Root ID : 32768.00:19:e2:50:95:a0
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Message age : 0
Number of topology changes : 0
Local parameters
Bridge ID : 32768.00:19:e2:50:95:a0
Extended system ID : 0
Internal instance ID : 0
Hello time : 2 seconds
Maximum age : 20 seconds
Forward delay : 15 seconds
Path cost method : 32 bit
