EasyManuals Logo

Cisco CRS Command Reference Guide

Cisco CRS
154 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #104 background imageLoading...
Page #104 background image
Task ID
OperationsTask ID
read, writeqos
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
DescriptionCommand
Defines a traffic class and the associated rules that match packets to
the class.
class-map, on page 12
Creates or modifies a policy map that can be attached to one or more
interfaces to specify a service policy.
policy-map, on page 67
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
98 OL-23235-03
Quality of Service Commands on the Cisco IOS XR Software
set cos

Other manuals for Cisco CRS

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco CRS and is the answer not in the manual?

Cisco CRS Specifications

General IconGeneral
Operating SystemCisco IOS XR
Product TypeCore Router
Form FactorModular Chassis
DimensionsVaries by chassis type
WeightVaries by chassis type
ArchitectureDistributed
Switch FabricMulti-stage
Interface SupportEthernet, SONET/SDH, OTN
Interfaces/PortsVaries by line card
Port DensityVaries by line card
Routing ProtocolBGP, IS-IS, OSPF, MPLS
ManagementCLI, SNMP
Power SupplyRedundant, hot-swappable
CoolingRedundant, Hot-swappable Fan Trays
Supported ProtocolsIPv4, IPv6, MPLS
Management InterfacesEthernet, console
Security FeaturesACLs

Related product manuals