6-37
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 6 Policing Traffic
Configuring Traffic Policing
Configuring Dual Police Actions
To configure dual police actions for conform, exceed, and violate actions, enter the following commands
beginning in global configuration mode:
Configuration Example for Configuring Dual Police Actions
Example 6-16
shows how to configure the dual police actions set-clp-transmit and
set-mpls-exp-imposition-transmit. The example configures set-clp-transmit and set-mpls-exp-transmit
as the conform action and set-clp-transmit and set-mpls-exp-transmit as the exceed and violate actions.
Example 6-16 Configuring Dual Police Actions
Router(config)#
policy-map clp
Router(config-pmap)#
class class-default
Router(config-pmap-c)
police 100000 100 10 conform-action set-clp-transmit
Router(config-pmap-c-police)#
conform-action set-mpls-exp-transmit 1
Router(config-pmap-c-police)#
exceed-action set-clp-transmit
Router(config-pmap-c-police)#
exceed-action set-mpls-exp-transmit 2
Router(config-pmap-c-police)#
violate-action set-clp-transmit
Router(config-pmap-c-police)#
violate-action set-mpls-exp-transmit 3
Router(config-pmap-c-police)#
end
Router#
Command
Purpose
Step 1
Router(config)#
policy-map
policy-map-name
Specifies the name of the policy map and enters policy-map
configuration mode.
policy-map-name
is the name of the policy map.
Step 2
Router(config-pmap)#
class
class-map-name
Assigns the traffic class you specify to the policy map. Enters
policy-map class configuration mode.
class-map-name
is the name of a previously configured class map
and is the traffic class for which you want to define QoS actions.
Step 3
Router(config-pmap-c)#
police
{
cir
cir}
[
bc
]
burst-normal
[
pir
pir
]
[
be
]
peak-burst
conform-action
action
Configures traffic policing and specifies the first conform action.
Valid combinations of dual actions are:
•
set-clp-transmit and set-mpls-exp-imposition-transmit
•
set-frde-transmit and set-mpls-exp-imposition-transmit
•
set-cos-transmit and set-cos-inner-transmit
Step 4
Router(config-pmap-c-police)#
conform-action
action
Configures the second conform action.
Step 5
Router(config-pmap-c-police)#
exceed-action
action
Configures the first exceed action.
Step 6
Router(config-pmap-c-police)#
exceed-action
action
Configures the second exceed action.
Step 7
Router(config-pmap-c-police)#
violate-action
action
Configures the first violate action.
Step 8
Router(config-pmap-c-police)#
violate-action
action
Configures the second violate action.