Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
491
Use this command to set the DSCP field, CoS field, or precedence field of the matched packet to a new
value. Use the set cos-queue command to directly assign the CoS queue to the matched packets.
Configure multiple set commands for a class if they are not conflicting.
The set dscp command will not affect the CoS queue selection. The set cos-queue command will not
alter the CoS field of the outgoing packet. The user can use the police command and the set command
for the same class. The set command will be applied to all colors of packets.
Example
This example shows how 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 DSCP of 10 and policed by a single rate
policer with a committed rate of 1Mbps.
Switch# configure terminal
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# set ip dscp 10
Switch(config-pmap-c)# police 1000 2000 exceed-action set-dscp-transmit 10
Switch(config-pmap-c)# exit
Switch(config-pmap)#
53-22 show class-map
This command is used to display the class map configuration.
show class-map [NAME]
Parameters
NAME
(Optional) Specifies the name of the class map. The class map name
can be a maximum of 32 alphanumeric characters.
Default
None.
Command Mode
EXEC Mode or Any Configuration Mode.
Command Default Level
Level: 1.
Usage Guideline
Use this command to display all class maps and their matching criteria.
Example
This example shows how two class maps are defined. Packets that match the access list acl_home_user
belong to the class c3, IP packets belong to the class c2.