Configuring a Control Plane Policy Map
You must configure a policy map for CoPP, which includes policing parameters. If you do not configure a
policer for a class, the following default is configured:
• 50 packets per second (pps) with a burst of 32 packets (for Cisco Nexus 9300 and 9500 Series and 3164Q,
31128PQ, 3232C, and 3264Q switches)
• 150 kilobits per second (kbps) with a burst of 32,000 bytes (for Cisco Nexus 9200 Series switches)
Before you begin
Ensure that you have configured a control plane class map.
SUMMARY STEPS
1.
configure terminal
2.
policy-map type control-plane policy-map-name
3.
class
{
class-map-name
[
insert-before class-map-name2
] |
class-default
}
4.
Enter one of the following commands:
•
police
[
cir
] {
cir-rate
[
rate-type
]}
•
police
[
cir
] {
cir-rate
[
rate-type
]} [
bc
]
burst-size
[
burst-size-type
]
•
police
[
cir
] {
cir-rate
[
rate-type
]]}
conform transmit
[
violate drop
]
5.
(Optional)
logging drop threshold
[
drop-count
[
level syslog-level
]]
6.
(Optional)
set cos cos-value
7.
exit
8.
exit
9.
(Optional)
show policy-map type control-plane
[
expand
] [
name class-map-name
]
10.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Specifies a control plane policy map and enters policy map
configuration mode. The policy map name can have a
maximum of 64 characters and is case sensitive.
policy-map type control-plane policy-map-name
Example:
switch(config)# policy-map type control-plane
ClassMapA
switch(config-pmap)#
Step 2
Specifies a control plane class map name or the class
default and enters control plane class configuration mode.
class
{
class-map-name
[
insert-before class-map-name2
]
|
class-default
}
Step 3
Example:
The class-default class map is always at the end of the
class map list for a policy map.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
475
Configuring Control Plane Policing
Configuring a Control Plane Policy Map