文章给出Juniper,华为交换机查看mac table的命令:
1、Juniper
show ethernet-switching table brief 查看mac地址、vlanID和接口的对应关系,后面可以跟上| match 查看具体mac,实例如下:
xxx@XinXiaoQu> show ethernet-switching table brief | match 3c:97
vlan1059 3c:97:0e:b3:62:ac Learn 0 xe-2/0/1.0
vlan1061 3c:97:0e:b3:63:94 Learn 0 xe-2/0/1.0
vlan1073 3c:97:0e:b3:63:94 Learn 0 xe-2/0/1.0
2、华为
display mac-address include mac ,实例如下:
<GY-(7-9)>display mac-address | include 3c
-------------------------------------------------------------------------------
MAC Address VLAN/VSI Learned-From Type
-------------------------------------------------------------------------------
200b-c72c-133c 300/- GE0/0/1 dynamic
3c8a-b030-fff0 300/- GE0/0/1 dynamic
203c-ae97-c911 1034/- GE0/0/1 dynamic