show interfaces mac-database
语法
show interfaces mac-database (ge-fpc/pic/port | ge-fpc/pic/port.n | aex| xe-fpc/pic/port | xe-fpc/pic/port.n | et-fpc/pic/port | et-fpc/pic/port.n) <mac-address mac-address>
描述
(仅限 M 系列、T 系列、MX 系列路由器和 PTX 系列数据包传输路由器)显示指定接口的媒体访问控制 (MAC) 地址信息。
选项
ge-fpc/pic/port | 显示在特定物理接口上的所有逻辑接口上获知的 MAC 地址。 |
ge-fpc/pic/port.n | 显示在特定逻辑接口上获知的 MAC 地址。 |
aex | 显示在特定聚合以太网接口上获知的 MAC 地址。 |
xe-fpc/pic/port | 显示在特定物理接口上的所有逻辑接口上获知的 MAC 地址。 |
xe-fpc/pic/port.n | 显示在特定逻辑接口上获知的 MAC 地址。 |
et-fpc/pic/port | 显示在特定物理接口上的所有逻辑接口上获知的 MAC 地址。 |
et-fpc/pic/port.n | 显示在特定逻辑接口上获知的 MAC 地址。 |
mac-address mac-address | (可选)显示详细的 MAC 地址统计信息,包括 、 |
其他信息
在 IQ2 PIC 接口上,对于 MAC 地址表中条目未满的情况,最大保留条目的默认值已更改。新的保持时间为 12 小时。当表已满时,之前的 3 分钟保留时间仍然有效。
所需权限级别
视图
输出字段
表 1 列出了命令 show interfaces mac-database
的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
---|---|
物理接口 | |
物理接口 |
物理接口的名称。 |
启用 |
物理接口的状态。通用 输出字段说明下的“已启用字段”部分介绍了可能的值。 |
接口索引 |
物理接口索引号,反映其初始化顺序。 |
SNMP ifIndex |
物理接口的 SNMP 索引号。 |
描述 |
接口的说明和名称。 |
链路级别类型 |
在物理接口上使用封装。 |
Mtu |
物理接口上的 MTU 大小。 |
速度 |
接口运行速度。 |
回送 |
是否启用环路以及环路类型: 本地 或 远程。 |
源过滤 |
是否配置了源筛选。 |
流量控制 |
流控制是启用还是禁用。 |
|
(仅限聚合以太网接口)要使聚合接口正常运行,必须正常运行的子链路数。 |
|
(仅限聚合以太网接口)要使聚合接口正常运行,必须正常运行的子链路的最小带宽量。 |
设备标志 |
有关物理设备的信息。通用 输出字段说明下的“设备标志”部分介绍了可能的值。 |
|
(仅限聚合以太网接口)配置的 MAC 地址。 |
|
(仅限聚合以太网接口)硬件 MAC 地址。 |
|
(仅限聚合以太网接口)接口从下到上或从上到下之前的日期、时间以及之前的多长时间。格式为 |
|
(仅限聚合以太网接口)输入速率,以位/秒 (bps) 和数据包/秒 (pps) 为单位。 |
|
(仅限聚合以太网接口)以 bps 和 pps 为单位的输出速率。 |
接口标志 |
有关接口的信息。通用 输出字段说明下的“链路标志”部分介绍了可能的值。 |
链接标志 |
有关链接的信息。通用 输出字段说明下的“设备标志”部分介绍了可能的 v4alue。 |
逻辑接口 | |
逻辑接口 |
逻辑接口的名称。 |
指数 |
逻辑接口索引号,反映其初始化顺序。 |
SNMP ifIndex |
逻辑接口 SNMP 接口索引号。 |
标志 |
有关逻辑接口的信息(通用 输出字段说明下的“逻辑接口标志”部分介绍了可能的值)。 |
封装 |
逻辑接口上的封装。 |
MAC 地址、输入帧、输入字节、输出帧、输出字节 |
MAC 地址以及相应数量的输入帧、输入字节、输出帧和输出字节。 |
MAC 地址数 |
配置的 MAC 地址数。 |
监管器统计信息 |
(仅针对 、
|
示例输出
- show interfaces mac-database(端口上的所有 MAC 地址)
- show interfaces mac-database(聚合以太网接口上的所有 MAC 地址)
- show interfaces mac-database(服务上的所有 MAC 地址)
- show interfaces mac-database mac-address
- show interfaces mac-database(物理接口)
- show interfaces mac-database(逻辑接口)
- show interfaces mac-database(聚合以太网)
show interfaces mac-database(端口上的所有 MAC 地址)
user@host> show interfaces mac-database xe-0/3/3 Physical interface: xe-0/3/3, Enabled, Physical link is Up Interface index: 372, SNMP ifIndex: 788 Link-level type: Ethernet, MTU: 1514, LAN-PHY mode, Speed: 10Gbps, Loopback: None, Source filtering: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None Logical interface xe-0/3/3.0 (Index 364) (SNMP ifIndex 829) Flags: SNMP-Traps 0x4004000 Encapsulation: ENET2 MAC address Input frames Input bytes Output frames Output bytes 00:00:00:00:00:00 1 56 0 0 00:00:c0:01:01:02 7023810 323095260 0 0 00:00:c0:01:01:03 7023810 323095260 0 0 00:00:c0:01:01:04 7023810 323095260 0 0 00:00:c0:01:01:05 7023810 323095260 0 0 00:00:c0:01:01:06 7023810 323095260 0 0 00:00:c0:01:01:07 7023810 323095260 0 0 00:00:c0:01:01:08 7023809 323095214 0 0 00:00:c0:01:01:09 7023809 323095214 0 0 00:00:c0:01:01:0a 7023809 323095214 0 0 00:00:c0:01:01:0b 7023809 323095214 0 0 00:00:c8:01:01:02 30424784 1399540064 37448598 1722635508 00:00:c8:01:01:03 30424784 1399540064 37448598 1722635508 00:00:c8:01:01:04 30424716 1399536936 37448523 1722632058 00:00:c8:01:01:05 30424789 1399540294 37448598 1722635508 00:00:c8:01:01:06 30424788 1399540248 37448597 1722635462 00:00:c8:01:01:07 30424783 1399540018 37448597 1722635462 00:00:c8:01:01:08 30424783 1399540018 37448596 1722635416 00:00:c8:01:01:09 8836796 406492616 8836795 406492570 00:00:c8:01:01:0a 30424712 1399536752 37448521 1722631966 00:00:c8:01:01:0b 30424715 1399536890 37448523 1722632058 Number of MAC addresses : 21
show interfaces mac-database(聚合以太网接口上的所有 MAC 地址)
user@host> show interfaces mac-database ae4 Physical interface: ae4, Enabled, Physical link is Up Interface index: 132, SNMP ifIndex: 588 Description: Member links xe-0/2/0 Link-level type: Ethernet, MTU: 9188, Speed: Unspecified, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0 Device flags : Present Running Interface flags: Interface flags: SNMP-Traps Internal: 0x4000 Current address: 00:22:83:76:ff:c4, Hardware address: 00:22:83:76:ff:c4 Last flapped : 2013-12-18 04:33:22 PST (1w5d 22:23 ago) Input rate : 62756384 bps (85266 pps) Output rate : 62759472 bps (85272 pps) Logical interface ae4.0 (Index 334) (SNMP ifIndex 647) Flags: SNMP-Traps 0x4004000 Encapsulation: ENET2 MAC address Input frames Input bytes Output frames Output bytes 00:00:00:aa:00:02 23888711 2627758118 300 22200 00:00:00:aa:00:03 0 0 0 0 00:00:00:aa:00:04 0 0 0 0 Number of MAC addresses : 3
show interfaces mac-database(服务上的所有 MAC 地址)
user@host> show interfaces mac-database xe-0/3/3 Logical interface xe-0/3/3.0 (Index 364) (SNMP ifIndex 829) Flags: SNMP-Traps 0x4004000 Encapsulation: ENET2 MAC address Input frames Input bytes Output frames Output bytes 00:00:00:00:00:00 1 56 0 0 00:00:c0:01:01:02 7023810 323095260 0 0 00:00:c0:01:01:03 7023810 323095260 0 0 00:00:c0:01:01:04 7023810 323095260 0 0 00:00:c0:01:01:05 7023810 323095260 0 0 00:00:c0:01:01:06 7023810 323095260 0 0 00:00:c0:01:01:07 7023810 323095260 0 0 00:00:c0:01:01:08 7023809 323095214 0 0 00:00:c0:01:01:09 7023809 323095214 0 0 00:00:c0:01:01:0a 7023809 323095214 0 0 00:00:c0:01:01:0b 7023809 323095214 0 0 00:00:c8:01:01:02 31016568 1426762128 38040381 1749857526 00:00:c8:01:01:03 31016568 1426762128 38040382 1749857572 00:00:c8:01:01:04 31016499 1426758954 38040306 1749854076 00:00:c8:01:01:05 31016573 1426762358 38040381 1749857526 00:00:c8:01:01:06 31016573 1426762358 38040381 1749857526 00:00:c8:01:01:07 31016567 1426762082 38040380 1749857480 00:00:c8:01:01:08 31016567 1426762082 38040379 1749857434 00:00:c8:01:01:09 9428580 433714680 9428580 433714680 00:00:c8:01:01:0a 31016496 1426758816 38040304 1749853984 00:00:c8:01:01:0b 31016498 1426758908 38040307 1749854122
show interfaces mac-database mac-address
user@host> show interfaces mac-database xe-0/3/3 mac-address 00:00:c8:01:01:09 Physical interface: xe-0/3/3, Enabled, Physical link is Up Interface index: 372, SNMP ifIndex: 788 Link-level type: Ethernet, MTU: 1514, LAN-PHY mode, Speed: 10Gbps, Loopback: None, Source filtering: Disabled, Flow control: Enabled Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Link flags : None Logical interface xe-0/3/3.0 (Index 364) (SNMP ifIndex 829) Flags: SNMP-Traps 0x4004000 Encapsulation: ENET2 MAC address: 00:00:c8:01:01:09, Type: Configured, Input bytes : 202324652 Output bytes : 202324560 Input frames : 4398362 Output frames : 4398360 Policer statistics: Policer type Discarded frames Discarded bytes Output aggregate 3992386 183649756
show interfaces mac-database(物理接口)
user@host> show interfaces mac-database et-1/0/1 Physical interface: et-1/0/1, Enabled, Physical link is Up Interface index: 1022, SNMP ifIndex: 533 Link-level type: Ethernet, MTU: 1514, LAN-PHY mode, Speed: 400Gbps, BPDU Error: None, Loop Detect PDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Auto-negotiation: Disabled, Media type: Fiber Device flags : Present Running Interface flags: SNMP-Traps Logical interface et-1/0/1.0 (Index 1005) (SNMP ifIndex 545) Flags: Up SNMP-Traps Encapsulation: ENET2 MAC address Input frames Input bytes Output frames Output bytes 00:00:00:00:00:00 1 56 0 0 00:00:c0:01:01:02 7023810 323095260 0 0 00:00:c0:01:01:03 7023810 323095260 0 0 00:00:c0:01:01:04 7023810 323095260 0 0 00:00:c0:01:01:05 7023810 323095260 0 0 00:00:c0:01:01:06 7023810 323095260 0 0 00:00:c0:01:01:07 7023810 323095260 0 0 00:00:c0:01:01:08 7023809 323095214 0 0 00:00:c0:01:01:09 7023809 323095214 0 0 00:00:c0:01:01:0a 7023809 323095214 0 0 00:00:c0:01:01:0b 7023809 323095214 0 0 00:00:c8:01:01:02 30424784 1399540064 37448598 1722635508 00:00:c8:01:01:03 30424784 1399540064 37448598 1722635508 00:00:c8:01:01:04 30424716 1399536936 37448523 1722632058 00:00:c8:01:01:05 30424789 1399540294 37448598 1722635508 00:00:c8:01:01:06 30424788 1399540248 37448597 1722635462 00:00:c8:01:01:07 30424783 1399540018 37448597 1722635462 00:00:c8:01:01:08 30424783 1399540018 37448596 1722635416 00:00:c8:01:01:09 8836796 406492616 8836795 406492570 00:00:c8:01:01:0a 30424712 1399536752 37448521 1722631966 00:00:c8:01:01:0b 30424715 1399536890 37448523 1722632058 Number of MAC addresses : 21
show interfaces mac-database(逻辑接口)
user@host> show interfaces mac-database et-1/0/1.0 Logical interface et-1/0/1.0 (Index 1005) (SNMP ifIndex 545) Flags: SNMP-Traps Encapsulation: ENET2 MAC address Input frames Input bytes Output frames Output bytes 00:00:00:00:00:00 1 56 0 0 00:00:c0:01:01:02 7023810 323095260 0 0 00:00:c0:01:01:03 7023810 323095260 0 0 00:00:c0:01:01:04 7023810 323095260 0 0 00:00:c0:01:01:05 7023810 323095260 0 0 00:00:c0:01:01:06 7023810 323095260 0 0 00:00:c0:01:01:07 7023810 323095260 0 0 00:00:c0:01:01:08 7023809 323095214 0 0 00:00:c0:01:01:09 7023809 323095214 0 0 00:00:c0:01:01:0a 7023809 323095214 0 0 00:00:c0:01:01:0b 7023809 323095214 0 0 00:00:c8:01:01:02 30424784 1399540064 37448598 1722635508 00:00:c8:01:01:03 30424784 1399540064 37448598 1722635508 00:00:c8:01:01:04 30424716 1399536936 37448523 1722632058 00:00:c8:01:01:05 30424789 1399540294 37448598 1722635508 00:00:c8:01:01:06 30424788 1399540248 37448597 1722635462 00:00:c8:01:01:07 30424783 1399540018 37448597 1722635462 00:00:c8:01:01:08 30424783 1399540018 37448596 1722635416 00:00:c8:01:01:09 8836796 406492616 8836795 406492570 00:00:c8:01:01:0a 30424712 1399536752 37448521 1722631966 00:00:c8:01:01:0b 30424715 1399536890 37448523 1722632058
show interfaces mac-database(聚合以太网)
user@host> show interfaces mac-database ae0 Physical interface: ae0, up, Physical link is Up Interface index: 6000, SNMP ifIndex: 541 Link-level type: Ethernet, MTU: 1514, Speed: 800Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Enabled, Minimum links needed: 1, Minimum bandwidth needed: 1bps Device flags : Present Running Interface flags: SNMP-Traps Current address: da:5e:26:3b:03:57, Hardware address: da:5e:26:3b:03:57 Last flapped : 2021-12-16 12:08:26 IST (00:04:00 ago) Input rate : 0 bps (0 pps) Output rate : 0 bps (0 pps) Logical interface ae0.0 (Index 9700) (SNMP ifIndex 546) Flags: Up SNMP-Traps Encapsulation: Ethernet-Bridge MAC address Input frames Input bytes Output frames Output bytes 00:00:00:aa:00:02 23888711 2627758118 300 22200 00:00:00:aa:00:03 0 0 0 0 00:00:00:aa:00:04 0 0 0 0 Number of MAC addresses : 3
发布信息
在 Junos OS 7.4 版之前引入的命令。
在适用于 Junos OS 12.1 版的 PTX 系列数据包传输路由器上引入的命令。
使用 Junos OS 15.1 版中引入的选项支持语句 aex
。