Configuring CoPP

Procedure
  1. Configure the default CoPP policy, edit an existing policy, or create a policy with the commandcopp-policy.
  2. Add, edit, or remove classes in the policy with the commandclass.
  3. 如果政策没有swit上的积极政策ch, apply it with the commandapply copp-policy. (Changes made to an active policy take effect immediately and do not need to be applied.)
  4. Review the CoPP policy configuration settings with the commandshow copp-policy.

Example

This example creates the following configuration:

  • Defines a new policy namedMy_CoppPolicy.
  • Adds two classes to the policy.
  • Activates the policy.
  • Displays policy configuration settings.
switch(config)#copp-policy My_CoppPolicyswitch(config-copp)#class igmp priority 6 rate 5000 burst 60switch(config-copp)#class lacp priority 2 rate 2000 burst 64switch(config-copp)#exitswitch(config)#apply copp-policy My_CoppPolicyswitch(config)#exitswitch#show copp-policy My_CoppPolicyclass drop priority rate kbps burst kB min-max pps hardware rate kbps --------------------- ---- -------- --------- -------- ----------------- ------------------ igmp 6 5000 60 411-9765 5156 lacp 2 2000 64 164-3906 2343 default 1 6000 70 494-11718 6093