612
Configuring QoS
Configuring QoS
Command Purpose
1. configure terminal Enter global configuration mode.
2. policy-map policy-map-name Create a policy map by entering the policy map name, and enter
policy-map configuration mode. By default, no class maps are
defined.
3. class {class-map-name | class-default} Enter a class-map name or class-default to match all unclassified
packets, and enter policy-map class configuration mode.
If you enter a class-map name, you must have already created the
class map by using the class-map global configuration command.
4. police {rate-bps | cir cir-bps} [burst-bytes |
bc burst-bytes]
Define a policer for the class of traffic.
By default, no policer is defined.
For rate-bps, specify average traffic rate in bits per second
(bps). The range is 8000 to 1000000000.
For cir cir-bps, specify a committed information rate (CIR) in
bits per second (bps). The range is 8000 to 1000000000.
For burst-bytes (optional), specify the normal burst size in
bytes. The range is 8000 to 1000000.
For bc burst-bytes (optional), specify the conformed burst (bc)
or the number of acceptable burst bytes. The range is 8000 to
1000000.
5. conform-action cos {cos_value | cos [table
table-map-name] | dscp [table
table-map-name] | precedence [table
table-map-name]}
or
conform-action [ip] dscp {dscp_value |
cos
[table table-map-name] | dscp [table
table-map-name] | precedence [table
table-map-name]}
or
conform-action [ip] precedence
{precedence_value | cos [table
table-map-name] | dscp [table
table-map-name] | precedence [table
table-map-name]}
or
conform-action qos-group value
or
transmit
(Optional) Enter the action to be taken on packets that conform to
the CIR.
For cos cos_value, enter a new CoS value to be assigned to the
classified traffic. The range is 0 to 7.
For [ip] dscp dscp_value, enter a new DSCP value to be
assigned to the classified traffic. The range is 0 to 63.
For [ip] precedence precedence_value, enter a new
IP-precedence value to be assigned to the classified traffic.
The range is 0 to 7.
Or you can configure a CoS, DSCP, or IP precedence table and
optionally enter the table name. If you do not enter table
table-map name, the table map default behavior is copy. See
Configuring Table Maps, page 608.
For qos-group value,
identify a QoS group to be used at egress
to identify specific packets. The range is from 0 to 99.
Note: You can enter a single conform-action as part of the
command string following the police command. You can also press
Enter after the police command to enter policy-map class police
configuration mode, where you can enter multiple actions. In
policy-map class police configuration mode, you must enter an
action to take.