I am trying to setup port security with errdisable action. This is the configuration I am using:
Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security mac-address MAC
cat6knative(config−if)#switchport port−security violation shutdown
After this configuration, the port should enter in a errdisable state if a host with a mac address different as MAC is connected to this port, but nothing happens and the port remains available for the non-secure host.
What else should I do or configure? Could be a problem with IOS?
Thanks in advance,
try adding the following line
switch(config-if)# switchport port-security maximum 1
This tells the switch that the maximum numbe of mac-addresses allowed on interface is 1.