Configuration prerequisites
Before you configure secure MAC addresses, complete the following tasks:
Enable port security.
Set port security's limit on the number of MAC addresses on the port. Perform this task before you enable autoLearn mode.
Set the port security mode to autoLearn.
Configure the port to permit packets of the specified VLAN to pass or add the port to the VLAN. Make sure the VLAN already exists.