Reference Guide

QoS Commands 665
•Secondary COS
•DSCP
IP Precedence
This includes both the input and color aware classes. The conform color class
may not be the same as the input class, nor may the match criteria be of the
same type. The input class map may have a match type of "any."
The exceed color class may only be specified for the two-rate police
algorithm.
Example
The following example uses a simple policer to color TCP packets that exceed
an average rate of 1000 Kbps or a burst size of 16 Kbytes as red. Conforming
packets are colored green. The example configuration below also shows the
configuration of WRED drop thresholds and probabilities for colored traffic.
console(config)#class-map match-all class-ipv4 ipv4
console(config-classmap)#match any
console(config-classmap)#exit
console(config)#class-map match-all class-cos1 ipv4
console(config-classmap)#match cos 1
console(config-classmap)#exit
console(config)#policy-map color in
console(config-policy-map)#class class-ipv4
console(config-policy-classmap)#police-simple 1000 16
conform-action transmit violate-action transmit
console(config-policy-classmap)#conform-color class-
cos1
console(config-policy-classmap)#exit
console(config-policy-map)#exit
console(config)#
2CSPC4.XModular-SWUM204.book Page 665 Friday, March 15, 2013 9:24 AM