2950端口怎么绑定?
2950端口怎么绑定?
答案或建议:
MAC地址绑定
Switch (config-if)# switchport port-security mac-address sticky
Switch (config-if)# switchport port-security mac-address xxxx.xxxx.xxxx.xxxx
如上配置在端口上更换设备,端口状态会变为err-disable关态,要正常使用需对端口下如下命令:
Switch (config-if)#int fa 0/1
Switch (config-if)#shutdown
Switch (config-if)#no shutdown
为防止因为更换设备后造成端口进入 err-disable状态,在2960可加如下命令解决此问题:
Switch (config-if)#int fa 0/1
Switch (config-if)#switchport port-security violation protect
命令解释:
sw(config-if)#switchport mode access 指定端口为访问端口
sw(config-if)#switchport port-security 启用端口安全
sw(config-if)#switchport port-security maximum 1 指定最大的地址数
sw(config-if)#switchport port-security violation protect 指定违反端口安全后的动作
文章出自:http://www.baikewenda.com/tech/net/7/6/a122294141.htm