cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
529
Views
0
Helpful
1
Replies

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 1

Edison Ortiz
Hall of Fame
Hall of Fame

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: