Chapter 3
Configuring QoS Policy Actions and Rules
Creating a Policy Map
To create a policy map, enter the following commands beginning in global configuration mode:
Command
Step 1
Router(config)# policy-map policy-map-name
Step 2
Router(config-pmap)# class class-map-name
Configuration Examples for Creating a Policy Map
Example 3-1
a class map named class1, which is configured with a bandwidth of 100 kbps. The gold policy includes
two class maps named voice and vlan. The voice class is the priority class and is policed at 50 kbps. The
vlan class has a bandwidth configuration of 20 percent of the link bandwidth.
Example 3-1
Router(config)# policy-map bronze
Router(config-pmap)# class class1
Router(config-pmap-c)# bandwidth 100
Router(config-pmap-c)# exit
Router(config-pmap-c)# exit
Router(config)# policy-map gold
Router(config-pmap)# class voice
Router(config-pmap-c)# priority
Router(config-pmap-c)# police 50
Router(config-pmap)# class vlan
Router(config-pmap-c)# bandwidth percent 20
Example 3-2
example, class-default has a bandwidth configuration of 128 kbps:
Example 3-2
Router(config)# policy-map mypolicy
Router(config-pmap)# class class-default
Router(config-pmap-c)# bandwidth 128
Note
For more information about defining QoS actions in a policy map, see the
Actions" section on page
OL-7433-09
Purpose
Creates or modifies a policy map template with the name you
specify and enters policy-map configuration mode.
policy-map-name is the name of the policy map. The name can
be a maximum of 40 alphanumeric characters.
Specifies the class to which the policy map applies.
Note
class-map-name is the name of the class map. The name can be
a maximum of 40 alphanumeric characters.
shows how to create two policy maps named bronze and gold. The bronze policy includes
Assigning a Class to a Policy Map
shows how to configure the class-default class in the policy map named mypolicy. In this
Assigning the Default Class to a Policy Map
3-4.
Cisco 10000 Series Router Quality of Service Configuration Guide
On a given interface, the router uses the class-default
class to assign QoS policies to any packets that do not
belong to the classes defined in a policy map.
Configuring QoS Policies
"Input and Output Policy
3-19