copp traffic-class
Syntax
copp traffic-class {<traffic-class-type> limit {default | <VALUE>}}
no copp traffic-class {<traffic-class-type> limit {default | <VALUE>}}
Description
Enables control plane policing for the specified traffic class. The
no
form of this command disables control plane policing.
Command context
config
Parameters
<traffic-class-type>
- Specifies the traffic class type.
all
-
Specifies control plane policing for all traffic classes.
bgp
-
Specifies control plane policing for BGP control packets.
broadcast
-
Specifies control plane policing for broadcast packets.
exception-notification
-
Specifies control plane policing for MAC security, IP security flow and host.
icmp-redirect
-
Specifies control plane policing for ICMP redirect packets.
ip-gateway-control
-
Specifies control plane policing for VRRP traffic.
layer2-control-others
-
Specifies control plane policing for LLDP, LACP, and 802.1x.
loop-protect
-
Specifies control plane policing for loop-protect control packets.
mac-notification
-
Specifies control plane policing for MAC learn and move notifications.
multicast-route-control
-
Specifies control plane policing for IGMP, MLD, and PIM control packets.
multicast-sw-forward
-
Specifies control plane policing for IGMP data driven and multicast routing unknown flows.
mvrp
-
Specifies control plane policing for MVRP control packets.
ospf
-
Specifies control plane policing for OSPF control packets.
pvst
-
Specifies control plane policing for PVST packets.
rip
-
Specifies control plane policing for RIP control packets.
sampling
-
Specifies control plane policing for SFLOW.
smart-links
-
Specifies control plane policing for smart link control packets.
station-arp
-
Specifies control plane for the traffic class that applies to all ARP and ND packets reaching the switch.
station-icmp
-
Specifies control plane policing for the traffic class that applies to all ICMP and ICMPv6 packets reaching the switch.
station-ip
-
Specifies control plane policing for the traffic-class that applies to all ip and ipv6 (for example, telnet, snmp, http, ftp and other services enabled on the switch) traffic reaching the switch.
udld-control
-
Specifies control plane policing for UDLD and DLDP control packets.
unclassified
-
Specifies control plane policing for various other protocol packets copied to the switch.
unicast-sw-forward
-
Specifies control plane policing for unknown IP destination packets to be routed.
limit {default | <VALUE>}
-
Specifies the rate limit value in packets per second. See Traffic class limits.
NOTE:The limit applies on a per-slot basis. For example, for a limit of 100 packets per second on a 5400R switch with six slots, the packets reaching the CPU will be 100 x 6, or 600 packets per second at most.
Example
Enable control plane policing for icmp traffic:
switch(config)# copp traffic-class station-icmp limit default
Example
Limit mac-learns or move notifications copied to the CPU to 128 packets per second on each slot (slave cards or interface modules):
switch(config)# copp traffic-class mac-notificaiton limit 128