CLI Reference Guide-R04

Table Of Contents
Chapter 24
| Quality of Service Commands
– 652 –
Command Usage
Use the policy-map command to specify the name of the policy map, and then
use the class command to configure policies for traffic that matches the criteria
defined in a class map.
A policy map can contain multiple class statements that can be applied to the
same interface with the service-policy command.
Create a Class Map (page 651) before assigning it to a Policy Map.
Example
This example creates a policy called “rd-policy,” uses the class command to specify
the previously defined “rd-class,” uses the set command to classify the service that
incoming packets will receive, and then uses the police flow command to limit the
average bandwidth to 100,000 Kbps, the burst rate to 4000 bytes, and configure the
response to drop any violating packets.
Console(config)#policy-map rd-policy
Console(config-pmap)#class rd-class
Console(config-pmap-c)#set cos 0
Console(config-pmap-c)#police flow 10000 4000 conform-action transmit
violate-action drop
Console(config-pmap-c)#
class This command defines a traffic classification upon which a policy can act, and
enters Policy Map Class configuration mode. Use the no form to delete a class map.
Syntax
[no] class class-map-name
class-map-name - Name of the class map. (Range: 1-32 characters)
Default Setting
None
Command Mode
Policy Map Configuration
Command Usage
Use the policy-map command to specify a policy map and enter Policy Map
configuration mode. Then use the class command to enter Policy Map Class
configuration mode. And finally, use the set command and one of the police
commands to specify the match criteria, where the:
set phb command sets the per-hop behavior value in matching packets.
(This modifies packet priority for internal processing only.)