Cisco CRS Command Reference Manual page 104

Ios xr modular quality of service command reference
Hide thumbs Also See for CRS:
Table of Contents

Advertisement

set cos
Task ID
Task ID
qos
Examples
In the following example, the policy map called cos-set is created to assign different CoS values for different
service classes, and then is attached to the output Gigabit Ethernet VLAN subinterface 0/1/0/9.100.
RP/0/RP0/CPU0:router(config)# policy-map cos-set
RP/0/RP0/CPU0:router(config-pmap)# class class1
RP/0/RP0/CPU0:router(config-pmap-c)# set cos 1
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# class class2
RP/0/RP0/CPU0:router(config-pmap-c)# set cos 2
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# exit
RP/0/RP0/CPU0:router(config)# interface gigabitethernet 0/1/0/9.100
RP/0/RP0/CPU0:router(config-if)# service-policy output cos-set
In this example, traffic with outer VLAN ID of 3 and inner VLAN ID of 2 exits through the QinQ attachment
circuit (AC). If the traffic matches class qg1 or class qg2, it is marked with the inner CoS value specified in
class qg1 or class qg2, respectively.
RP/0/RP0/CPU0:router(config)# policy-map p3
RP/0/RP0/CPU0:router(config-pmap)# class qg1
RP/0/RP0/CPU0:router(config-pmap-c)# police rate percent 30 peak-rate percent 50
RP/0/RP0/CPU0:router(config-pmap-c-police)# conform-action set cos inner 1
RP/0/RP0/CPU0:router(config-pmap-c-police)# exceed-action set cos inner 2
RP/0/RP0/CPU0:router(config-pmap-c-police)# violate-action set cos inner 3
RP/0/RP0/CPU0:router(config-pmap-c-police)#
RP/0/RP0/CPU0:router(config-pmap-c-police)# class qg2
RP/0/RP0/CPU0:router(config-pmap-c)# set cos inner 4
RP/0/RP0/CPU0:router(config-pmap-c)#
RP/0/RP0/CPU0:router(config-pmap-c)# end-policy-map
RP/0/RP0/CPU0:router(config)#
RP/0/RP0/CPU0:router(config)# class-map match-any qg1
RP/0/RP0/CPU0:router(config-cmap)# match qos-group 1
RP/0/RP0/CPU0:router(config-cmap)# end-class-map
RP/0/RP0/CPU0:router(config)#
RP/0/RP0/CPU0:router(config)# class-map match-any qg2
RP/0/RP0/CPU0:router(config-cmap)# match qos-group 2
RP/0/RP0/CPU0:router(config-cmap)# end-class-map
RP/0/RP0/CPU0:router(config)#
RP/0/RP0/CPU0:router(config)# interface gigabitethernet 0/6/5/0.3 l2transport
RP/0/RP0/CPU0:router(config-subif)# dot1q vlan 3 2
RP/0/RP0/CPU0:router(config-subif)# service-policy output p3
RP/0/RP0/CPU0:router(config-subif)#
Related Commands
Command
class-map, on page 12
policy-map, on page 67
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
98
Quality of Service Commands on the Cisco IOS XR Software
Operations
read, write
Description
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.
OL-23235-03

Advertisement

Table of Contents
loading

Table of Contents