match
This command defines the criteria used to classify traffi c. Use t he
no
form to delete
the matching criteria.
Syntax
[no] match {access-list acl-name | ip dscp dscp | ipv6 dscp dscp | ip
precedence ip-precedence | vlan vlan}
acl-name - Name of the access control list. Any type of ACL can b e
specified, including standard or extended IP ACLs and MAC ACLs.
(Range: 1-16 characters)
dscp - A Differentiated Service Co de Point v alue. (Ra nge: 0-63)
ip-precedence - An IP Precedence value. (Range: 0-7)
vlan - A VLAN. (Range:1-4093)
Default Setting
None
Command Mode
Class Map Configuration
Command Usage
• First enter the class-map command to designate a class map and enter the
Class Map configuration mode. Then use the
match
command to specify the
fields within ingress packets that must match to qualify for this class map.
If an ingress packet matches an ACL specified by this comma nd, any den y
rules included in the ACL w ill be ign ored.
• If match criteria includes an IP ACL o r IP priority ru le, then a VL AN rule cannot
be included in the same class map.
If match criteria includes a MAC ACL or VLAN rule, then neither an IP ACL nor
IP priority rule can be included in the same clas s map.
• Up to 16 match commands are permitted per class map.
Example
This example creates a class map called “rd_class#1,” and sets it to match pa ckets
marked for DSCP service value 3:
Console(config)#class-map rd_class#1_ match-any
Console(config-cmap)#match ip dscp 3
Console(config-cmap)#
This example creates a class map call “rd_class#2,” and sets it to matc h packets
marked for IP Precedence service value 5:
Console(config)#class-map rd_class#2 match-any
Console(config-cmap)#match ip precedence 5
Console(config-cmap)#
36-3match
36