37-34
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 37 Configuring Quality of Service
Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE
Bursts can be entered in bytes, or you can use the following abbreviation:
k to denote 1000 bytes
m to denote 1000000 bytes
g to denote 1000000000 bytes
Note You can also use a decimal point. For example, a burst of 1,100,000 bytes can be entered
as 1.1m.
Optionally, you can specify a conform action for matched in-profile traffic as follows:
The default conform action is transmit.
You can enter the drop keyword to drop all matched traffic.
Optionally, for traffic that exceeds the CIR, you can enter the policed-dscp-transmit keyword to
cause all matched out-of-profile traffic to be marked down as specified in the markdown map. See
“Configuring the Policed-DSCP Map” section on page 37-54.
For no policing, you can enter the transmit keyword to transmit all matched out-of-profile
traffic.
This example shows how to create a policy map named ipp5-policy that uses the class map named ipp5.
The class map ipp5 is configured to rewrite the packet precedence to 6 and to aggregate police the traffic
that matches IP precedence value of 5:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# policy-map ipp5-policy
Switch(config-pmap)# class ipp5
Switch(config-pmap-c)# set ip precedence 6
Switch(config-pmap-c)# dbl
Switch(config-pmap-c)# police 2000000000 2000000 conform-action transmit exceed-action
policed-dscp-transmit
Switch(config-pmap-c)# end
This example shows how to create a policy map named cs2-policy that uses class map named cs2. The
class map cos5 is configured to match on CoS 5 and to aggregate policing the traffic:
Switch(config)# class-map cs2
Switch(config-cmap)# match cos 5
Switch(config-cmap)# exit
Switch(config)# policy-map cs2-policy
Switch(config-pmap)# class cs2
police 2000000000 2000000 conform-action transmit exceed-action policed-dscp-transmit
Switch(config)# int g5/1
Switch(config-if)# service-policy input cs2-policy
Switch(config-if)# end
Switch# sh class-map cs2
Class Map match-all cs2 (id 2)
Match cos 5
Switch# sh policy-map cs2-policy
Policy Map cs2-policy
Class cs2
police 2000000000 bps 2000000 byte conform-action transmit exceed-action
policed-dscp-transmit Switch#