交换机端口安全配置

 
设置端口安全功能
Switch(config-if)#switchport port-security [ violation { protect | restrict | shutdown }]
//violation protect 发现违例丢弃报文; violation restrict 发现违例丢弃报文并且 发送 trap;violation shutdown 发现违例丢弃报文发送 trap 并且关闭端口
设置端口安全地址表:
Switch(config-if)#switchport port-security mac-address xxxx.xxxx.xxxx ip- address x.x.x.x
开启端口安全只对 ip 报文进行检测,如果想要对 arp 报文也进行检测则需要开启 arp 检测功能
Switch(config)#switchport port-seurity arp-check
显示端口安全信息和安全地址:
Switch#show port-security

你可能感兴趣的:(配置,安全,端口,休闲,交换机)