Cisco CRS Command Reference Manual page 43

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

Advertisement

Quality of Service Commands on the Cisco IOS XR Software
The match cos command is not supported on an output service policy attached to a Layer 3 interface (POS
interface or routed VLAN subinterface).
The match cos command is supported on egress Layer 2 interfaces, Layer 2 subinterfaces, and Layer 3
physical interfaces. Layer 3 physical interfaces are supported, because it is possible for a Layer 3 interface to
have underlying Layer 2 subinterfaces.
The match cos inner command is supported on:
• Ingress and egress
• Layer 2 main interfaces and subinterfaces
• Layer 3 main interfaces
The match cos inner command is not supported on Layer 3 subinterfaces or on bundles.
Task ID
Task ID
qos
Examples
The following example shows how to configure the service policy called policy1 and attach service policy
policy1 to an interface. In this example, class map cos146 evaluates all packets entering Packet-over-SONET
(POS) interface 0/1/0/0 .100 for class of service values of 1, 4, or 6. If the incoming packet has been marked
with any of these CoS values, the packet is queued to the class queue with the bandwidth setting of 300 kbps.
RP/0/RP0/CPU0:router(config)# class-map cos146
RP/0/RP0/CPU0:router(config-cmap)# match cos 1 4 6
RP/0/RP0/CPU0:router(config-cmap)# exit
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class cos146
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth 300
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# exit
RP/0/RP0/CPU0:router(config)# interface
pos 0/1/0/0
RP/0/RP0/CPU0:router(config-if)# service-policy
input
policy1
In this example, traffic with an outer VLAN ID of 2 and an inner VLAN ID of 3 enters the QinQ attachment
circuit (AC). If traffic has a CoS value of 1, 3, or 5 based on the inner VLAN tag, it matches class ic.
RP/0/RP0/CPU0:router(config)#policy-map p2
RP/0/RP0/CPU0:router(config-pmap)#class ic
RP/0/RP0/CPU0:router(config-pmap-c)#police rate percent 30
RP/0/RP0/CPU0:router(config-pmap-c-police)#bandwidth remaining percent 40
RP/0/RP0/CPU0:router(config-pmap-c)#class class-default
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 ic
RP/0/RP0/CPU0:router(config-cmap)#match cos inner 1 3 5
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.2 l2transport
OL-23235-03
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
Operations
read, write
match cos
37

Advertisement

Table of Contents
loading

Table of Contents