Hello, everyone! Today I was trying to implement port security with the following scenario:
First of all, an interface f0/2 was configured with max 2 sticky. Later on, I needed to limit the max to 1. Since I can't reduce so I had to clear interface config using default and configured the interface with max 1 and sticky, sometimes the interface still seemed to work with previous MAC address that was configured earlier besides, not showing at all "switchport port-security maximum 1" or the sticky mac address of the desired PC in the running config.
running config earlier
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address sticky
switchport port-security mac-address sticky 00D0.D365.2D20
switchport port-security mac-address sticky 00E0.A33C.452A
........
cleared interface config
default int f0/2
........
running config after configuring port security max 1 and sticky
switchport mode access
switchport port-security
switchport port-security mac-address sticky