240 Cisco LAN Switching Configuration Handbook
b. (Optional) Use an access list for matching candidate traffic:
(cmap) match access-group name acc-list
The class map matches traffic that is permitted by the access list acc-list (named
or numbered). This access list is configured in Step 6.
c. (Optional) Match against IP precedence values:
(cmap) match ip precedence ipprec1 [...ipprecN]
Up to eight IP precedence ipprec (0 to 7) values can be given to match against.
Separate the values by spaces. Available values are critical (5), flash (3), flash-
override (4), immediate (2), internet (6), network (7), priority (1), and routine
(0).
d. (Optional) Match against DSCP values:
(cmap) match ip dscp dscp1 [...dscpN]
Up to eight DSCP values can be given to match against. These values should be
separated by spaces.
The dscp values can be given as a number (6 bits, 0 to 63) or as a text string
name. Available names are default (000000), ef (Express Forwarding, EF,
101110), (Assured Forwarding, AF) af11 (001010), af12 (001100), af13
(001110), af21 (010010), af22 (010100), af23 (010110), af31 (011010), af32
(011100), af33 (011110), af41 (100010), af42 (100100), af43 (100110), (Class
Selector, CS) cs1 (precedence 1, 001000), cs2 (precedence 2, 010000), cs3
(precedence 3, 011000), cs4 (precedence 4, 100000), cs5 (precedence 5, 101000),
cs6 (precedence 6, 110000), and cs7 (precedence 7, 111000).
8. Define a QoS policy.
a. Create the policy:
(global) policy-map policy-name
b. Use one or more class maps to find matching traffic.
â– (Optional) Use an existing class map:
(pmap) class class-name
If a class map is already defined, it can be referenced by its name class-
name (text string).
â– (Optional) Create a new class map:
(pmap) class class-name {access-group acc-list | dscp dscp1
[...dscpN] | precedence ipprec1 [...ipprecN]}
A class map can also be created while the policy is defined. This offers a
more efficient way to define class maps.
c. (Optional) Set the QoS trust state:
(pmap-class) trust {cos | dscp | ip-precedence}