
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Router# configure terminal
Step 2
Specifies the name of the class map to be created and enters QoS
class map configuration mode.
class-map [match-all |match-any]
class-map-name
Step 3
Example:
Router(config)# class-map match-any
MATCH_PREC
•The class map defines the criteria to use to differentiate the
traffic. For example, you can use the class map to differentiate
voice traffic from data traffic, based on a series of match
criteria defined using the match command.
If the match-all or match-any keyword is not specified,
traffic must match all the match criteria to be classified
as part of the traffic class.
Note
Enables packet matching on the basis of the IP precedence values
you specify.
match ip precedence precedence-value
Example:
Router(config-cmap)# match ip precedence
0
Step 4
You can enter up to four matching criteria, as number
abbreviation (0 to 7) or criteria names (critical, flash, and
so on), in a single match statement.
Note
Returns to global configuration mode.exit
Example:
Router(config-cmap)# exit
Step 5
Creates or modifies a policy map that can be attached to one or
more interfaces to specify a service policy, and enters QoS
policy-map configuration mode.
policy-map policy-map-name
Example:
Router(config)# policy-map POLICE-SETTING
Step 6
Specifies the name of the class whose policy you want to create or
change or specifies the default class (commonly known as the
class {class-name |class-default}
Example:
Router(config-pmap)# class MATCH_PREC
Step 7
class-default class) before you configure its policy, and enters
policy-map class configuration mode.
Configures traffic policing according to burst sizes and any optional
actions specified.
police bps burst-normal burst-max
conform-action action exceed-action action
violate-action action
Step 8
Example:
Router(config-pmap-c)# police 8000 1000
1000 conform-action transmit exceed-action
set-qos-transmit 1 violate-action drop
QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
4
Class-Based Policing
Configuring a Traffic Policing Service Policy