-
null
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS quality of service (QoS) commands that begin with C.
To specify a control plane class map for a control plane policy map, use the class command. To delete a control plane class map from a control plane policy map, use the no form of this command.
class {class-map-name [insert-before class-map-name2]}
no class class-map-name
None
Control plane policy map configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
You must create the control plane class maps before you reference them in this command.
This command does not require a license.
This example shows how to configure a class map for a control plane policy map:
switch# configure terminal
switch(config)# policy-map type control-plane copp-system-policy-customized
switch(config-pmap)# class copp-system-class-dhcp
swtich(config-pmap-c)# police cir 300 bc 1500
To add a reference to an existing qos class map in a policy map and enter the class mode, use the class command. To remove a class from the policy map, use the no form of this command.
class [type qos] class-map-name
no class class-map-name
None
Policy map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
Policy actions in the first class that matches the traffic type are performed.
By default, the class-default class of type qos is created under every policy map of type qos in the system and it is mapped to the QoS group 0. You cannot change this mapping.
You cannot remove the class-default of type qos. If you attempt to delete the class-default class, the switch returns an error message.
This example shows how to add a reference to a qos class map at the end of a policy map:
switch(
config)#
policy-map my_policy1
switch(config-pmap-qos)# class traffic_class2
switch(config-pmap-c-qos)#
This example shows how to remove a class map reference in a policy map:
switch(
config)#
policy-map my_policy1
switch(config-pmap-qos)# no class traffic_class1
switch(config-pmap-qos)#
To add a reference to the system default class that does not match any traffic class, use the class class-default command. To remove the system default class from the policy map, use the no form of this command.
class class-default
no class class-default
This command has no arguments or keywords.
None
QoS policy map configuration mode
Control-plane policy map configuration mode
QoS policy map in switch profile configuration mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
Traffic that fails to match any class is assigned to a default class of traffic called class-default. You cannot delete this class.
This example shows how to add a reference to the system default class at the end of a policy map in a switch profile:
switch# configure sync
Enter configuration commands, one per line. End with CNTL/Z.
switch(config-sync)# switch-profile s5010
Switch-Profile started, Profile ID is 1
switch(config-sync-sp)# policy-map type qos my_policy1
switch(config-sync-sp-pmap-qos)# class class-default
switch(config-sync-sp-pmap-c-qos)#
To add a reference to an existing network QoS class map in a policy map and enter the class mode, use the class type network-qos command. To remove a class from the policy map, use the no form of this command.
class type network-qos class-map-name
no class type network-qos class-map-name
None
Policy map type network-qos configuration
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
Policy actions in the first class that matches the traffic type are performed.
This example shows how to add a reference to a class map in a type network-qos policy map:
switch(config)# policy-map type network-qos nqos_policy
switch(config-pmap-nq)# class type network-qos nqos_class
switch(config-pmap-nq-c)#
This example shows how to remove a class map reference in a type network-qos policy map:
switch(config)# policy-map type network-qos nqos_policy
switch(config-pmap-nq)# no class type network-qos nqos_class
switch(config-pmap-nq)#
To add a reference to an existing queuing class map in a policy map and enter the class mode, use the class type queuing command. To remove a class from the policy map, use the no form of this command.
class type queuing class-map-name
no class type queuing class-map-name
None
Policy map type queuing configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
Policy actions in the first class that matches the traffic type are performed.
This example shows how to add a reference to a class map in a type queuing policy map:
switch(
config)#
policy-map type queuing my_policy1
switch(config-pmap-que)# class type queuing 1p7q4t-out-q3
switch(config-pmap-c-que)#
This example shows how to remove a class map reference in a type queuing policy map:
switch(
config)#
policy-map type queuing my_policy1
switch(config-pmap-que)# no class type queuing 1p7q4t-out-q3
switch(config-pmap-que)#
|
|
---|---|
show class-map type queuing |
Displays the type queuing class maps. |
show policy-map |
Displays policy maps. |
To create or modify a class map and enter the class-map configuration mode, use the class-map command. To remove a class map, use the no form of this command.
class-map [type qos] [match-all | match-any] class-map-name
no class-map [type qos] [match-all | match-any] class-map-name
type—qos
match-all
Global configuration mode
|
|
5.2(1)N1(1) |
This command was introduced. |
You can define a class map for each class of traffic to be used in QoS policies.
If the packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. If no execution strategy is specified (match-any or match-all), then the default value of match-any is applied to the traffic class.
This example shows how to create or modify a qos class map:
switch(
config)#
class-map my_class1
switch(config-cmap-qos)#
This example shows how to create a qos class map to match all traffic packets:
switch(
config)#
class-map type qos match-all my_class2
switch(config-cmap-qos)#
This example shows how to remove a qos class map:
switch(
config)#
no class-map my_class1
switch(config)#
This example shows the error message that appears when you attempt to remove a class-fcoe class map:
switch(config)# no class-map class-fcoe
ERROR: Reserved class-map(s) cannot be deleted/modified
switch(config)#
To create or specify a control plane class map and enter class map configuration mode, use the class-map type control-plane command.
class-map type control-plane [match-any] class-map-name
match-any |
(Optional) Specifies to match any match conditions in the class map. |
class-map-name |
Name of the class map. The name is alphanumeric and case-sensitive. The maximum length is 64 characters. |
match-any
Global configuration mode
|
|
5.2(1)N1(1) |
This command was introduced. |
You cannot use match-any or class-default as names for control plane class maps.
You can delete only dynamic class-maps of type control-plane. You cannot delete static class-maps of type control-plane.
This command does not require a license.
This example shows how to specify a control plane class map and enter class map configuration mode:
switch# configure terminal
switch(config)# class-map type control-plane match-any copp-system-class-arp
switch(config-cmap)#
|
|
---|---|
match access-group |
Matches traffic with a specified access control list (ACL) group. |
show class-map type control-plane |
Displays control plane policy map configuration information. |
To create or modify a class map that defines a network QoS class of traffic and enter the class-map configuration mode, use the class-map type network-qos command. To remove a class map, use the no form of this command.
class-map type network-qos class_map_name
no class-map type network-qos class_map_name
None
Global configuration mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
Class maps of type network qos support only the match qos-group command. If a traffic packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. By default, traffic is filtered using the implicit match-any option.
This example shows how to create or modify a network qos class map named my_class1:
switch(
config)#
class-map type network-qos my_class1
switch(config-cmap-nq)#
This example shows how to remove a network qos class map:
switch(
config)#
no class-map my_class1
switch(config)#
To create or modify a class map that defines a queuing class of traffic and enter the class-map configuration mode, use the class-map type queuing command. To remove the queuing class map, use the no form of this command.
class-map type queuing class_map_name
no class-map type queuing class_map_name
None
Global configuration mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
If you modify the queuing type class maps, the configuration for all ports of the specified port type also changes.
You cannot delete the system-defined queuing class map names.
Class maps of type queuing support only the match qos-group command. If a traffic packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. By default, traffic is filtered using the implicit match-any option.
This example shows how to create or modify a queuing class map:
switch(
config)#
class-map type queuing my_class1
switch(config-cmap-que)#
This example shows how to modify a system-defined queuing class map named class-default:
switch(
config)#
class-map type queuing match-any class-default
switch(config-cmap-que)#
This example shows how to remove a queuing class map:
switch(
config)#
no class-map type queuing my_class1
switch(config)#
To clear Control Plane Policing (CoPP) statistics, use the clear copp statistics command.
clear copp statistics
This command has no arguments or keywords.
None
Any configuration mode
|
|
5.2(1)N1(1) |
This command was introduced. |
This command does not require a license.
This example shows how to clear the CoPP statistics:
switch# clear copp statistics
switch#
|
|
---|---|
class-map type control-plane |
Configures a control plane class map. |
show policy-map interface control-plane |
Displays the CoPP statistics for interfaces. |
To enter control-plane configuration mode, which allows users to associate attributes that are associated with the control plane of the device, use the control-plane command.
control-plane
This command has no arguments or keywords.
None
Global configuration mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
After you use the control-plane command, you can associate a service policy to police all traffic that is destined to the control plane.
This example shows how to enter the control plane configuration mode:
switch# configure terminal
switch(config)# control-plane
switch(config-cp)#