DXS-3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide
1103
87-21
set
This command is used to configure the new precedence field, DSCP field, and CoS field of the outgoing
packet. The user can also specify the CoS queue for the packet.
set {[ip] precedence PRECEDENCE | [ip] dscp DSCP | cos COS | cos-queue COS-QUEUE}
no set {[ip] precedence PRECEDENCE | [ip] dscp DSCP | cos COS | cos-queue COS-QUEUE}
Parameters
precedence PRECEDENCE
Specifies a new precedence for the packet. The range is from 0 to 7. If
the optional keyword
ip
is specified, IPv4 precedence will be marked. If
not specified, both IPv4 and IPv6 precedence will be marked. For IPv6
packets, the precedence is the most three significant bits of traffic
class of IPv6 header. Setting the precedence will not affect the CoS
queue selection.
dscp DSCP
Specifies a new DSCP for the packet. The range is from 0 to 63. If the
optional keyword
ip
is specified, IPv4 DSCP will be marked. If not
specified, both IPv4 and IPv6 DSCP will be marked. Setting DSCP will
not affect the CoS queue selection.
cos COS
Specifies to assign a new CoS value to the packet. The range is from 0
to 7. Setting CoS will not affect the CoS queue selection.
cos-queue COS-QUEUE
Specifies to assign the CoS queue to the packets. This overwrites the
original CoS queue selection. Setting the CoS queue will not take
effect if the policy map is applied for the egress flow on the interface.
Default
None.
Command Mode
Policy-map Class Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
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 1000000 2000 exceed-action set-dscp-transmit 10
Switch(config-pmap-c)# exit
Summary of Contents for DXS-3600 Series
Page 1: ......
Page 423: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 418 ...
Page 548: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 543 ...
Page 673: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 668 ...
Page 712: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 707 Switch ...
Page 845: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 840 ...
Page 884: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 879 ...
Page 1152: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 1147 ...