第1个回答 2013-04-14
楼上说的对,
不过建议2点。
1,不要配置惩罚,不然一旦端口被封,需要你手工重开端口才行,万一这时候人不在,别人就一直不能上网。
2,switchport port-security mac-address sticky这条配置完之后,不需要再去配置mac地址了。端口会自动学习第一个接上来的设备的mac。除非你不希望它学习的不是第一个设备的mac,需要手工配
第2个回答 2013-04-14
这个不是你的接口不支持,是你没有开启端口安全!!!!!!!!
首先要
switchport port-security 这个是打开接口的端口安全功能~
switchport port-security mac-address xxxx ip-address xxxx 绑定IP和MAC地址
第3个回答 2013-04-14
很简单啊!就相当于开了个端口安全,switchport port-security mac-address xxxx ip-address xxxx interface f0/0