cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
591
Views
0
Helpful
4
Replies

Port Security Problems

Muhammad Bayat
Level 1
Level 1

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       

M.Bayat
4 Replies 4

kcnajaf
Level 7
Level 7

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 !!!

Hi. Mr. Najaf KC

I tested your command but it didn't work.

M.Bayat

M.Bayat

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***

Jawad

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

Review Cisco Networking for a $25 gift card