Hi,
I am trying to put port security on a port, I want it to shutdown if another computer gets plugged into that port.
I followed the following steps:
I set these options:
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown
Switch#show port-security interface fastEthernet 0/4
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses : 1
Configured MAC Addresses : 0
Sticky MAC Addresses : 0
Last Source Address : 000b.972c.0ea1
Security Violation Count : 0
It doesn?t work.
any idea what I am doing wrong?
Software/Hardware used:
ASKED:
January 31, 2006 8:38 AM
UPDATED:
February 1, 2006 7:28 AM
You need to make the MAC addresses sticky or they will eventually time out of the mac-address-table. To enable sticky MAC addresses, use the following command in interface configuration:
switchport port-security mac-address sticky
Wayne
In addition to making the MAC addresses sticky, make sure that you are not automatically re-enabling the interface when a violation occurs. You can check this in enabled mode by typing:
show errdisable recovery.
Make sure Psecure-Violation is not enabled.
If you need to change it by typing the following in global configuration:
(no) errdisable recovery cause psecure-violation
Wayne
Dear All,
Thanks for your prompt responce.I tried it with another port and found working with following configuration:
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown
no errdisable recovery cause psecure-violation
errdisable recovery interval 30
Great thanks to Sonyfreek.