一、查看mac地址表
show mac address-table
二、显示特定vlan的mac地址表
show mac address-table vlan [VLAN ID]
三、显示特定接口的MAC地址表
show mac address-table interface [interface ID]
四、清除整个MAC地址表
clear mac address-table dynamic
五、清除特定接口的MAC地址表
clear mac address-table dynamic interface [interface ID]
六、清除特定VLAN的MAC地址表
clear mac address-table dynamic vlan [VLAN ID]
七、将MAC地址静态绑定到某个端口
mac address-table static [MAC地址] vlan [VLAN ID] interface [interface ID]
八、删除静态MAC地址
no mac address-table static [MAC地址] vlan [VLAN ID] interface [interface ID]
九、查看交换机学习到的动态MAC地址
show mac address-table dynamic