class <CLASS> {drop | priority <PRIORITY> rate <RATE> [burst <BURST>]}

no class <CLASS> {drop | priority <PRIORITY> rate <RATE> [burst <BURST>]}


Adds a class to a CoPP policy. If the class exists, the existing class is modified. Changes made to an active (applied) policy take effect immediately.

When adding or modifying a class in an active policy, CoPP immediately activates the change on the switch. In cases where insufficient hardware resources exist to support a class or its action, CoPP fails to activate the changed class on the switch. When this failure occurs, the active configuration on the switch will be out of sync with its definition. To diagnose and remedy this situation:

  • Use the show copp-policy command to determine which classes are out of sync between the active policy and its definition.

  • Use the reset copp-policy command to synchronize the active policy with its definition. This synchronization changes the classes in the definition to match the classes in the active policy.

The no form of this command removes the configuration for the class. Traffic for the class will be prioritized and regulated using the factory default configuration for the class. Use the show copp-policy factory-default command to display the factory default CoPP policy. To stop a class of traffic from reaching the processor, set the class action to drop.

Command context




Specifies the class to add or edit.


Drop packets matching the selected class.

priority <PRIORITY>

Specifies the priority for packets matching the selected class. Range: 0 to 6.

rate <RATE>

Specifies the maximum rate, in packets per second (pps), for packets matching the selected class. Range: 25 to 99999.

burst <BURST>

Specifies the maximum burst size, in packets, for packets matching the selected class. Range: 1 to 9999.


Administrators or local user group members with execution rights for this command.


Adding a class to handle LACP traffic with priority of 2 and rate of 2000:

switch(config-copp)# class lacp priority 2 rate 2000

Modifying the class to drop LLDP packets:

switch(config-copp)# class lldp drop

Removing the class that handles LLDP packets.

switch(config-copp)# no class lldp