show ethernet-switching table
语法(支持增强型第 2 层软件 (ELS) 的产品)
show ethernet-switching table
<brief | count | detail | extensive | summary> <address> <instance instance-name> <interface interface-name>isid isid
<logical-system logical-system-name>
<persistent-learning (interface interface-name | mac mac-address)>
<vlan-id (all-vlan | vlan-id)> <vlan-name (all | vlan-name)>
语法(不支持 ELS 的产品,MX 系列路由器除外)
show ethernet-switching table <brief | detail | extensive | summary> <interface interface-name> <management-vlan> <persistent-mac <interface interface-name>> <sort-by (name | tag)> <vlan vlan-name>
MX 系列路由器支持命令代替此命令 show bridge mac-table
。有关 MX 系列路由器的语法,请参阅 显示网桥 mac-table。
描述
显示以太网交换表。显示第 2 层 MAC 地址信息。
选项
对于支持 ELS 的产品:
none | 显示所有获知的第 2 层 MAC 地址信息。 |
brief | count | detail | extensive | summary | (可选)显示指定的输出级别。 |
address | (可选)显示指定的获知第 2 层 MAC 地址信息。 |
instance instance-name | (可选)显示指定路由实例的获知第 2 层 MAC 地址。 |
interface interface-name | (可选)显示指定接口的获知第 2 层 MAC 地址。 |
isid isid | (可选)显示指定 ISID 的获知第 2 层 MAC 地址。 |
logical-system logical-system-name | (可选)显示指定逻辑系统的以太网交换统计信息。 |
persistent-learning (interface interface-name | mac mac-address) | (可选)显示无论指定接口的设备重新启动和接口故障仍会保留的动态学习的 MAC 地址,或有关指定 MAC 地址的信息。 |
vlan-id (all-vlan | vlan-id) | (可选)显示所有 VLAN 或指定 VLAN 的获知第 2 层 MAC 地址。 |
vlan-name (all | vlan-name) | (可选)显示所有 VLAN 或指定 VLAN 的获知第 2 层 MAC 地址。 |
对于不支持 ELS 的产品:
none | (可选)显示有关以太网交换表的简要信息。 |
brief | detail | extensive | summary | (可选)显示指定的输出级别。 |
interface interface-name | (可选)显示特定接口的以太网交换表。 |
management-vlan | (可选)显示管理 VLAN 的以太网交换表。 |
persistent-mac <interface interface-name> | (可选)显示为所有接口或指定接口获知的永久 MAC 地址。您可以使用此命令查看要清除有意禁用的接口的条目。 |
sort-by (name | tag) | (可选)按 VLAN ID 或 VLAN 名称的升序显示 VLAN。 |
vlan vlan-name | (可选)显示特定 VLAN 的以太网交换表。 |
其他信息
启用第 2 层协议隧道后,隧道 MAC 地址 01:00:0c:cd:cd:d0 将安装在 MAC 表中。为接口上的第 2 层协议隧道配置 Cisco 发现协议 (CDP)、生成树协议 (STP) 或 VLAN 中继协议 (VTP) 时,相应的协议 MAC 地址将安装在 MAC 表中。
所需权限级别
视图
输出字段
对于支持 ELS 的产品:下表描述了支持 ELS 的产品上的命令的 show ethernet-switching table
输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
路由实例 |
路由实例的名称。 |
VLAN 名称 |
VLAN 的名称。 |
MAC 地址 |
在逻辑接口上获知的一个或多个 MAC 地址。 |
MAC 标志 |
每个接口的 MAC 地址学习属性的状态:
|
|
不支持此字段。 |
逻辑接口 |
逻辑接口的名称。 通过远程 VTEP 获知的 VTEP 逻辑接口的名称。 |
GBP 标签 |
分配的基于组的策略 (GBP) 从 1 到 65535。 |
SVLBNH/VENH Index |
注意:
此字段显示在支持 EVPN-VXLAN 网络中动态负载平衡的 QFX5XXX 交换机上。 与 EVPN-VXLAN 网络中多宿主远程设备的 MAC 地址关联的下一跃点索引号。当“逻辑接口”列显示 esinnnn 时,将显示此索引号。索引号可以是 SVLBNH、VENH 或远程虚拟隧道端点 (VTEP)。要获取有关 SVLBNH、VENH 和远程 VTEP 的更多信息,请参阅 显示以太网交换 vxlan-tunnel-end-point svlbnh。 |
Active source |
获知 MAC 地址的远程实体的 IP 地址或以太网段标识符 (ESI)。 |
MAC 计数 |
在特定路由实例或接口上获知的 MAC 地址数。 |
学习界面 |
获知 MAC 地址的逻辑接口的名称。 |
学习型 VLAN |
获知 MAC 地址的路由实例或 VLAN 的 VLAN ID。 |
第 2 层标志 |
指示 MAC 地址存在于各种列表中的调试标志。 |
时代 |
生成树协议纪元编号,用于识别何时获知 MAC 地址。用于调试。 |
序列号 |
分配给此 MAC 地址的序列号。用于调试。 |
学习面具 |
获知此 MAC 地址的数据包转发引擎的掩码。用于调试。 |
工控机生成 |
获知此 MAC 地址时逻辑接口的创建时间。用于调试。 |
对于不支持 ELS 的产品:下表列出了不支持 ELS 的产品上命令的 show ethernet-switching table
输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
Vlan |
VLAN 的名称。 |
所有级别 |
标记 |
VLAN ID 标记名称或编号。 |
广泛 |
MAC 或 MAC 地址 |
与 VLAN 关联的 MAC 地址。 |
所有级别 |
类型 |
MAC 地址的类型。值为:
|
除持久 mac 之外的所有级别 |
类型 |
MAC 地址的类型。值为:
|
持久-MAC |
年龄 |
条目老化并从以太网交换表中删除之前的剩余时间。 |
所有级别 |
接口 |
与获知的 MAC 地址或 所有成员 (泛洪条目)关联的接口。 |
所有级别 |
学 |
对于获知的条目,为将条目添加到以太网交换表的时间。 |
细节, 广泛 |
下一跃点索引 |
下一跃点索引号。 |
细节, 广泛 |
持久-MAC |
已安装 表示以太网交换表中的 MAC 地址, 已卸载 表示无法安装在表中或在接口关闭事件中卸载的 MAC 地址(当接口重新启动时将在表中重新安装)。 |
|
示例输出
- 显示以太网交换表(支持 ELS 的产品)
- 显示以太网交换表(支持 ELS 的产品)
- 显示以太网交换表简介(支持 ELS 的产品)
- 显示以太网交换表(QFX5120-32CD、QFX5120-48Y、QFX5130-32CD、QFX5130-48C、QFXC5130-48CM、QFX5700、EX4100 和 EX4400-48P 设备,阻止 (B) MAC 地址字段)
- 显示以太网交换表计数(支持 ELS 的产品)
- 显示以太网交换表广泛版(支持 ELS 的产品)
- 显示以太网交换表(EX 系列交换机,GBP 标签字段)
- 显示以太网交换表(QFX 系列交换机,SVLBNH/VENH 字段)
- 显示以太网交换表 持久 MAC 接口 ge-0/0/16.0(EX 系列交换机)
- 显示以太网交换表(不支持 ELS 的产品)
- 显示以太网交换表(不支持 ELS 的产品上的专用 VLAN)
- 显示以太网交换表详细信息(不支持 ELS 的产品)
- 显示以太网交换表广泛(不支持 ELS 的产品)
- 显示以太网交换表接口(不支持 ELS 的产品)
- 显示以太网交换表 persistent-mac(不支持 ELS 的产品)
- 显示以太网交换表 VLAN 名称 v100(支持 ELS 的产品)
显示以太网交换表(支持 ELS 的产品)
user@switch> show ethernet-switching table MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 2 entries, 2 learned Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface vlan1 b0:c6:9a:ca:3c:01 D - ae1.0 vlan1 b0:c6:9a:ca:3c:03 D - ae1.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 2 entries, 2 learned Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface vlan10 b0:c6:9a:ca:3c:01 D - ae1.0 vlan10 b0:c6:9a:ca:3c:03 D - ae1.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 2 entries, 2 learned Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface vlan2 b0:c6:9a:ca:3c:01 D - ae1.0 vlan2 b0:c6:9a:ca:3c:03 D - ae1.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 2 entries, 2 learned Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface vlan3 b0:c6:9a:ca:3c:01 D - ae1.0 vlan3 b0:c6:9a:ca:3c:03 D - ae1.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 2 entries, 2 learned Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface vlan4 b0:c6:9a:ca:3c:01 D - ae1.0 vlan4 b0:c6:9a:ca:3c:03 D - ae1.0
显示以太网交换表(支持 ELS 的产品)
user@host> show ethernet-switching table MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN101 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN102 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN103 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN104 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1101 00:1f:12:32:f5:c1 D - ae0.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1102 00:1f:12:32:f5:c1 D - ae0.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1103 00:1f:12:32:f5:c1 D - ae0.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1104 00:1f:12:32:f5:c1 D - ae0.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1105 00:1f:12:32:f5:c1 D - ae0.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1106 00:1f:12:32:f5:c1 D - ae0.0 [...output truncated...]
显示以太网交换表简介(支持 ELS 的产品)
user@host> show ethernet-switching table brief MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN101 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN102 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN103 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN104 88:e0:f3:bb:07:f0 D - ae20.0 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned SE - statistics enabled, NM - non configured MAC, R - remote PE MAC) Routing instance : default-switch Vlan MAC MAC Age Logical name address flags interface VLAN1101 00:1f:12:32:f5:c1 D - ae0.0 [...output truncated...]
显示以太网交换表(QFX5120-32CD、QFX5120-48Y、QFX5130-32CD、QFX5130-48C、QFXC5130-48CM、QFX5700、EX4100 和 EX4400-48P 设备,阻止 (B) MAC 地址字段)
user@host> show ethernet-switching table MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC B - Blocked) Ethernet switching table : 3 entries, 3 learned Routing instance : MACVRF_Blue Vlan MAC MAC Logical SVLBNH/ Active name address flags interface VENH Index source VLAN-10 aa:bb:cc:dd:ee:ff DLR ae6.1010 VLAN-10 gg:hh:ii:jj:kk:ll DLB ae6.1010 VLAN-10 mm:nn:oo:pp:qq:rr DRB vtep-58.32778 192.168.1.0
显示以太网交换表计数(支持 ELS 的产品)
user@host> show ethernet-switching table count 0 MAC address learned in routing instance default-switch VLAN VLAN1000 ae26.0:1000 1 MAC address learned in routing instance default-switch VLAN VLAN101 ae20.0:101 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count Static MAC count 101 1 0 1 MAC address learned in routing instance default-switch VLAN VLAN102 ae20.0:102 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count Static MAC count 102 1 0 1 MAC address learned in routing instance default-switch VLAN VLAN103 ae20.0:103 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count Static MAC count 103 1 0 1 MAC address learned in routing instance default-switch VLAN VLAN104 ae20.0:104 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count Static MAC count 104 1 0 0 MAC address learned in routing instance default-switch VLAN VLAN105 ae20.0:105 0 MAC address learned in routing instance default-switch VLAN VLAN106 ae20.0:106 0 MAC address learned in routing instance default-switch VLAN VLAN107 ae20.0:107 0 MAC address learned in routing instance default-switch VLAN VLAN108 ae20.0:108 0 MAC address learned in routing instance default-switch VLAN VLAN109 ae20.0:109 0 MAC address learned in routing instance default-switch VLAN VLAN110 ae20.0:110 1 MAC address learned in routing instance default-switch VLAN VLAN1101 ae0.0:1101 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count Static MAC count 1101 1 0 1 MAC address learned in routing instance default-switch VLAN VLAN1102 ae0.0:1102 MAC address count per learn VLAN within routing instance: Learn VLAN ID MAC count Static MAC count 1102 1 0 [...output truncated...]
显示以太网交换表广泛版(支持 ELS 的产品)
user@host> show ethernet-switching table extensive MAC address: 88:e0:f3:bb:07:f0 Routing instance: default-switch VLAN ID: 101 Learning interface: ae20.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 88:e0:f3:bb:07:f0 Routing instance: default-switch VLAN ID: 102 Learning interface: ae20.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 88:e0:f3:bb:07:f0 Routing instance: default-switch VLAN ID: 103 Learning interface: ae20.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 88:e0:f3:bb:07:f0 Routing instance: default-switch VLAN ID: 104 Learning interface: ae20.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 00:1f:12:32:f5:c1 Routing instance: default-switch VLAN ID: 1101 Learning interface: ae0.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 00:1f:12:32:f5:c1 Routing instance: default-switch VLAN ID: 1102 Learning interface: ae0.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 00:1f:12:32:f5:c1 Routing instance: default-switch VLAN ID: 1103 Learning interface: ae0.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008 MAC address: 00:1f:12:32:f5:c1 Routing instance: default-switch VLAN ID: 1104 Learning interface: ae0.0 Layer 2 flags: in_hash,in_ifd,in_ifl,in_vlan,in_rtt,kernel,in_ifbd Epoch: 0 Sequence number: 2 Learning mask: 0x00000008
显示以太网交换表(EX 系列交换机,GBP 标签字段)
user@switch> show ethernet-switching table MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 4 entries, 4 learned Routing instance : default-switch Vlan MAC MAC GBP Logical SVLBNH/ Active name address flags tag interface VENH Index source vlan1000 c8:e7:f0:4b:d1:00 DRP esi.1699 1698 05:00:00:fd:e9:00:00:03:e8:00 vlan1000 dc:38:e1:e0:30:c0 D 300 ae0.0 vlan1000 00:21:59:aa:77:f0 DR vtep.32769 18.18.18.18 vlan2000 00:00:5e:00:01:01 DR vtep.32769 18.18.18.18
显示以太网交换表(QFX 系列交换机,SVLBNH/VENH 字段)
user@switch> show ethernet-switching table MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Ethernet switching table : 16 entries, 16 learned Routing instance : default-switch Vlan MAC MAC Logical SVLBNH/ Active name address flags interface VENH Index source vlanBLACK 00:00:5e:00:53:01 DR esi.1773 1782 05:00:00:02:9a:00:00:00:68:00 vlanBLACK 00:00:5e:00:53:02 DR esi.1773 1782 05:00:00:02:9a:00:00:00:68:00 vlanBLACK 00:00:5e:00:53:80 D vtep.32772 10.0.0.1 vlanBLACK 00:00:5e:00:53:00 D vtep.32769 10.0.1.1 vlanBLUE 00:00:5e:00:53:01 DR esi.1772 1782 05:00:00:02:9a:00:00:00:66:00 vlanBLUE 00:00:5e:00:53:02 DR esi.1772 1782 05:00:00:02:9a:00:00:00:66:00 vlanBLUE 00:00:5e:00:53:80 D vtep.32772 10.0.0.1 vlanBLUE 00:00:5e:00:53:00 D vtep.32769 10.0.1.1 vlanGREEN 00:00:5e:00:53:01 DR esi.1774 1782 05:00:00:02:9a:00:00:00:67:00 vlanGREEN 00:00:5e:00:53:02 DR esi.1774 1782 05:00:00:02:9a:00:00:00:67:00 vlanGREEN 00:00:5e:00:53:80 D vtep.32772 10.0.0.1 vlanGREEN 00:00:5e:00:53:00 D vtep.32769 10.0.1.1 vlanRED 00:00:5e:00:53:01 DR esi.1771 1782 05:00:00:02:9a:00:00:00:65:00 vlanRED 00:00:5e:00:53:02 DR esi.1771 1782 05:00:00:02:9a:00:00:00:65:00 vlanRED 00:00:5e:00:53:80 D vtep.32772 10.0.0.1
显示以太网交换表 持久 MAC 接口 ge-0/0/16.0(EX 系列交换机)
VLAN MAC address Type Interface default 00:10:94:00:05:02 uninstalled ge-0/0/16.0 default 00:10:94:00:06:03 uninstalled ge-0/0/16.0 default 00:10:94:00:07:04 uninstalled ge-0/0/16.0
显示以太网交换表(不支持 ELS 的产品)
user@switch> show ethernet-switching table Ethernet-switching table: 57 entries, 17 learned VLAN MAC address Type Age Interfaces F2 * Flood - All-members F2 00:00:05:00:00:03 Learn 0 xe-0/0/44.0 F2 00:19:e2:50:7d:e0 Static - Router Linux * Flood - All-members Linux 00:19:e2:50:7d:e0 Static - Router Linux 00:30:48:90:54:89 Learn 0 xe-0/0/47.0 T1 * Flood - All-members T1 00:00:05:00:00:01 Learn 0 xe-0/0/46.0 T1 00:00:5e:00:01:00 Static - Router T1 00:19:e2:50:63:e0 Learn 0 xe-0/0/46.0 T1 00:19:e2:50:7d:e0 Static - Router T10 * Flood - All-members T10 00:00:5e:00:01:09 Static - Router T10 00:19:e2:50:63:e0 Learn 0 xe-0/0/46.0 T10 00:19:e2:50:7d:e0 Static - Router T111 * Flood - All-members T111 00:19:e2:50:63:e0 Learn 0 xe-0/0/15.0 T111 00:19:e2:50:7d:e0 Static - Router T111 00:19:e2:50:ac:00 Learn 0 xe-0/0/15.0 T2 * Flood - All-members T2 00:00:5e:00:01:01 Static - Router T2 00:19:e2:50:63:e0 Learn 0 xe-0/0/46.0 T2 00:19:e2:50:7d:e0 Static - Router T3 * Flood - All-members T3 00:00:5e:00:01:02 Static - Router T3 00:19:e2:50:63:e0 Learn 0 xe-0/0/46.0 T3 00:19:e2:50:7d:e0 Static - Router T4 * Flood - All-members T4 00:00:5e:00:01:03 Static - Router T4 00:19:e2:50:63:e0 Learn 0 xe-0/0/46.0 [output truncated]
显示以太网交换表(不支持 ELS 的产品上的专用 VLAN)
user@switch> show ethernet-switching table Ethernet-switching table: 10 entries, 3 learned VLAN MAC address Type Age Interfaces pvlan * Flood - All-members pvlan 00:10:94:00:00:02 Replicated - xe-0/0/28.0 pvlan 00:10:94:00:00:35 Replicated - xe-0/0/46.0 pvlan 00:10:94:00:00:46 Replicated - xe-0/0/4.0 c2 * Flood - All-members c2 00:10:94:00:00:02 Learn 0 xe-0/0/28.0 c1 * Flood - All-members c1 00:10:94:00:00:46 Learn 0 xe-0/0/4.0 __pvlan_pvlan_xe-0/0/46.0__ * Flood - All-members __pvlan_pvlan_xe-0/0/46.0__ 00:10:94:00:00:35 Learn 0 xe-0/0/46.0
显示以太网交换表详细信息(不支持 ELS 的产品)
user@switch> show ethernet-switching table detail Ethernet-switching table: 57 entries, 17 learned F2, * Interface(s): xe-0/0/44.0 Type: Flood Nexthop index: 0 F2, 00:00:05:00:00:03 Interface(s): xe-0/0/44.0 Type: Learn, Age: 0, Learned: 2:03:09 Nexthop index: 0 F2, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 Linux, * Interface(s): xe-0/0/47.0 Type: Flood Nexthop index: 0 Linux, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 Linux, 00:30:48:90:54:89 Interface(s): xe-0/0/47.0 Type: Learn, Age: 0, Learned: 2:03:08 Nexthop index: 0 T1, * Interface(s): xe-0/0/46.0 Type: Flood Nexthop index: 0 T1, 00:00:05:00:00:01 Interface(s): xe-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 Nexthop index: 0 T1, 00:00:5e:00:01:00 Interface(s): Router Type: Static Nexthop index: 0 T1, 00:19:e2:50:63:e0 Interface(s): xe-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 Nexthop index: 0 T1, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 T10, * Interface(s): xe-0/0/46.0 Type: Flood Nexthop index: 0 T10, 00:00:5e:00:01:09 Interface(s): Router Type: Static Nexthop index: 0 T10, 00:19:e2:50:63:e0 Interface(s): xe-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:08 Nexthop index: 0 T10, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 T111, * Interface(s): xe-0/0/15.0 Type: Flood Nexthop index: 0 [output truncated]
显示以太网交换表广泛(不支持 ELS 的产品)
user@switch> show ethernet-switching table extensive Ethernet-switching table: 57 entries, 17 learned F2, * Interface(s): xe-0/0/44.0 Type: Flood Nexthop index: 0 F2, 00:00:05:00:00:03 Interface(s): xe-0/0/44.0 Type: Learn, Age: 0, Learned: 2:03:09 Nexthop index: 0 F2, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 Linux, * Interface(s): xe-0/0/47.0 Type: Flood Nexthop index: 0 Linux, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 Linux, 00:30:48:90:54:89 Interface(s): xe-0/0/47.0 Type: Learn, Age: 0, Learned: 2:03:08 Nexthop index: 0 T1, * Interface(s): xe-0/0/46.0 Type: Flood Nexthop index: 0 T1, 00:00:05:00:00:01 Interface(s): xe-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 Nexthop index: 0 T1, 00:00:5e:00:01:00 Interface(s): Router Type: Static Nexthop index: 0 T1, 00:19:e2:50:63:e0 Interface(s): xe-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 Nexthop index: 0 T1, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 T10, * Interface(s): xe-0/0/46.0 Type: Flood Nexthop index: 0 T10, 00:00:5e:00:01:09 Interface(s): Router Type: Static Nexthop index: 0 T10, 00:19:e2:50:63:e0 Interface(s): xe-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:08 Nexthop index: 0 T10, 00:19:e2:50:7d:e0 Interface(s): Router Type: Static Nexthop index: 0 T111, * Interface(s): xe-0/0/15.0 Type: Flood Nexthop index: 0 [output truncated]
显示以太网交换表接口(不支持 ELS 的产品)
user@switch> show ethernet-switching table interface xe-0/0/1 Ethernet-switching table: 1 unicast entries VLAN MAC address Type Age Interfaces V1 * Flood - All-members V1 00:00:05:00:00:05 Learn 0 xe-0/0/1.0
显示以太网交换表 persistent-mac(不支持 ELS 的产品)
user@switch> show ethernet-switching table persistent-mac VLAN MAC address Type Interface default 00:10:94:00:00:02 installed ge-0/0/42.0 default 00:10:94:00:00:03 installed ge-0/0/42.0 default 00:10:94:00:00:04 installed ge-0/0/42.0 default 00:10:94:00:00:05 installed ge-0/0/42.0 default 00:10:94:00:00:06 installed ge-0/0/42.0 default 00:10:94:00:05:02 uninstalled ge-0/0/16.0 default 00:10:94:00:06:03 uninstalled ge-0/0/16.0 default 00:10:94:00:07:04 uninstalled ge-0/0/16.0
显示以太网交换表 VLAN 名称 v100(支持 ELS 的产品)
user@host> show ethernet-switching table vlan-name v100 MAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC) Pseudo mac Ethernet switching table : 11 entries, 11 learned Routing instance : default-switch Vlan MAC MAC Logical Active name address flags interface source v100 00:00:00:00:02:80 S,NM vtep.1074102274 112.1.1.1 v100 00:00:00:00:03:80 S,NM vtep.1074102275 115.1.1.1 v100 00:00:00:00:04:80 S,NM vtep.1074102276 116.1.1.1 v100 00:00:00:00:05:80 S,NM vtep.1074102277 114.1.1.1 v100 00:00:00:00:06:80 S,NM vtep.1074102278 101.1.1.1 v100 00:00:00:00:07:80 S,NM vtep.1074102279 102.1.1.1 v100 00:00:00:00:08:80 S,NM vtep.1074102280 103.1.1.1 v100 00:00:00:00:09:80 S,NM vtep.1074102281 104.1.1.1 v100 00:00:00:00:0a:80 S,NM vtep.1074102282 113.1.1.1
发布信息
适用于 EX 系列交换机的 Junos OS 9.0 版中引入的命令。
适用于 SRX 系列的 Junos OS 9.5 版中引入的命令。
选项 摘要、 管理 VLAN 和适用于 EX 系列交换机的 Junos OS 9.6 版中引入的 VLAN vlan-name 。
适用于 EX 系列交换机的 Junos OS 10.1 版中引入的选项 排序依据 和字段名称 标记 。
在适用于 QFX 系列的 Junos OS 11.1 版中引入的命令。
适用于 QFX 系列的 Junos OS 12.1 版中引入的专用 VLAN 的输出。
在适用于 EX 系列交换机的 Junos OS 11.4 版中引入的选件 persistent-mac 。
在 Junos OS 12.3R2 版中引入的命令。
适用于 EX 系列交换机的 Junos OS 12.3R2 版中引入的 ELS 命令。
选项 logical-system
、 , persistent-learning
并在 summary
Junos OS 版本 13.2X50-D10 (ELS) 中引入。
用于 QFX 系列交换机的 Junos OS 20.3R1 版中引入的共享 VXLAN 负载平衡下一跃点 (SVLBNH) 和 VXLAN 封装下一跃点 (VENH) 的输出。
适用于 QFX 系列交换机的 Junos OS 20.3R1 版中引入的伪 VTEP 逻辑接口的输出。
GBP Tag
Junos OS 22.4R1 版中为受支持的 QFX5120、EX4100、EX4400 和 EX4650 系列交换机引入了选项。