神州数码交换机“端口安全”配置
二层、三层交换机配置
型号:(DCS-3950和DCR-3926S)
Switch(config)#internet ethernet0/0/1 (进入端口)
Switch(config-if-ethernet0/0/1)#switchport port-security (开启端口安全)
Switch(config-if-ethernet0/0/1)# switchport port-security maximum 1 (设置端口对大数为1)
这儿的1最大数可以设置为1-16
Switch(config-if-ethernet0/0/1)# switchport port-security mac-address xx-xx-xx-xx (为端口绑定MAC地址) xx-xx-xx-xx 为PC(电脑)机的MAC137端口地址
Switch(config-if-ethernet0/0/1)# switchport port-security violation shutdown/portect (违规关闭/保护)
Switch(config-if-ethernet0/0/1)# switchport port-security lock (锁定安全端口)
注:二层DCR-3926S交换机配置生成树后无法开启端口安全,所以必须先开启端口安全后配置生成树。
“山西梦轩”编写
QQ:759576010
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论