show spanning-tree interface
Syntax
Syntax (EX Series Switch)
Release Information
Command introduced in Junos OS Release 8.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Display the configured or calculated interface-level STP parameters.
Options
- none
Display brief STP interface information.
- brief | detail
(Optional) Display the specified level of output.
- msti msti-id
(Optional) Display STP interface information for the specified MST instance.
- routing-instance routing-instance-name
(Optional) Display STP interface information for the specified routing instance.
- vlan-id vlan-id
(Optional) Display STP interface information for the specified VLAN.
Required Privilege Level
view
List of Sample Output
show spanning-tree interfaceshow spanning-tree interface detail
show spanning-tree interface msti
show spanning-tree interface vlan-id 101
show spanning-tree interface (VSTP)
show spanning-tree interface vlan-id (VSTP)
Output Fields
Table 1 lists the output fields for the show spanning-tree Interface command. Output fields are listed in the approximate order in which they appear.
Table 1: show spanning-tree Interface Output Fields
Field Name | Field Description |
|---|---|
Interface name | Interface configured to participate in the STP, RSTP, VSTP, or MSTP instance. |
Port ID | Logical interface identifier configured to participate in the MSTP or VSTP instance. |
Designated port ID | Port ID of the designated port for the LAN segment to which this interface is attached. |
Designated bridge ID | Bridge ID of the designated bridge for the LAN segment to which this interface is attached. |
Port Cost | Configured cost for the interface. |
Port State | STP port state: forwarding (FWD), blocking (BLK), listening, learning, or disabled. |
Port Role | MSTP, VSTP, or RSTP port role: designated (DESG), backup (BKUP), alternate (ALT), root, or Root Prevented (Root-Prev). |
Link type | MSTP, VSTP, or RSTP link type. Shared or point-to-point (pt-pt) and edge or nonedge. |
Alternate | Identifies the interface as an MSTP, VSTP, or RSTP alternate root port (Yes) or nonalternate root port (No). |
Boundary Port | Identifies the interface as an MSTP regional boundary port (Yes) or nonboundary port (No). |
Sample Output
show spanning-tree interface
user@host> show spanning-tree interface routing-instance
vs1 detailSpanning tree interface parameters for instance 0
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ae1 128:1 128:1 32768.0090690b47d1 1000 FWD DESG
ge-2/1/2 128:2 128:2 32768.0090690b47d1 20000 FWD DESG
ge-2/1/5 128:3 128:3 32768.0090690b47d1 29999 FWD DESG
ge-2/2/1 128:4 128:26 32768.0013c39ec880 20000 FWD ROOT
xe-9/2/0 128:5 128:5 32768.0090690b47d1 2000 FWD DESG
xe-9/3/0 128:6 128:6 32768.0090690b47d1 2000 FWD DESG
Spanning tree interface parameters for instance 1
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ae1 128:1 128:1 32769.0090690b47d1 1000 FWD DESG
ge-2/1/2 128:2 128:2 32769.0090690b47d1 20000 FWD DESG
ge-2/1/5 128:3 128:3 32769.0090690b47d1 29999 FWD DESG
ge-2/2/1 128:4 128:26 32769.0013c39ec880 20000 FWD ROOT
xe-9/2/0 128:5 128:5 32769.0090690b47d1 2000 FWD DESG
xe-9/3/0 128:6 128:6 32769.0090690b47d1 2000 FWD DESG
Spanning tree interface parameters for instance 2
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ae1 128:1 128:1 32770.0090690b47d1 1000 FWD DESG
ge-2/1/2 128:2 128:2 32770.0090690b47d1 20000 FWD DESG
ge-2/1/5 128:3 128:3 32770.0090690b47d1 29999 FWD DESG
ge-2/2/1 128:4 128:26 32770.0013c39ec880 20000 FWD ROOT
xe-9/2/0 128:5 128:5 32770.0090690b47d1 2000 FWD DESG
xe-9/3/0 128:6 128:6 32770.0090690b47d1 2000 FWD DESG
show spanning-tree interface detail
user@host> show spanning-tree interface routing-instance
vs1 detailSpanning tree interface parameters for instance 0 Interface name : ae1 Port identifier : 128.1 Designated port ID : 128.1 Port cost : 1000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/2 Port identifier : 128.2 Designated port ID : 128.2 Port cost : 20000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/5 Port identifier : 128.3 Designated port ID : 128.3 Port cost : 29999 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/2/1 Port identifier : 128.4 Designated port ID : 128.26 Port cost : 20000 Port state : Forwarding Designated bridge ID : 32768.00:13:c3:9e:c8:80 Port role : Root Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : xe-9/2/0 Port identifier : 128.5 Designated port ID : 128.5 Port cost : 2000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : xe-9/3/0 Port identifier : 128.6 Designated port ID : 128.6 Port cost : 2000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Spanning tree interface parameters for instance 1 Interface name : ae1 Port identifier : 128.1 Designated port ID : 128.1 Port cost : 1000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/2 Port identifier : 128.2 Designated port ID : 128.2 Port cost : 20000 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/1/5 Port identifier : 128.3 Designated port ID : 128.3 Port cost : 29999 Port state : Forwarding Designated bridge ID : 32768.00:90:69:0b:47:d1 Port role : Designated Link type : Pt-Pt/NONEDGE Boundary port : No Interface name : ge-2/2/1 Port identifier : 128.4 Designated port ID : 128.26 Port cost : 20000 Port state : Forwarding Designated bridge ID : 32768.00:13:c3:9e:c8:80 Port role : Root Link type : Pt-Pt/NONEDGE Boundary port : No ...
show spanning-tree interface msti
user@host> show spanning-tree interface msti
1 routing-instance vs1 detail Spanning tree interface parameters for instance 1
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
xe-7/0/0 128:1 128:1 32769.0090690b4fd1 2000 FWD DESG
ge-5/1/0 128:2 128:2 32769.0090690b4fd1 20000 FWD DESG
ge-5/1/1 128:3 128:3 32769.0090690b4fd1 20000 FWD DESG
ae1 128:4 128:1 32769.0090690b47d1 10000 BLK ALT
ge-5/1/4 128:5 128:3 32769.0090690b47d1 20000 BLK ALT
xe-7/2/0 128:6 128:6 32769.0090690b47d1 2000 FWD ROOT
show spanning-tree interface vlan-id 101
user@host> show spanning-tree interface vlan-id
101 routing-instance vs1 detailSpanning tree interface parameters for instance 0
Interface Port ID Designated Designated Port State Role
port ID bridge ID Cost
ge-11/0/5 128:1 128:1 32768.0090690b7fd1 20000 FWD DESG
ge-11/0/6 128:2 128:1 32768.0090690b7fd1 20000 BLK BKUP
ge-11/1/0 128:3 128:2 32768.0090690b4fd1 20000 BLK ALT
ge-11/1/1 128:4 128:3 32768.0090690b4fd1 20000 BLK ALT
ge-11/1/4 128:5 128:1 32768.0090690b47d1 20000 BLK ALT
xe-10/0/0 128:6 128:5 32768.0090690b4fd1 2000 BLK ALT
xe-10/2/0 128:7 128:4 32768.0090690b47d1 2000 FWD ROOT
show spanning-tree interface (VSTP)
user@host> show spanning-tree interfaceSpanning tree interface parameters for instance 0
Interface Port ID Designated Designated Cost State Role
port ID bridge ID
ge-1/0/1 128:1 128:1 28672.0090690b3fe0 20000 FWD DESG
ge-1/0/2 128:2 128:2 28672.0090690b3fe0 20000 FWD DESG
Spanning tree interface parameters for VLAN 10
Interface Port ID Designated Designated Cost State Role
port ID bridge ID
ge-1/0/1 128:1 128:1 28672.0090690b3fe0 20000 FWD DESG
ge-1/0/2 128:2 128:2 28672.0090690b3fe0 20000 FWD DESG
Spanning tree interface parameters for VLAN 20
Interface Port ID Designated Designated Cost State Role
port ID bridge ID
ge-1/0/1 128:1 128:1 28672.0090690b3fe0 20000 FWD DESG
ge-1/0/2 128:2 128:2 28672.0090690b3fe0 20000 FWD DESGshow spanning-tree interface vlan-id (VSTP)
user@host> show spanning-tree interface vlan-id
10Spanning tree interface parameters for VLAN 10
Interface Port ID Designated Designated Cost State Role
port ID bridge ID
ge-1/0/1 128:1 128:1 28672.0090690b3fe0 20000 FWD DESG
ge-1/0/2 128:2 128:2 28672.0090690b3fe0 20000 FWD DESG
