Configuration Examples for Configuring Modular QoS Packet Classification on Cisco IOS XR Software
QoS Group Marking Configuration: Example
In the following example, a service policy called policy1 is created. This service policy is associated to
a classification policy called class1 through the use of the class command, and then the service policy is
attached in the input direction on a GigabitEthernet interface 0/1/0/9. The qos-group value is set to 1.
class-map match-any class1
match protocol ipv4
match access-group 101
policy-map policy1
class class1
!
interface gigabitethernet 0/1/0/9
service-policy input policy1
The set qos-group command is supported only on an ingress policy.
Note
QoS Group and Discard Class Marking Configuration: Example
In the following example, a service policy called policy1 is created. This service policy is associated to
a classification policy called class1 through the use of the class command, and then the service policy is
attached in the input direction on a GigabitEthernet interface 0/1/0/9. The discard-class and qos-group
values are set to 1 and 2 respectively:
class-map match-any class1
match protocol ipv4
match access-group 101
policy-map policy1
class class1
!
interface gigabitethernet 0/1/0/9
service-policy input policy1
CoS Marking Configuration: Example
In the following example, a service policy called policy1 is created. This service policy is associated to
a classification policy called class1 through the use of the class command, and then the service policy is
attached in the output direction on a 10-Gigabit Ethernet interface, TenGigE0/1/0/0. The IEEE 802.1p
(CoS) bits in the Layer 2 header are set to 1.
class-map match-any class1
match protocol ipv4
match access-group 101
policy-map policy1
class class1
!
interface TenGigE0/1/0/0
service-policy output policy1
Cisco ASR 9000 Series Aggregation Services Router Modular Quality of Service Configuration Guide
QC-32
Configuring Modular Quality of Service Packet Classification on Cisco ASR 9000 Series Routers
D r a f t — C i s c o C o n f i d e n t i a l
set qos-group 1
set qos-group 2 discard-class 1
set cos 1
OL-17239-01