show ethernet-switching interfaces
Syntax
show ethernet-switching interfaces <brief | detail | summary> <interface interface-name>
Description
显示有关交换以太网接口的信息。
Options
无 | (可选)显示以太网交换接口的简要信息。 |
简要|详细|总结 | (可选)显示指定的输出级别。 |
接 口接口名称 | (可选)显示特定接口的以太网交换信息。 |
Required Privilege Level
视图
Output Fields
对于 QFX 系列、QFabric、NFX 系列、EX4600 和 OCX1100:
表 1 列出了 QFX 系列、QFabric、NFX 系列、EX4600 和 OCX1100 上的命令的输出字段 show ethernet-switching interfaces
。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
Interface |
交换接口的名称。 |
所有级别 |
State |
接口状态。值为 up 或 down。 |
无, briefdetailsummary |
VLAN members |
VLAN 名称。 |
无, briefdetailsummary |
Blocking |
接口的转发状态:
|
无, briefdetailsummary |
Index |
Junos OS 软件内部的 VLAN 索引。 |
detail |
untagged | tagged |
指定接口是转发 IEEE802.1Q 标记流量还是未标记流量。 |
detail |
EX 系列的输出字段:
表 2 列出了 EX 系列交换机上命令的输出字段 show ethernet-switching interfaces
。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
Interface |
交换接口的名称。 |
无, briefdetailsummary |
Index |
Junos OS 内部的 VLAN 索引。 |
detail |
State |
接口状态。值为 up 和 down。 |
无, briefdetail |
Port mode |
该 access 模式是默认端口模式,与单个 VLAN 配合使用。端口模式也可以 trunk是,它接受来自其他交换机上多个 VLAN 的标记数据包。第三个端口模式值是 tagged-access,它接受来自接入设备的标记数据包。 |
detail |
Reflective Relay Status |
反射中继允许数据包对上游和下游流量使用相同的接口。配置反射中继时,始终显示 enabled 状态。未配置反射中继时,此条目不会出现在命令输出中。 |
detail |
Ether type for the interface |
以太类型是以太网帧中的两个八位字段,用于指示哪些协议封装在传入以太网数据包的有效负载中。802.1Q 数据包和 Q-in-Q 数据包都使用此字段。此特定字段显示的输出指示接口的以太类型,用于匹配传入 802.1Q 数据包和 Q-in-Q 数据包的以太类型。该接口的传出 802.1Q 和 Q-in-Q 数据包中也添加了指示的以太类型字段。 |
detail |
VLAN membership |
属于此接口的 VLAN 名称。 |
无, briefdetail |
Tag |
802.1Q 标记的数量。 |
无, briefdetail |
Tagging |
指定接口是转发 802.1Q tagged 还是 untagged 信息流。 |
无, briefdetail |
Blocking |
接口的转发状态:
|
无, briefdetail |
Number of MACs learned on IFL |
通过此接口学习的 MAC 地址数。 |
detail |
mapping |
配置映射时,状态是以下 C-VLAN 到 S-VLAN 映射类型之一:
未配置映射时,此条目不会出现在命令输出中。 |
detail |
Sample Output for QFX Series Switches, QFabric, NFX Series, EX4600 and OCX1100
- show ethernet-switching interfaces
- show ethernet-switching interfaces summary
- show ethernet-switching interfaces brief
- show ethernet-switching interfaces detail
- show ethernet-switching interfaces interface-name
show ethernet-switching interfaces
user@switch> show ethernet-switching interfaces Interface State VLAN members Blocking xe-0/0/0.0 up T1122 unblocked xe-0/0/1.0 down default — MAC limit exceeded xe-0/0/2.0 down default — MAC move limit exceeded xe-0/0/3.0 down default — Storm control in effect xe-0/0/4.0 down default unblocked xe-0/0/5.0 down default unblocked xe-0/0/6.0 down default unblocked xe-0/0/7.0 down default unblocked xe-0/0/8.0 down default unblocked xe-0/0/9.0 up T111 unblocked xe-0/0/10.0 down default unblocked xe-0/0/11.0 down default unblocked xe-0/0/12.0 down default unblocked xe-0/0/13.0 down default unblocked xe-0/0/14.0 down default unblocked xe-0/0/15.0 down default unblocked xe-0/0/16.0 down default unblocked xe-0/0/17.0 down default unblocked xe-0/0/18.0 down default unblocked xe-0/0/19.0 up T111 unblocked xe-0/1/0.0 down default unblocked xe-0/1/1.0 down default unblocked xe-0/1/2.0 down default unblocked xe-0/1/3.0 down default unblocked
show ethernet-switching interfaces summary
user@switch> show ethernet-switching interfaces summary xe-0/0/0.0 xe-0/0/1.0 xe-0/0/2.0 xe-0/0/3.0 xe-0/0/8.0 xe-0/0/10.0 xe-0/0/11.0
show ethernet-switching interfaces brief
user@switch> show ethernet-switching interfaces brief Interface State VLAN members Blocking xe-0/0/0.0 down default unblocked xe-0/0/1.0 down employee-vlan unblocked xe-0/0/2.0 down employee-vlan unblocked xe-0/0/3.0 down employee-vlan unblocked xe-0/0/8.0 down employee-vlan unblocked xe-0/0/10.0 down default unblocked xe-0/0/11.0 down employee-vlan unblocked
show ethernet-switching interfaces detail
user@switch> show ethernet-switching interfaces detail Interface: xe-0/0/0.0 Index: 65 State: down VLANs: default untagged unblocked Interface: xe-0/0/1.0 Index: 66 State: down VLANs: employee-vlan untagged unblocked Interface: xe-0/0/2.0 Index: 67 State: down VLANs: employee-vlan untagged unblocked Interface: xe-0/0/3.0 Index: 68 State: down VLANs: employee-vlan untagged unblocked Interface: xe-0/0/8.0 Index: 69 State: down VLANs: employee-vlan untagged unblocked Interface: xe-0/0/10.0 Index: 70 State: down VLANs: default untagged unblocked Interface: xe-0/0/11.0 Index: 71 State: down VLANs: employee-vlan tagged unblocked
show ethernet-switching interfaces interface-name
user@switch> show ethernet-switching interfaces xe-0/0/0.0 Interface State VLAN members Blocking xe-0/0/0.0 down default unblocked
Sample Output for EX Series Switches
- show ethernet-switching interfaces
- show ethernet-switching interfaces ge-0/0/15 brief
- show ethernet-switching interfaces ge-0/0/2 detail (Blocked by RTG rtggroup)
- show ethernet-switching interfaces ge-0/0/15 detail (Blocked by STP)
- show ethernet-switching interfaces ge-0/0/17 detail (Disabled by bpdu-control)
- show ethernet-switching interfaces detail (C-VLAN to S-VLAN Mapping)
- show ethernet-switching interfaces detail (Reflective Relay Is Configured)
show ethernet-switching interfaces
user@switch> show ethernet-switching interfaces Interface State VLAN members Tag Tagging Blocking ae0.0 up default untagged unblocked ge-0/0/2.0 up vlan300 300 untagged blocked by RTG (rtggroup) ge-0/0/3.0 up default blocked by STP ge-0/0/4.0 down default MAC limit exceeded ge-0/0/5.0 down default MAC move limit exceeded ge-0/0/6.0 down default Storm control in effect ge-0/0/7.0 down default unblocked ge-0/0/13.0 up default untagged unblocked ge-0/0/14.0 up vlan100 100 tagged unblocked vlan200 200 tagged unblocked ge-0/0/15.0 up vlan100 100 tagged blocked by STP vlan200 200 tagged blocked by STP ge-0/0/16.0 down default untagged unblocked ge-0/0/17.0 down vlan100 100 tagged Disabled by bpdu-control vlan200 200 tagged Disabled by bpdu-control
show ethernet-switching interfaces ge-0/0/15 brief
user@switch> show ethernet-switching interfaces ge-0/0/15 brief Interface State VLAN members Tag Tagging Blocking ge-0/0/15.0 up vlan100 100 tagged blocked by STP vlan200 200 tagged blocked by STP
show ethernet-switching interfaces ge-0/0/2 detail (Blocked by RTG rtggroup)
user@switch> show ethernet-switching interfaces ge-0/0/2 detail Interface: ge-0/0/2.0, Index: 65, State: up, Port mode: Access Ether type for the interface: 0X8100 VLAN membership: vlan300, 802.1Q Tag: 300, untagged, msti-id: 0, blocked by RTG(rtggroup) Number of MACs learned on IFL: 0
show ethernet-switching interfaces ge-0/0/15 detail (Blocked by STP)
user@switch> show ethernet-switching interfaces ge-0/0/15 detail Interface: ge-0/0/15.0, Index: 70, State: up, Port mode: Trunk Ether type for the interface: 0X8100 VLAN membership: vlan100, 802.1Q Tag: 100, tagged, msti-id: 0, blocked by STP vlan200, 802.1Q Tag: 200, tagged, msti-id: 0, blocked by STP Number of MACs learned on IFL: 0
show ethernet-switching interfaces ge-0/0/17 detail (Disabled by bpdu-control)
user@switch> show ethernet-switching interfaces ge-0/0/17 detail Interface: ge-0/0/17.0, Index: 71, State: down, Port mode: Trunk Ether type for the interface: 0X8100 VLAN membership: vlan100, 802.1Q Tag: 100, tagged, msti-id: 1, Disabled by bpdu-control vlan200, 802.1Q Tag: 200, tagged, msti-id: 2, Disabled by bpdu-control Number of MACs learned on IFL: 0
show ethernet-switching interfaces detail (C-VLAN to S-VLAN Mapping)
user@switch>show ethernet-switching interfaces ge-0/0/6.0 detail Interface: ge-0/0/6.0, Index: 73, State: up, Port mode: Access Ether type for the interface: 0X8100 VLAN membership: map, 802.1Q Tag: 134, Mapped Tag: native, push, dot1q-tunneled, unblocked map, 802.1Q Tag: 134, Mapped Tag: 20, push, dot1q-tunneled, unblocked
show ethernet-switching interfaces detail (Reflective Relay Is Configured)
user@switch1> show ethernet-switching interfaces ge-7/0/2 detail Interface: ge-7/0/2, Index: 66, State: down, Port mode: Tagged-access Ether type for the interface: 0X8100 Reflective Relay Status: Enabled Ether type for the interface: 0x8100 VLAN membership: VLAN_Purple VLAN_Orange VLAN_Blue, 802.1Q Tag: 450, tagged, unblocked Number of MACs learned on IFL: 0
Release Information
在 Junos OS 9.0 版中引入的命令。
在 EX 系列交换机的 Junos OS 9.6 版中,进行了以下更新:
Blocking 字段输出已更新。
默认视图已更新,以包含有关 802.1Q 标记的信息。
该 detail 视图已更新,以包含有关 VLAN 映射的信息。
在 EX 系列交换机的 Junos OS 11.1 版中 detail ,已更新视图以包含反射中继信息。