service-policy (policy map class)
• If the bandwidth command is used in the child policy, the bandwidth command must also be used in
Task ID
Task ID
qos
Examples
The following example shows how to create a hierarchical service policy in the service policy called parent:
RP/0/RP0/CPU0:router(config)# policy-map child
RP/0/RP0/CPU0:router(config-pmap)# class class1
RP/0/RP0/CPU0:router(config-pmap-c)# priority
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# exit
RP/0/RP0/CPU0:router(config)# policy-map parent
RP/0/RP0/CPU0:router(config-pmap)# class class-default
RP/0/RP0/CPU0:router(config-pmap-c)# shape average 10000000
RP/0/RP0/CPU0:router(config-pmap-c)# service-policy child
Related Commands
Command
bandwidth (QoS), on page 4
class-map, on page 12
policy-map, on page 67
priority (QoS), on page 69
service-policy (interface), on page 93
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
96
the parent policy. The one exception is for policies using the default class.
Quality of Service Commands on the Cisco IOS XR Software
Operations
read, write
Description
Specifies the minimum bandwidth allocated to a class belonging to
a policy map.
Defines a traffic class and the associated rules that match packets
to the class.
Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
Assigns a priority to a class of traffic belonging to a policy map.
Attaches a policy map to an input interface or output interface to be
used as the service policy for that interface.
OL-23235-03