DGS-6604
m
set
CLI Reference Guide
547
set
Use the set command in policy map class configuration mode to set the new
precedence field, DSCP field, and CoS field of the out-going packet. The user
can also directly specify the CoS queue for the packet.
set {[ip] precedence
PRECEDENCE
| [ip] dscp
DSCP
| cos
COS
| internal-cos
COS
}
no set {[ip] precedence
PRECEDENCE
| [ip] dscp
DSCP
| cos
COS
| internal-cos
COS
}
Default
Not configured
Command Mode
Policy-map class configuration
Usage Guideline
Use the set command to set the DSCP field, COS field, or precedence field of the
matched packet to a new value. Use set internal-cos command to directly assign
the CoS queue to the matched packet.
Configure multiple set commands for a class if they are not conflicting. For
example, precedence and dscp cannot be set at the same time.
The set dscp command will not affect the CoS queue selection. The set internal-
cos command will not alter the CoS field of the outgoing packet.
If the policer is applied as the policy for the traffic class, the set actions
configured by this command will be applied to the conforming packets. They will
not be applied to the exceeding packet and the violating packet.
Example
In the following example, the policy map policy1 is configured with the policy for
the class1 class. The packets that are included in the class1 class will be set to a
Syntax Description
precedence
PRECEDENCE
Specifies a new precedence for the packet. The range is 0 to 7.
If the optional keyword
ip
is specified, then the IPv4 precedence will be marked.
Note that setting of precedence will not affect the CoS queue selection.
dscp
DSCP
Specifies a new DSCP for the packet. The range is 0 to 63.
The optional keyword ip is specified, then the IPv4 DSCP will be marked.
Note that setting of DSCP will not affect the CoS queue selection.
cos
COS
Assigns a new cos value to the packet. The range is 0 to 7.
Note that setting of CoS will not affect the CoS queue selection.
internal-cos
COS
Assigns the CoS queue to the packet. This overwrite the original CoS queue
selection.