Class-map Commands
XSR CLI Reference Guide 12-101
Class-map Commands
class-map
Thiscommandcreatesaclassmapformatchingpacketstoaspecifiedclass.Useittospecifythe
nameoftheclassforwhichyouwanttocreateormodifyclassmapmatchcriteria.
Packetsarrivingattheoutputinterfacearecheckedagainstthematchcriteriasetforaclassmap
to
determineifthepacketbelongstothatclass.Sub‐commandsassociatedwiththecommandare:
•
match access-group‐configuresthematchcriteriaforaclassmaponthebasisofa
configuredACL.Gotopage12‐102forthecommanddefinition.
•
match cos‐identifiesaspecificIEEE802.1priorityvalueasamatchcriterion.Goto
page12‐103forthecommanddefinition.
•
match ip dscp‐identifiesaspecificIPDifferentiatedServiceCodePoint(DSCP)valueasa
matchcriterion.Gotopage12‐103forthecommanddefinition.
•
match ip precedence‐identifiesIPprecedencevaluesasmatchcriteria.Gotopage12‐104
forthecommanddefinition.
Syntax
class-map {match-all match-any} class-map-name
Syntax of the “no” Form
Usethenoformofthiscommandtoremoveanexistingclassmap:
no class-map [match-all] | [match-any] word
Mode
Globalconfiguration:XSR(config)#
Next Mode
Class‐Mapconfiguration:XSR(config-cmap<xx>)#
Default
match‐all
Example
Thefollowingexamplecreatesclass‐mapclass57anddefinesitsmatchcriterionwithpolicymap
policy99whichisconfiguredtocontainpolicyrulesforclass57andthedefaultclass.
match-all
Packetsmustmatchallcriteriaintheclass‐maptobelongtotheclass‐name.
match-any
Packetsmustmatchany(oneormore)criteriaintheclassmaptobelongto
theclass‐name.
class-map-
name
Designationfortheclass‐mapwhichisusedfortheclassmapandtoset
policyfortheclassinthepolicymap.