copp-policy

Syntax

copp-policy {| default [revert]}

no copp-policy

Description

Creates a CoPP policy and switches to theconfig-coppcontext for the policy. Or, if the specified policy exists, switches to theconfig-coppcontext for the policy. A predefined policy, nameddefault, contains factory default classes and is applied to the switch at first startup. This policy cannot be deleted, but its configuration can be changed.

Thenoform of this command removes a CoPP policy. If a policy is active (applied), it cannot be removed . It must be replaced with another policy before it can be removed.

Command context

config

Parameters

Specifies the name of the policy to add or edit. Length: 1 to 64 characters. The name must not be a substring of any of the following reserved words: default, factory-default, commands, configuration, or statistics.

default

Specifies the default CoPP policy. Use this default policy to configure the default policy.

revert

Sets the default CoPP policy to its factory settings.

Authority

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

Examples

Creating a policy named My_CoppPolicy:

switch(config)#copp-policy My_CoppPolicyswitch(config-copp)#

Removing a policy named My_CoppPolicy:

switch(config)#no copp-policy My_CoppPolicy

Setting the default policy to its factory settings:

switch(config)#copp-policy default revert

不会再叫My_CoppPolicy政策:

switch(config)#没有达成y copp-policy My_CoppPolicy