Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

show spanning-tree interface

Syntax

show spanning-tree interface<brief | detail><interface-name interface-name><msti msti-id><vlan-id vlan-id>

Release Information

Command introduced in Junos OS Release 9.0 for EX Series switches.

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

(Optional) 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 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-id vlan-id

(Optional) For MSTP interfaces, display interface information for the specified VLAN. Specify a value from 0 through 4094.

Required Privilege Level

view

List of Sample Output

show spanning-tree interface
show spanning-tree interface brief
show spanning-tree interface detail
show spanning-tree interface ge-1/0/0

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, or MSTP instance.

Port ID

Logical interface identifier configured to participate in the MSTP instance.

Designated port ID

Port ID of the designated port for the LAN segment this interface is attached to.

Designated bridge ID

Bridge ID of the designated bridge for the LAN segment this interface is attached to.

Port Cost

Configured cost for the interface.

Port State

STP port state. Forwarding (FWD), blocking (BLK), listening, learning, or disabled.

Port Role

MSTP or RSTP port role. Designated (DESG), backup (BKUP), alternate (ALT), (ROOT), or Root Prevented (Root-Prev).

Link type

MSTP or RSTP link type. Shared or point-to-point (pt-pt) and edge or non edge.

Alternate

Identifies the interface as an MSTP or RSTP alternate root port (yes) or non-alternate root port (no).

Boundary Port

Identifies the interface as an MSTP regional boundary port (yes) or non-boundary 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

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 brief

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 detail

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 ge-1/0/0

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  

Published: 2015-04-08