show spanning-tree interface
Syntax
show spanning-tree interface <brief | detail> <msti msti-id> <routing-instance routing-instance-name> <vlan-id vlan-id>
Syntax (EX Series Switches and QFX Series Switches)
show spanning-tree interface <brief | detail> <msti msti-id> <vlan-id vlan-id>
Syntax (EX Series Switches)
show spanning-tree interface <brief | detail> <interface-name interface-name> <msti msti-id> <vlan-id vlan-id>
Description
Display the configured or calculated interface-level spanning-tree protocol (can be either STP, RSTP, or MSTP) parameters. In brief mode, will not display interfaces that are administratively disabled or do not have a physical link.
Options
none | Display brief STP interface information. |
brief | detail | (Optional) Display the specified level of output. |
interface-name interface-name | (Optional) Name of an interface. |
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
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.
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). |
Edge delay while expiry count |
Number of times the edge delay timer expired on that interface. |
Rcvd info while expiry count |
Number of times the rcvd info timer expired on that interface. |
Sample Output
- show spanning-tree interface
- show spanning-tree interface (QFX Series)
- show spanning-tree interface (EX Series)
- show spanning-tree interface detail
- show spanning-tree interface detail (EX Series)
- show spanning-tree interface msti
- show spanning-tree interface vlan-id
- show spanning-tree interface (VSTP)
- show spanning-tree interface vlan-id (VSTP)
- show spanning-tree interface brief (EX Series)
- show spanning-tree interface ge-1/0/0 (EX Series)
show spanning-tree interface
user@host> show spanning-tree interface routing-instance vs1 detail Spanning 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 (QFX Series)
user@host> show spanning-tree interface routing-instance vs1 detail Spanning 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 (EX Series)
user@switch> show spanning-tree interface Spanning tree interface parameters for instance 0 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/0.0 128:513 128:513 8192.0019e2500340 1000 FWD DESG ge-0/0/2.0 128:515 128:515 8192.0019e2500340 1000 BLK DIS ge-0/0/4.0 128:517 128:517 8192.0019e2500340 1000 FWD DESG ge-0/0/23.0 128:536 128:536 8192.0019e2500340 1000 FWD DESG Spanning tree interface parameters for instance 1 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/0.0 128:513 128:513 8193.0019e2500340 1000 FWD DESG ge-0/0/2.0 128:515 128:515 8193.0019e2500340 1000 BLK DIS ge-0/0/4.0 128:517 128:517 8193.0019e2500340 1000 FWD DESG ge-0/0/23.0 128:536 128:536 8193.0019e2500340 1000 FWD DESG Spanning tree interface parameters for instance 2 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-0/0/0.0 128:513 128:1 8194.001b549fd000 1000 FWD ROOT ge-0/0/2.0 128:515 128:515 32770.0019e2500340 4000 BLK DIS ge-0/0/4.0 128:517 128:1 16386.001b54013080 1000 BLK ALT ge-0/0/23.0 128:536 128:536 32770.0019e2500340 1000 FWD DESG
show spanning-tree interface detail
user@host> show spanning-tree interface routing-instance vs1 detail Spanning 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 detail (EX Series)
user@switch> show spanning-tree interface detail Spanning tree interface parameters for instance 0 Interface name : ge-1/0/0.0 Port identifier : 128.625 Designated port ID : 128.625 Port cost : 20000 Port state : Blocking Designated bridge ID : 32768.00:19:e2:50:95:a0 Port role : Disabled Link type : Pt-Pt/EDGE Boundary port : NA Edge delay while expiry count : 0 Rcvd info while expiry count : 0 Interface name : ge-1/0/1.0 Port identifier : 128.626 Designated port ID : 128.626 Port cost : 20000 Port state : Blocking Designated bridge ID : 32768.00:19:e2:50:95:a0 Port role : Disabled Link type : Pt-Pt/NONEDGE Boundary port : NA Edge delay while expiry count : 0 Rvcd info while expiry count : 0 Interface name : ge-1/0/2.0 Port identifier : 128.627 Designated port ID : 128.627 Port cost : 20000 Port state : Blocking Designated bridge ID : 32768.00:19:e2:50:95:a0 Port role : Disabled Link type : Pt-Pt/NONEDGE Boundary port : NA Edge delay while expiry count : 0 Rvcd info while expiry count : 0 Interface name : ge-1/0/10.0 Port identifier : 128.635 Designated port ID : 128.635 Port cost : 20000 Port state : Blocking Designated bridge ID : 32768.00:19:e2:50:95:a0 Port role : Disabled Link type : Pt-Pt/NONEDGE Boundary port : NA Edge delay while expiry count : 0 Rvcd info while expiry count : 0 Interface name : ge-1/0/20.0 Port identifier : 128.645 Designated port ID : 128.645 Port cost : 20000 Port state : Blocking Designated bridge ID : 32768.00:19:e2:50:95:a0 Port role : Disabled Link type : Pt-Pt/NONEDGE Boundary port : NA Edge delay while expiry count : 0 Rvcd info while expiry count : 0 [output truncated]
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
user@host> show spanning-tree interface vlan-id 101 routing-instance vs1 detail Spanning 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 interface Spanning 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 DESG
show spanning-tree interface vlan-id (VSTP)
user@host> show spanning-tree interface vlan-id 10 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
show spanning-tree interface brief (EX Series)
user@switch> show spanning-tree interface brief Spanning tree interface parameters for instance 0 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-1/0/0.0 128:625 128:625 32768.0019e25095a0 20000 BLK DIS ge-1/0/1.0 128:626 128:626 32768.0019e25095a0 20000 BLK DIS ge-1/0/2.0 128:627 128:627 32768.0019e25095a0 20000 BLK DIS ge-1/0/10.0 128:635 128:635 32768.0019e25095a0 20000 BLK DIS ge-1/0/20.0 128:645 128:645 32768.0019e25095a0 20000 BLK DIS ge-1/0/30.0 128:655 128:655 32768.0019e25095a0 20000 BLK DIS
show spanning-tree interface ge-1/0/0 (EX Series)
user@switch> show spanning-tree interface ge-1/0/0 Interface Port ID Designated Designated Port State Role port ID bridge ID Cost ge-1/0/0.0 128:625 128:625 32768.0019e25095a0 20000 BLK DIS
Release Information
Command introduced in Junos OS Release 8.4.