02-19-2013 09:16 PM - edited 03-07-2019 11:48 AM
Hi,
I configured port security on my 2960 switches with the following commands:
switchport mode access
switchport port-security maximum 2
switchport port-security
switchport port-security violation restrict
switchport port-security mac-address sticky
switchport port-security mac-address sticky 0015.651d.8ecc
switchport port-security mac-address sticky 0026.2213.36c5
The problem is that when I should change someone's PC, first I disable port-secirity, then I clear all the mac addresses learned on the interface, then I plug the new PC and enable port-security. The new PC couldn't connect to the network and it's mac address has not be learned on the interface. Why?
Which commands should I use to clear an old mac address and enable port-security with the new mac address.
M.Bayat
02-20-2013 12:04 AM
Hi Bayat,
The command to clear the port security learend MAC address is "clear port-security sticky interface fas x/x"
Hope that helps.
Regards
Najaf
Please rate when applicable or helpful !!!
03-11-2013 10:36 PM
Hi. Mr. Najaf KC
I tested your command but it didn't work.
M.Bayat
03-12-2013 12:02 AM
Hi,
Firt Remove old two PC From that Port and then issue this command
clear port-security sticky interface fas x/x
After then add new PC.
*** Do Rate Helpful Posts***
03-12-2013 02:14 AM
Hi Bayat,
The command should work as long as you dont have no devices connected to the port. If you have any device connected to port the switch port will show the MAC address of the device connected there.
May be you are checking with some device connected to the port.
Regards
Najaf
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide