a maximum of 1024 classes in one policy map, no policy map can contain more than 1024 class policies. The
maximum number of 1024 classes per policy includes the implicit default class and its child policies.
A single policy map can be attached to multiple interfaces concurrently.
Task ID
OperationsTask ID
read, writeqos
Examples
The following examples show how to create a policy map called policy1 and configures two class policies
included in that policy map. The policy map is defined to contain policy specification for class1 and the default
class (called class-default) to which packets that do not satisfy configured match criteria are directed. Class1
specifies policy for traffic that matches access control list 136.
RP/0/RP0/CPU0:router(config)# class-map class1
RP/0/RP0/CPU0:router(config-cmap)# match access-group ipv4 136
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class class1
RP/0/RP0/CPU0:router(config-pmap-c)# police cir 250
RP/0/RP0/CPU0:router(config-pmap-c)# set precedence 3
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# class class-default
RP/0/RP0/CPU0:router(config-pmap-c)# queue-limit bytes 1000000
Related Commands
DescriptionCommand
Specifies the name of the class whose policy you want to create
or change.
class (policy-map), on page 10
Defines a traffic class and the associated rules that match packets
to the class.
class-map, on page 12
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
68 OL-23235-03
Quality of Service Commands on the Cisco IOS XR Software
policy-map