端口安全:
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 限制最大链接数,默认是1.
switchport port-security violation 违规的规则
protect 安全违背保护模式