37-29
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engines II-Plus, II+10GE, IV, V, V-10GE, 4924, 4948, and 4948-10GE
policy-map—Enter the policy-map command to define the following for each class of traffic:
Internal DSCP source
Aggregate or individual policing and marking
service-policy—Enter the service-policy command to attach a policy map to an interface.
Configuring a Class Map (Optional)
The following subsections describe class map configuration:
Creating a Class Map, page 37-29
Configuring Filtering in a Class Map, page 37-29
Verifying Class-Map Configuration, page 37-30
Enter the class-map configuration command to define a traffic class and the match criteria that will be
used to identify traffic as belonging to that class. Match statements can include criteria such as an ACL,
an IP precedence value, or a DSCP value. The match criteria are defined with one match statement
entered within the class map configuration mode.

Creating a Class Map

To create a class map, enter this command:

Configuring Filtering in a Class Map

To configure filtering in a class map, enter one of these commands:
Command Purpose
Switch(config)# [no] class-map [match-all |
match-any] class_name Creates a named class map.
Use the no keyword to delete a class map.
Command Purpose
Switch(config-cmap)# [no] match access-group
{acl_index | name acl_name} (Optional) Specifies the name of the ACL used to filter traffic.
Use the no keyword to remove the statement from a class
map.
Note Access lists are not documented in this publication.
For more information, see the reference under
access-list in the “Configuring a QoS Policy” section
on page 37-28.
Switch (config-cmap)# [no] match ip precedence
ipp_value1 [ipp_value2 [ipp_valueN]] (Optional—for IP traffic only) Specifies up to eight IP
precedence values used as match criteria. Use the no keyword
to remove the statement from a class map.
Switch (config-cmap)# [no] match ip dscp dscp_value1
[dscp_value2 [dscp_valueN]] (Optional—for IP traffic only) Specifies up to eight DSCP
values used as match criteria. Use the no keyword to remove
the statement from a class map.