Configuration prerequisites
Before you set a port security mode for a port, complete the following tasks:
Disable 802.1X and MAC authentication.
Verify that the port does not belong to any aggregation group or service loopback group.
If you are configuring the autoLearn mode, set port security's limit on the number of MAC addresses. You cannot change the setting when the port is operating in autoLearn mode.