Configuring CoPP
Procedure
-
Configure the default CoPP policy, edit an existing policy, or create a policy with the command
.copp-policy
-
Add, edit, or remove classes in the policy with the command
.class
-
If the policy is not the active policy on the switch, apply it with the command
. (Changes made to an active policy take effect immediately and do not need to be applied.)apply copp-policy
-
Review the CoPP policy configuration settings with the command
.show copp-policy
Example
This example creates the following configuration:
- Defines a new policy named My_CoppPolicy.
- Adds two classes to the policy.
- Activates the policy.
- Displays policy configuration settings.