Microsoft ES4649 Switch User Manual


 
Command Line Interface
4-220
4
Related Commands
show class map (4-225)
match
This command defines the criteria used to classify traffic. Use the no form to delete
the matching criteria.
Syntax
[no] match {access-list acl-name | ip dscp dscp | ip precedence
ip-precedence | vlan vlan}
acl-name - Name of the access control list. Any type of ACL can be
specified, including standard or extended IP ACLs and MAC ACLs.
(Range: 1-16 characters)
dscp - A DSCP value. (Range: 0-63)
ip-precedence - An IP Precedence value. (Range: 0-7)
vlan - A VLAN. (Range:1-4094)
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.
Only one match command can be entered per class map.
The class map uses the Access Control List filtering engine, so you must also
set an ACL mask to enable filtering for the criteria specified in the match
command. See “mask (IP ACL)” on page 4-94 and “mask (MAC ACL)” on
page 4-102 for information on configuring an appropriate ACL mask.
Example
This example creates a class map called “rd_class#1,” and sets it to match packets
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)#exit
Console(config)#access-list ip mask-precedence in
Console(config-ip-mask-acl)#mask any any dscp
Console(config-ip-mask-acl)#