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
2 (Ethernet only) and 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 45
describes the reserved keywords.
dscp-value
Command Default
No default behavior or values
Command Modes
Policy map class configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
The tunnel keyword is supported for QoS in a Multicast Virtual Private
Network (mVPN) enabled network that requires both conditional and
unconditional marking of DSCP bits on the tunnel header.
Release 3.8.0
Support for the tunnel keyword on Layer 2 interfaces was added.Release 3.9.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
After the DSCP bit is set, other quality-of-service (QoS) services can then operate on the bit settings.
Conditional marking marks the DSCP values on the tunnel header as a policer action. Unconditional marking
marks the DSCP tunnel as a policy action. Both conditional and unconditional markings are supported only
in the ingress direction.
The tunnel keyword is available on Layer 2 (Ethernet only) and Layer 3 interfaces in the ingress direction.
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
102 OL-23235-03
Quality of Service Commands on the Cisco IOS XR Software
set dscp