显示以太网交换表
语法(QFX 系列、QFabric、NFX 系列和 EX4600)
show ethernet-switching table <brief | detail | extensive | summary> <interface interface-name> <management-vlan> <sort-by (name | tag)> <vlan vlan-name>
语法(EX 系列)
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>
语法(EX 系列、MX 系列和 QFX 系列)
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)>
<address> <vlan-id (all-vlan | vlan-id)> <vlan-name (all | vlan-name)>
语法(SRX 系列)
show ethernet-switching table (brief |detail |extensive) interface interface-name
说明
显示以太网交换表。
(MX 系列路由器,EX 系列交换机)显示2层 MAC 地址信息。
选项
对于 QFX 系列、QFabric、NFX 系列和 EX4600:
none | 必显示有关以太网交换表的简要信息。 |
简述 |详细信息 |广泛的 |摘要 | 必显示指定的输出级别。 |
接口 接口名称 | 必显示特定接口的以太网交换表。 |
管理-vlan | 必显示管理 VLAN 的以太网交换表。 |
永久 mac <接口名称> | 必显示为所有接口或指定接口所识别的永久 MAC 地址。您可以使用此命令查看要为有意禁用的接口清除的条目。 |
分类(|标记) | 必按 VLAN Id 或 VLAN 名称的升序顺序显示 Vlan。 |
vlan vlan-name | 必显示特定 VLAN 的以太网交换表。 |
对于 EX 系列,MX 系列和 QFX 系列:
none | 显示所有已知的第2层 MAC 地址信息。 |
简述 |计数 |详细信息 |广泛的 |摘要 | 必显示指定的输出级别。 |
address | 必显示指定的已知第2层 MAC 地址信息。 |
实例 实例名称 | 必显示已知的第2层 MAC 地址以用于指定的路由实例。 |
接口 接口名称 | 必显示已知的第2层 MAC 地址以用于指定接口。 |
isid isid | 必显示已知的第2层 MAC 地址以用于指定的 ISID。 |
逻辑系统 逻辑系统-名称 | 必显示指定逻辑系统的以太网交换统计信息。 |
永久学习(接口名称|mac-address) | 必显示动态获知的 MAC 地址,无论指定接口的设备重新启动和接口故障,它们都将保留,或者有关指定 MAC 地址的信息。 |
vlan id(全 vlan | vlan ID) | 必显示已知的2层 MAC 地址,用于所有 Vlan 或指定的 VLAN。 |
vlan-name(所有| vlan-name) | 必显示已知的2层 MAC 地址,用于所有 Vlan 或指定的 VLAN。 |
SRX 系列:
none
—(可选)显示有关以太网交换表的简要信息。brief
|detail
|extensive
—(可选)显示指定的输出级别。interface-name
—(可选)显示特定接口的以太网交换表。
其他信息
启用第2层协议通道时,隧道 MAC 地址01:00:0c: cd: cd: d0 安装在 MAC 表中。当在接口上为第2层协议通道配置 Cisco 发现协议(CDP)、生成树协议(STP)或 VLAN 中继协议(VTP)时,相应的协议 MAC 地址将安装在 MAC 表中。
所需的权限级别
观看
输出字段
对于 QFX 系列、QFabric、NFX 系列和 EX4600:
下表列出了 QFX 系列、QFabric、NFX show ethernet-switching table
系列和 EX4600 上的命令的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
VLAN |
VLAN 的名称。 |
所有级别 |
MAC address |
与 VLAN 关联 MAC 地址。 |
所有级别 |
Type |
MAC 地址类型:
|
所有级别 |
Age |
进入老化并从以太网交换表中取出之前剩余的时间。 |
所有级别 |
Interfaces |
与学习的 MAC 地址或选项(泛滥条目 All-members )关联的接口。 |
所有级别 |
Learned |
对于学习的条目,向以太网交换表中添加条目的时间。 |
detail、 extensive |
对于 EX 系列交换机:
下表列出了 EX 系列交换机show ethernet-switching table
命令的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
---|---|---|
VLAN |
VLAN 的名称。 |
所有级别 |
Tag |
VLAN ID 标记名称或编号。 |
extensive |
MAC 或者 MAC address |
与 VLAN 关联的 MAC 地址。 |
所有级别 |
Type |
MAC 地址的类型。值包括:
|
所有级别,除persistent-mac |
Type |
MAC 地址的类型。值包括:
|
persistent-mac |
Age |
进入老化并从以太网交换表中移除之前剩余的时间。 |
所有级别 |
Interfaces |
与学习的 MAC 地址或(泛滥条目 All-members )关联的接口。 |
所有级别 |
Learned |
对于学习的条目,将条目添加到以太网交换表中的时间。 |
detail、 extensive |
Nexthop index |
下一跳跃的索引号。 |
detail、 extensive |
persistent-mac |
installed 指示以太网交换表中的 MAC 地址,并指示无法安装在表中或在接口关闭事件中卸载的 MAC 地址(接口恢复后将重新安装到表中 uninstalled )。 |
对于 EX 系列,MX 系列和 QFX 系列:
下表介绍 EX 系列、MX 系列show ethernet-switching table
和 QFX 系列上的命令的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
Routing instance |
路由实例的名称。 |
VLAN name |
VLAN 的名称。 |
MAC address |
在逻辑接口上学习 MAC 地址或地址。 |
MAC flags |
每个接口 MAC 地址学习属性的状态:
|
|
不支持此字段。 |
Logical interface |
逻辑接口的名称。 通过远程交换机VTEP逻辑接口的名称VTEP。 |
SVLBNH/VENH Index |
注:
在支持 EVPN-VXLAN 动态负载平衡的 QFX5XXX 交换机上将显示此字段。 与 EVPN-MAC 地址多主机远程设备地址相关联的下一跃点VXLAN编号。当 Logical Interface 列显示 esi 时,将显示此索引号。nnnn。索引号可以是 SVLBNH、VENH 或远程虚拟隧道端点(VTEP)。要获取有关 SVLBNHs、VENHs 和远程 TEPS 的信息,请参阅 show ethernet-switching vxlan-tunnel-end-point svlbnh。 |
Active source |
远程实体的 IP 地址或以太网分段标识符 (ESI),学习MAC 地址信息。 |
MAC count |
在特定路由实例或接口上了解的 MAC 地址数量。 |
Learning interface |
在其上获知 MAC 地址的逻辑接口的名称。 |
Learning VLAN |
在其中了解 MAC 地址的路由实例或 VLAN 的 VLAN ID。 |
Layer 2 flags |
调试标志,表明 MAC 地址存在于各种列表中。 |
Epoch |
生成-protocolepoch 编号,用于识别所学到的 MAC 地址。用于调试。 |
Sequence number |
分配给此 MAC 地址的序列号。用于调试。 |
Learning mask |
在其中了解此 MAC 地址的数据包转发引擎的掩码。用于调试。 |
IPC generation |
了解此 MAC 地址时逻辑接口的创建时间。用于调试。 |
SRX 系列:
表 4列出了show ethernet-switching table
命令的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
|
VLAN 的名称。 |
|
与 VLAN 关联的 MAC 地址。 |
|
MAC 地址的类型。值包括:
|
|
进入老化并从以太网交换表中移除之前剩余的时间。 |
|
与已知 MAC 地址或所有成员(洪水输入)相关联的接口。 |
|
对于学习的条目,将条目添加到以太网交换表中的时间。 |
示例输出
- 显示以太网交换表(QFX 系列、QFabric、NFX 系列和 EX460 增强型2层软件)
- 显示以太网交换表(QFX 系列交换机、SVLBNH/VENH 字段)
- 显示以太网交换表 (QFX 系列、QFabric、NFX 系列 和 EX460)(QFX5100、QFX5110、QFX5120、QFX5200、QFX5210、QFX10002、QFX10002-60C 和 QFX10016)
- 显示以太网交换表(QFX 系列、QFabric、NFX 系列和 EX460 上的专用 Vlan)
- 显示以太网交换表简述(QFX 系列、QFabric、NFX 系列和 EX460)
- 显示以太网交换表详细信息(QFX 系列、QFabric、NFX 系列和 EX460)
- 全面显示以太网交换表(QFX 系列、QFabric、NFX 系列和 EX460)
- 显示以太网交换表接口(QFX 系列、QFabric、NFX 系列和 EX460)
- 显示以太网交换表(EX 系列交换机)
- 显示以太网交换表简述(EX 系列交换机)
- 显示以太网交换表详细信息(EX 系列交换机)
- 全面显示以太网交换表(EX 系列交换机)
- 显示以太网交换表永久性 mac (EX 系列交换机)
- 显示以太网交换表持续 mac 接口 ge-0/0/16.0 (EX 系列交换机)
- 显示以太网交换表(EX 系列、MX 系列和 QFX 系列)
- 显示以太网交换表简述
- 显示以太网交换表计数
- 全面显示以太网交换表
显示以太网交换表(QFX 系列、QFabric、NFX 系列和 EX460 增强型2层软件)
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
显示以太网交换表(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
显示以太网交换表 (QFX 系列、QFabric、NFX 系列 和 EX460)(QFX5100、QFX5110、QFX5120、QFX5200、QFX5210、QFX10002、QFX10002-60C 和 QFX10016)
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]
显示以太网交换表(QFX 系列、QFabric、NFX 系列和 EX460 上的专用 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
显示以太网交换表简述(QFX 系列、QFabric、NFX 系列和 EX460)
user@switch> show ethernet-switching table brief 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]
显示以太网交换表详细信息(QFX 系列、QFabric、NFX 系列和 EX460)
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]
全面显示以太网交换表(QFX 系列、QFabric、NFX 系列和 EX460)
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]
显示以太网交换表接口(QFX 系列、QFabric、NFX 系列和 EX460)
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
显示以太网交换表(EX 系列交换机)
user@switch> show ethernet-switching table Ethernet-switching table: 57 entries, 15 learned, 2 persistent VLAN MAC address Type Age Interfaces F2 * Flood - All-members F2 00:00:05:00:00:03 Learn 0 ge-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 ge-0/0/47.0 T1 * Flood - All-members T1 00:00:05:00:00:01 Persistent 0 ge-0/0/46.0 T1 00:00:5e:00:01:00 Static - Router T1 00:19:e2:50:63:e0 Persistent 0 ge-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 ge-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 ge-0/0/15.0 T111 00:19:e2:50:7d:e0 Static - Router T111 00:19:e2:50:ac:00 Learn 0 ge-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 ge-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 ge-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 ge-0/0/46.0 [output truncated]
显示以太网交换表简述(EX 系列交换机)
user@switch> show ethernet-switching table brief Ethernet-switching table: 57 entries, 15 learned, 2 persistent entries VLAN MAC address Type Age Interfaces F2 * Flood - All-members F2 00:00:05:00:00:03 Learn 0 ge-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 ge-0/0/47.0 T1 * Flood - All-members T1 00:00:05:00:00:01 Persistent 0 ge-0/0/46.0 T1 00:00:5e:00:01:00 Static - Router T1 00:19:e2:50:63:e0 Persistent 0 ge-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 ge-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 ge-0/0/15.0 T111 00:19:e2:50:7d:e0 Static - Router T111 00:19:e2:50:ac:00 Learn 0 ge-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 ge-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 ge-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 ge-0/0/46.0 [output truncated]
显示以太网交换表详细信息(EX 系列交换机)
user@switch> show ethernet-switching table detail Ethernet-switching table: 5 entries, 2 learned entries VLAN: default, Tag: 0, MAC: *, Interface: All-members Interfaces: ge-0/0/11.0, ge-0/0/20.0, ge-0/0/30.0, ge-0/0/36.0, ge-0/0/3.0 Type: Flood Nexthop index: 1307 VLAN: default, Tag: 0, MAC: 00:1f:12:30:b8:83, Interface: ge-0/0/3.0 Type: Learn, Age: 0, Learned: 20:09:26 Nexthop index: 1315 VLAN: v1, Tag: 101, MAC: *, Interface: All-members Interfaces: ge-0/0/31.0 Type: Flood Nexthop index: 1313 VLAN: v1, Tag: 101, MAC: 00:1f:12:30:b8:89, Interface: ge-0/0/31.0 Type: Learn, Age: 0, Learned: 20:09:25 Nexthop index: 1312 VLAN: v2, Tag: 102, MAC: *, Interface: All-members Interfaces: ae0.0 Type: Flood Nexthop index: 1317
全面显示以太网交换表(EX 系列交换机)
user@switch> show ethernet-switching table extensive Ethernet-switching table: 3 entries, 1 learned, 5 persistent entries VLAN: v1, Tag: 10, MAC: *, Interface: All-members Interfaces: ge-0/0/14.0, ge-0/0/1.0, ge-0/0/2.0, ge-0/0/3.0, ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0, ge-0/0/8.0, ge-0/0/10.0, ge-0/0/0.0 Type: Flood Nexthop index: 567 VLAN: v1, Tag: 10, MAC: 00:21:59:c6:93:22, Interface: Router Type: Static Nexthop index: 0 VLAN: v1, Tag: 10, MAC: 00:21:59:c9:9a:4e, Interface: ge-0/0/14.0 Type: Learn, Age: 0, Learned: 18:40:50 Nexthop index: 564
显示以太网交换表永久性 mac (EX 系列交换机)
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
显示以太网交换表持续 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
显示以太网交换表(EX 系列、MX 系列和 QFX 系列)
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...]
显示以太网交换表简述
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...]
显示以太网交换表计数
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...]
全面显示以太网交换表
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
示例输出
显示以太网交换表详细信息(SRX 系列)
user@host> show ethernet-switching table detail Ethernet-switching table: 57 entries, 17 learned F2, * Interface(s): ge-0/0/44.0 Type: Flood F2, 00:00:5E:00:53:AC Interface(s): ge-0/0/44.0 Type: Learn, Age: 0, Learned: 2:03:09 F2, 00:00:5E:00:53:AA Interface(s): Router Type: Static Linux, * Interface(s): ge-0/0/47.0 Type: Flood Linux, 00:00:5E:00:53:AB Interface(s): Router Type: Static Linux, 00:00:5E:00:53:AC Interface(s): ge-0/0/47.0 Type: Learn, Age: 0, Learned: 2:03:08 T1, * Interface(s): ge-0/0/46.0 Type: Flood T1, 00:00:5E:00:53:AD Interface(s): ge-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 T1, 00:00:5E:00:53:AE Interface(s): Router Type: Static T1, 00:00:5E:00:53:AF Interface(s): ge-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 T1, 00:00:5E:00:53:AG Interface(s): Router Type: Static T10, * Interface(s): ge-0/0/46.0 Type: Flood T10, 00:00:5E:00:53:AH Interface(s): Router Type: Static T10, 00:00:5E:00:53:AI Interface(s): ge-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:08 T10, 00:00:5E:00:53:AJ Interface(s): Router Type: Static T111, * Interface(s): ge-0/0/15.0 Type: Flood [output truncated]
示例输出
全面显示以太网交换表(SRX 系列)
user@host> show ethernet-switching table extensive Ethernet-switching table: 57 entries, 17 learned F2, * Interface(s): ge-0/0/44.0 Type: Flood F2, 00:00:5E:00:53:AC Interface(s): ge-0/0/44.0 Type: Learn, Age: 0, Learned: 2:03:09 F2, 00:00:5E:00:53:AA Interface(s): Router Type: Static Linux, * Interface(s): ge-0/0/47.0 Type: Flood Linux, 00:00:5E:00:53:AB Interface(s): Router Type: Static Linux, 00:00:5E:00:53:AC Interface(s): ge-0/0/47.0 Type: Learn, Age: 0, Learned: 2:03:08 T1, * Interface(s): ge-0/0/46.0 Type: Flood T1, 00:00:5E:00:53:AD Interface(s): ge-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 T1, 00:00:5E:00:53:AE Interface(s): Router Type: Static T1, 00:00:5E:00:53:AF Interface(s): ge-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:07 T1, 00:00:5E:00:53:AG Interface(s): Router Type: Static T10, * Interface(s): ge-0/0/46.0 Type: Flood T10, 00:00:5E:00:53:AH Interface(s): Router Type: Static T10, 00:00:5E:00:53:AI Interface(s): ge-0/0/46.0 Type: Learn, Age: 0, Learned: 2:03:08 T10, 00:00:5E:00:53:AJ Interface(s): Router Type: Static T111, * Interface(s): ge-0/0/15.0 Type: Flood [output truncated]
示例输出
显示以太网交换表接口 ge-0/0/1 (SRX 系列)
user@host> show ethernet-switching table interface ge-0/0/1 Ethernet-switching table: 1 unicast entries VLAN MAC address Type Age Interfaces V1 * Flood - All-members V1 00:00:5E:00:53:AF Learn 0 ge-0/0/1.0
示例输出
show ethernet-switching table vlan-name v100 (QFX 系列)
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 中引入。
命令 Junos OS 版本9.5 中引入,用于 SRX 系列。
选项 summarymanagement-vlan , 在 ex Junos OS vlan vlan-name 9.6 版中引入。
在 EX 系列 sort-bytag 交换机的 Junos OS 10.1 版中引入的选项和字段名称。
命令 Junos OS 版本11.1 中引入,用于 QFX 系列。
为 QFX 系列 Junos OS 版本12.1 中引入的专用 Vlan 的输出。
在 persistent-mac EX 系列Junos OS 11.4 版中引入的选项。
命令 Junos OS Release 12.3 R2 中引入。
命令 Junos OS 版本 12.3 r for EX 系列交换机中引入。
选项logical-system
、 persistent-learning
和summary
Junos OS Release 13.2 x50-D10 (ELS)中引入。
VXLAN Junos OS 20.3R1 版中为 Junos OS 交换机引入的共享负载平衡下一跳跃 (SVLBNH) 和 VXLAN 封装下一跳跃 (VENH QFX 系列) 的输出。
在虚拟交换机VTEP版本Junos OS中20.3R1伪QFX 系列逻辑接口的输出。