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?