Command Line Interface
9251553-KDU 137 365 Uen D 2006-06-16
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 an ACL
mask must also be set to enable filtering for the criteria specified in the
match command. See “mask (IP ACL)” on page 699 and “mask (MAC
ACL)” on page 713 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:
This example creates a class map call “rd_class#2,” and sets it to match packets
marked for IP Precedence service value 5:
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)#
Console(config)#class-map rd_class#2 match-any
Console(config-cmap)#match ip precedence 5
Console(config-cmap)#exit
Console(config)#access-list ip mask-precedence in
Console(config-ip-mask-acl)#mask any any precedence
Console(config-ip-mask-acl)#