7-24
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 7 Marking Traffic
Configuring Traffic Marking
Router(config)# interface GigabitEthernet 2/0/1
Router(config-if)# service-policy output Second
Configuring IP DSCP Marking
To mark the DSCP field of packets, enter the following commands beginning in global configuration
mode:
Command Purpose
Step 1
Router(config)# policy-map policy-map-name
Specifies the name of the policy map and enters policy-map
configuration mode.
policy-map-name is the name of the policy map.
Step 2
Router(config-pmap)# class class-map-name
Assigns the traffic class you specify to the policy map. Enters
policy-map class configuration mode.
class-map-name is the name of a previously configured class
map and is the traffic class for which you want to define QoS
actions.
Step 3
Router(config-pmap-c)# set ip dscp
{dscp-value | afxy | csx | ef | default}
Sets the DSCP value in the ToS byte.
ip specifies that the match is for IPv4 packets only. You must
specify this keyword.
dscp dscp-value sets the DSCP value. Valid values are from 0
to 63.
Instead of specifying a numeric dscp-value, you can specify
one of the following reserved keywords:
• afxy indicates assured forwarding points. The first
number (x) indicates the AF class. Valid values are from
1 to 4. The second number (y) indicates the level of drop
preference within each class. Valid values are from
1
(low drop) to 3 (high drop).
• cs indicates class selector code points that are
backward-compatible with IP precedence. Valid values
for x are 1 through 7. The CS code points (CS1 through
CS7) are identical to IP precedence values 1 through 7.
• ef indicates expedited forwarding.
• default indicates best effort or DSCP 0.
For more information, see Table 7-4 on page 7-8.