Class-map Commands
XSR CLI Reference Guide 12-103

match cos

ThiscommandidentifiesaspecificIEEE802.1priorityvalueasamatchcriterion.Upto8priority
valuescanbematchedinonematchstatement.Forexample,ifyouwantedthepriorityvaluesof
0,1,2,3,4,5,6,or7(notethatonlyoneofthepriorityvaluesmustbeasuccessfulmatchcriterion,
notallofthespecifiedpriorityvalues),enterthematch cos 0 1 2 3 4 5 6 7command.
Thiscommandisusedbytheclassmaptoidentifyaspecificpriorityvaluemarkingontheheader
ofincomingVLANpackets.Bycomparison,theset cos commandmarkstheheadersofoutgoing
VLANpackets.Forinformationonthevlancommand,gotopage491intheConfiguring
HardwareControllerschapter.
Syntax
match cos ieee802.1p-value [ieee802.1p-value] [ieee802.1p-value] ...
Syntax of the “no” Form
Thenoformofthiscommandremovesthematchclause:
no match cos
Default
NomatchclauseforVLANpriority
Mode
Classmapconfiguration:XSR(config-cmap-xx)#
Example
ThefollowingexampleexampleconfiguresclassmapmatchCos5To7thatmatchesinputpriority
valuesfrom5to7:
XSR(config)#class-map matchCos5To7
XSR(config-cmap<matchCos5To7>)#match cos 5 6 7

match ip dscp

ThiscommandidentifiesaspecificIPDifferentiatedServiceCodePoint(DSCP)valueasamatch
criterion.Upto8IPDSCPvaluescanbematchedinonematchstatement.Forexample,ifyou
wantedtheIPDCSPvaluesof0,1,2,3,4,5,6,or7(notethatonlyoneoftheIPDSCPvaluesmust
beasuccessfulmatchcriterion,notallofthespecifiedIPDSCPvalues),enterthematchip dscp 0
1 2 3 4 5 6 7 command.
ThiscommandisusedbytheclassmaptoidentifyaspecificIPDSCPvaluemarkingonapacket.
Theipdscpvalueargumentsareusedasmarkingsonly.TheIPDSCPvalueshavenomathematical
significance.Forinstance,theipdscpvalueof2isnotgreaterthan1.Thevaluesimplyindicates
thatapacketmarkedwiththeipdscpvalueof2isdifferentthanapacketmarkedwiththeipdscp
valueof1.ThetreatmentofthesemarkedpacketsisdefinedbytheuserthroughthesettingofQoS
policiesinpolicymapclassconfigurationmode.
ieee802.1p-value PriorityvalueintheinputVLANheader,rangingfrom0to7.