show spanning-tree interface
语法
show spanning-tree interface <brief | detail> <msti msti-id> <routing-instance routing-instance-name> <vlan-id vlan-id>
语法(EX 系列交换机和 QFX 系列交换机)
show spanning-tree interface <brief | detail> <msti msti-id> <vlan-id vlan-id>
语法(EX 系列交换机)
show spanning-tree interface <brief | detail> <interface-name interface-name> <msti msti-id> <vlan-id vlan-id>
描述
显示已配置或计算的接口级生成树协议(可以是 STP、RSTP 或 MSTP)参数。 在简短 模式下,不会显示管理性禁用或没有物理链路的接口。
选项
none | 显示简短的 STP 接口信息。 |
brief | detail | (可选)显示指定的输出级别。 |
interface-name interface-name | (可选)接口的名称。 |
msti msti-id | (可选)显示指定 MST 实例的 STP 接口信息。 |
routing-instance routing-instance-name | (可选)显示指定路由实例的 STP 接口信息。 |
vlan-id vlan-id | (可选)显示指定 VLAN 的 STP 接口信息。 |
所需权限级别
视图
输出字段
表 1 列出了命令 show spanning-tree interface
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
接口名称 |
配置为参与 STP、RSTP、VSTP 或 MSTP 实例的接口。 |
端口 ID |
配置为参与 MSTP 或 VSTP 实例的逻辑接口标识符。 |
指定端口 ID |
此接口连接到的 LAN 分段的指定端口的端口 ID。 |
指定网桥 ID |
此接口连接到的 LAN 分段的指定网桥的网桥 ID。 |
端口成本 |
接口的配置成本。 |
港口国 |
STP 端口状态:转发 (FWD)、阻止 (BLK)、侦听、学习或禁用。 |
端口角色 |
MSTP、VSTP 或 RSTP 端口角色:指定 (DESG)、备份 (BKUP)、备用 (ALT)、(ROOT) 或根阻止(Root-Prev)。 |
链路类型 |
MSTP、VSTP 或 RSTP 链路类型。共享或点对点 (pt-pt) 和边缘或非边缘。 |
互生 |
将接口标识为 MSTP、VSTP 或 RSTP 备用根端口(是)或非备用根端口(否)。 |
边界端口 |
将接口标识为 MSTP 区域边界端口(是)或非边界端口(否)。 |
到期计数时的边缘延迟 |
该接口上的边沿延迟计时器过期的次数。 |
到期计数时的 RCVD 信息 |
该接口上的 rcvd 信息计时器过期的次数。 |
示例输出
- 显示生成树接口
- show 生成树接口(QFX 系列)
- show 生成树接口(EX 系列)
- 显示生成树接口详细信息
- 显示生成树接口详细信息(EX 系列)
- 显示生成树接口 MSTI
- 显示生成树接口 VLAN ID
- 显示生成树接口 (VSTP)
- 显示生成树接口 VLAN ID (VSTP)
- show 生成树接口简介(EX 系列)
- show 生成树接口 ge-1/0/0(EX 系列)
显示生成树接口
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 生成树接口(QFX 系列)
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 生成树接口(EX 系列)
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
显示生成树接口详细信息
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 ...
显示生成树接口详细信息(EX 系列)
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]
显示生成树接口 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
显示生成树接口 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
显示生成树接口 (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
显示生成树接口 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 生成树接口简介(EX 系列)
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 生成树接口 ge-1/0/0(EX 系列)
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
发布信息
Junos OS 8.4 版中引入的命令。