通过【mac-地址 static】命令在交换机中添加静态条目,MAC地址:0000-1111-2222 ,添加到Ethernet 0/0/1接口,VLAN 1中
一般先配置端口为access模式,赋予vlan1。然后在配置端口mac地址绑定,也可以限制绑定mac地址数量