| 场景 | 终端定位、环路与泛洪排查 |
|---|---|
| 适用 | 全部交换机 |
| 命令族 | display mac-address / show mac address-table / display mac-address |
华为 VRP
华为 VRP
<Huawei> display mac-address
MAC Address VLAN/VSI Learned-From Type
0011-2233-4455 10 GE0/0/5 dynamic
! 指定端口:display mac-address interface GigabitEthernet 0/0/5思科 IOS
思科 IOS
SW-CORE-01# show mac address-table
Mac Address Table
Vlan Mac Address Type Ports
10 0011.2233.4455 DYNAMIC Gi1/0/5
! 指定:show mac address-table interface Gi1/0/5H3C Comware
H3C Comware
<H3C> display mac-address
MAC Address VLAN Port Type
0011-2233-4455 10 GE1/0/5 dynamic
! 指定:display mac-address interface GigabitEthernet 1/0/5字段一致:MAC / VLAN / 端口 / 类型(dynamic/static)。定位技巧:ping 一下终端再查表(触发学习),找不到说明流量没到交换机或停在更上游设备。