26-21
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 26 Configuring QoS Configuring QoS
To delete an existing class map, use the no class-map class-map-name global configuration command.
To re move a m a tch cri ter io n, use t he no match {access-group acl-index | name acl-name | ip dsc p}
class -m ap c on figura t io n co mm and .
This exampl e shows how to configure the cl ass map cal led class1. The class1 ha s one ma tch c rit eri on,
which is an ACL called 103.
Switch(config)# access-list 103 permit any any tcp eq 80
Switch(config)# class-map class1
Switch(config-cmap)# match access-group 103
Switch(config-cmap)# end
Switch#

Classifying, Policing, and Marking Traffic by Using Policy Maps

A polic y map specif ies which t raff ic class to act on. Actions ca n include trustin g th e CoS or DSCP v alues
in the traf fic class; s etting a specif ic DSCP valu e in th e traf fi c class ; and spec ifying the traf f ic bandwid th
limitation s for each matched tr aff ic class (po licer) and the ac tion to take when the traf fic is out of prof ile
(marking).
A policy map also has these characteristics:
A policy map can contain multiple class statements, each with different match criteria and policers.
A separate policy-map class can exist for each type of traffic received through an interface.
You can attach only one policy map per interface in the input direction.
Step 4 match {access-group acl-index |
access-group name acl-name | ip dscp
dscp-list}
Define the match criterion to classify traffic.
By defau lt, no mat ch cr iteri on is supp orte d.
Only one match criterion per class map is supported, and only one ACL
per class map is sup ported.
For access-group acl-index or access-group name acl-name , s pec ify
the number or name of the ACL created in Step 3.
For ip dscp dscp-list, enter a list of up to eight IP DSCP v alues for each
match statement to match agains t incoming packets. Separate each
value with a space. The supported DSCP values are 0, 8, 10, 16, 18, 24,
26, 32, 3 4, 40, 4 6, 48 , an d 5 6.
Step 5 end Return to privileged EXEC mode.
Step 6 show class- map [class-map-name] Ver ify your entr ies.
Step 7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose