set dscp
To mark a packet by setting the IP differentiated services code point (DSCP) in the type of service (ToS) byte,
use the
set dscp
command in policy-map class configuration mode. To remove a previously set DSCP value,
use the
no
form of this command.
set dscp [tunnel] dscp-value
no set dscp [tunnel] dscp-value
Syntax Description
(Optional) Sets the DSCP on the outer IP header. This command is available on Layer 3
interfaces in the ingress direction.
tunnel
Number from 0 to 63 that sets the DSCP value. Reserved keywords can be specified instead
of numeric values.
Table 2: IP DSCP Reserved Keywords, on page 17
describes the reserved
keywords.
dscp-value
Command Default
No default behavior or values
Command Modes
Policy map class configuration
Command History
Modification
Release
This command was introduced.
Release 6.0
Usage Guidelines
After the DSCP bit is set, other quality-of-service (QoS) services can then operate on the bit settings. The
set
dscp
is supported only in the ingress direction.
The network gives priority (or some type of expedited handling) to marked traffic. Typically, you set the
DSCP value at the edge of the network (or administrative domain); data then is queued based on the DSCP
value.
Task ID
Operations
Task
ID
read,
write
qos
Examples
In this example, the DSCP ToS byte is set to 6 in the policy map called policy-in. All packets that
satisfy the match criteria of class1 are marked with the DSCP value of 6. The network configuration
determines how packets are marked.
RP/0/RP0/CPU0:router (config)#
policy-map policy-in
RP/0/RP0/CPU0:router(config-pmap)#
class class1
RP/0/RP0/CPU0:router(config-pmap-c)#
set dscp 6
Modular QoS Command Reference for Cisco NCS 5500 Series and Cisco NCS 540 Series Routers
33
QoS Classification Commands
set dscp