How to configure a sticky-port? mac addresses won't get lost when there is a restart of the device
interface FastEthernet 0/1
switchport mode access
switchport port-security
switchport port-security maximum 10
switchport port-security mac-address sticky
switchport port-security violation restrict
How to configure a dynamic-port? mac addresses won't will be lost when there is a restart of the device
enable configure terminal interface FastEthernet 0/1 switchport mode access switchport port-security end
How to configure a sticky-port? mac addresses won't get lost when there is a restart of the device interface FastEthernet 0/1 switchport mode access switchport port-security switchport port-security maximum 10 switchport port-security mac-address sticky switchport port-security violation restrict
Check port status show port-security address