copp-policy
Syntax
copp-policy { | default [revert]} no copp-policy
描述
Creates a CoPP policy and switches to theconfig-copp上下文的政策。Or, if the specified policy exists, switches to theconfig-copp上下文的政策。一个预先确定d 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.
The没有form 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)#没有copp-policy My_CoppPolicy
Setting the default policy to its factory settings:
switch(config)#copp-policy default revert
Unapplying the policy named My_CoppPolicy:
switch(config)#没有apply copp-policy My_CoppPolicy