Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Port Security - Clean MAC Table

I'm using the following Port Security config in my switch ports:

switchport mode access

switchport port-security

switchport port-security maximum 2

switchport port-security violation restrict

switchport port-security mac-address sticky

The problem is that the switch learns the first and second MAC Address connected and if i disconnect one PC and plug another one, it does not work. What should i do to automatically switch these MACs addresses?

1 REPLY
Hall of Fame Super Bronze

Re: Port Security - Clean MAC Table

The 'sticky' command is causing the switch to keep the mac-address in the port-security table until the switch reboots.

If you happen to save the running-configuration on the switch after the mac-address have been learned via sticky, the mac-address information will be preserved even after a reboot.

If you are planning to use this switchport for several different PCs, you shouldn't use the 'switchport port-security mac-address sticky'

HTH,

__

Edison.

177
Views
0
Helpful
1
Replies
CreatePlease to create content