端口安全配置:
mac-address-learning cpu-control 开启mac地址学习(在三层交换机开启)
interface Ethernet 1/0/1 进入端口
switchport port-security 开启端口安全
switchport port-security mac-address 00-11-22-33-44-55 绑定mac地址
switchport port-security maximum 5 限制最大链接数
switchport port-security violation 违规的规则
protect 安全违背保护模式
recovery 恢复违背状态
restrict 安全违背限制模式
shutdown 安全违背关闭模式
静态绑定配置:
静态绑定基本配置
am enable am开启
interface ethernet 1/0/1 进入端口
am port am端口使能
am ip-pool 192.168.1.1 5 am地址池
am mac-ip-pool 00-11-22-33-44-55 192.168.1.66 ammac地址跟ip绑定