LACP not available on ports configured for port security

To maintain security, LACP is not allowed on ports configured for port security. If you configure port security on a port on which either active or passive LACP is configured, the switch removes the LACP configuration, displays a notice that LACP is disabled on the ports, and enables port security. For example:

switch(config)# port-security e a17 learn-mode static address-limit 2
LACP has been disabled on secured port(s).

The switch does not allow you to configure LACP when port security is enabled. For example:

switch(config)# int e a17 lacp passive
Error configuring port A17: LACP and port security cannot be run together.

To restore LACP to the port, you must remove port security and re-enable LACP active or passive.