Port Security - Clean MAC Table

Unanswered Question
Aug 7th, 2009
User Badges:

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Edison Ortiz Fri, 08/07/2009 - 05:19
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion