交換機端口安全配置

 
設置端口安全功能
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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章