CLI Reference Guide-R07

Table Of Contents
Chapter 22
| Quality of Service Commands
– 527 –
set ip dscp This command modifies the IP DSCP value in a matching packet (as specified by the
match command). Use the no form to remove this traffic classification.
Syntax
[no] set ip dscp dscp
dscp - Differentiated Service Code Point (DSCP) value. (Range: 0-63)
Default Setting
None
Command Mode
Policy Map Class Configuration
Command Usage
The set ip dscp command is used to set the priority values in the packet’s ToS field
for matching packets.
Example
This example creates a policy called “rd-policy,” uses the class command to specify
the previously defined “rd-class,” uses the set ip dscp command to classify the
service that incoming packets will receive, and then uses the police rate command
to limit the average bandwidth to 100,000 Kbps.
Console(config)#policy-map rd-policy
Console(config-pmap)#class rd-class
Console(config-pmap-c)#set ip dscp 3
Console(config-pmap-c)#police rate 100000
Console(config-pmap-c)#
service-policy This command applies a policy map defined by the policy-map command to the
ingress side of a particular interface. Use the no form to remove this mapping.
Syntax
[no] service-policy input policy-map-name
input
- Apply to the input traffic.
policy-map-name
- Name of the policy map for this interface.
(Range: 1-32 characters)
Default Setting
No policy map is attached to an interface.
Command Mode
Interface Configuration (Ethernet)