为什么交换机上端口的MAC地址绑定会失效?

作者:思科培训 来源:来自网络 发布时间:09-11-29

学员提问:

配置为
interface FastEthernet0/4
switchport port-security mac-address 0800.46c9.176c
mac address-table static 0800.46c9.176c vlan 1 interface FastEthernet0/4
interface Vlan1
ip address 192.168.1.254 255.255.255.0
其他配置为交换机默认配置
看了很多资料,都说 switchport port-security mac-address MAC地址 可以起到绑定MAC地址的作用
可现在FA0/4下面接一台PC,192.168.1.100/24 GW为1.254,在端口FA0/4上设置switchport port-security mac-address 0800.46c9.176c和switchport port-security maximum 1,都没有起到作用,192.168.1.100还是能PING到交换机VLAN1的192.168.1.254。
我想实现的功能是接口上接了错误的MAC地址的PC,交换机端口自动ERR DOWN
 

捷盈讲师及学员解答:

是不是Port Security默认被禁用了,启用就OK了。