Sticky MAC addresses are addresses that are dynamically learned once and remain stick to the port, we can adjust the max number of sticky MAC addresses to a single interface. the use of this feature is in large networks usually where we cant afford to waste time doing manual mac addresses to port mapping.
Let us apply this concept on packet tracer.
Let us set up a topology. Apply PCs with the IP addresses dynamically with the DHCP server set on the Server.
DHCP server setup on server.
Assigning IP to PCs.
Now, let us apply Sticky Mac address to the following interface of switch which is currently attach to PC1. It is interface fa 0/3.
The following commands will apply this concept.
Go to enable mode. Apply command, show running-config.
Now, we do not have MAC address of PC here.
For this, remove the interface from PC1 attach it to another PC as shown in the figure below.
Request for DHCP.
Now. we have mac address and our port is sticky as shown in figure below.
MAC address of PC.
Now, re connect to PC1 and request for IP address. It has failed and it has also shutdown the interface because MAC address does not match with the MAC address of the port.