MAC地址绑定
VLAN的端口成员和mac地址静态绑定:
Switch(Config)#mac-address-table permanent address 00-00-00-11-11-11 vlan 1 interface e 1 //将mac为00-00-00-11-11-11的pc机绑定到端口为1的vlan 1中;
- 使能端口mac地址绑定功能
Switch(Config)#interface e 0/0/1
Switch(config-if<Ethernet1-1>)#switchport port-security
- 将端口自动学习到的MAC地址转换为静态安全的mac并关闭自动学习功能
Switch(config-if<Ethernet1-1>)#switchport port-security convert
- mac地址锁定
Switch(config-if<Ethernet1-1>)#switchport pot-security lock
- 添加mac地址到指定端口
Switch(config-if<Ethernet1-1>)#switchport port-security mac-address 11-11