Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
For more information regarding the traffic policing feature refer to the police rate, on page 63 command.
The violate-action command can set the DSCP, the precedence, or the discard class for IP packets, and
experimental and discard-class values for MPLS packets.
Task ID
OperationsTask ID
read, writeqos
Examples
In the following example for MPLS, traffic policing is configured to drop packets that violate the rate limit:
RP/0/RP0/CPU0:router(config)# class-map class1
RP/0/RP0/CPU0:router(config-cmap)# match mpls experimental topmost 0
RP/0/RP0/CPU0:router(config-cmap)# exit
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class class1
RP/0/RP0/CPU0:router(config-pmap-c)# police rate 250 kbps burst 50
RP/0/RP0/CPU0:router(config-pmap-c-police)# violate-action drop
RP/0/RP0/CPU0:router(config-pmap-c-police)# exit
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# exit
RP/0/RP0/CPU0:router(config)# interface gigabitethernet 0/1/0/9
RP/0/RP0/CPU0:router(config-if) service-policy input policy1
Related Commands
DescriptionCommand
Configures the action to take on packets that conform to the rate
limit.
conform-action, on page 17
Configures the action to take on packets that exceed the rate limit.exceed-action, on page 23
Configures traffic policing and enters policy map police
configuration mode.
police rate, on page 63
Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
policy-map, on page 67
Displays policy configuration information for all classes configured
for all service policies on the specified interface.
show policy-map interface, on page 125
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
OL-23235-03 145
Quality of Service Commands on the Cisco IOS XR Software
violate-action