Chapter 30
Configuring QoS
Command
Step 4
police {rate-bps | cir cir-bps} [burst-bytes |
bc burst-bytes]
Step 5
conform-action [set-cos-transmit
new-cos-value | set-dscp-transmit
new-dscp-value| set-prec-transmit
new-precedence-value | set-qos-transmit
qos-group-value | transmit]
Step 6
exceed-action [drop | [set-cos-transmit cos |
set-dscp-transmit dscp | set-prec-transmit
precedence [table table-map name]]
Step 7
exit
Step 8
exit
Step 9
interface interface-id
Step 10
service-policy input policy-map-name
Step 11
end
Step 12
show policy-map [policy-map-name [class
class-map-name]]
Step 13
copy running-config startup-config
78-17058-01
Purpose
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.
(Optional) Enter the action to be taken on packets that conform to
the CIR.
The action can be to set a new CoS, DSCP, or IP precedence value,
to set a QoS group value, or to send the packet. If no action is
entered, the default action is to send the packet.
Note
You can enter a single conform-action as part of the
command string following the police command. You can
also enter a carriage return 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.
(Optional) Enter the action to be taken for packets that do not
conform to the CIR.
The action can be to drop the packet or to mark down the packet
with the help of a table map. If no action is entered, the default
action is to drop the packet.
Note
You can enter a single exceed-action as part of the command
string following the police command. Or you can enter a
carriage return 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.
Return to policy-map configuration mode.
Return to global configuration mode.
Enter interface configuration mode for the interface to which you
want to attach the policy.
Attach the policy map (created in Step 2) to the ingress interface.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
Configuring QoS
30-37