Specifications

2-499
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
set cos
set cos
To set the Layer 2 class of service (CoS) value of a packet, use the set cos command in policy-map class
configuration mode. To remove a specific CoS val ue setting, use the no form o f this command.
set cos {cos-value | from-field [table table-map -name]}
no set cos {cos-value | from-field [table table-map-name]}
Syntax Description
Command Default No CoS value is set for the outgoing packet.
Command Modes Policy-map class configuration mode
Usage Guidelines The set cos command can be used in an ingress as well as an egress policy map attached to an interface
or VLAN.
You can use this command to specify the “from-field” packet-marking category to be used f or mapping
and setting the CoS value. The “from-field” packet-marking categories are as follows:
Precedence
Differentiated services code point (DSCP)
Cost of Service (CoS)
Quality of Service (QoS) group
If you specify a “from-field” categor y but do not specify the table keyword and the applicable
table-map-name argume nt, the default action will be to copy the value associated with the “from-fi eld”
category as the CoS value. For instance, if you configure the set cos precedence command, the
precedence value will be copied and used as the CoS value.
You can do the same for the DSCP marking category. That is, you can configure the set cos dscp
command, and the DSCP value will be copied and used as the CoS value.
cos-val ue Specific IEEE 802. 1Q CoS value from 0 to 7.
from-field Specific packet-marking category to be used to set the CoS value of the
packet. If you are using a table map for mapping and converting
packet-marking values, this esta blishes the “map from” pa cket-marking
category. Packet-marking category keywords are as follows:
precedence
dscp
cos
qos group
table (Optional) Indicates that the values set in a specified table map will be used
to set the CoS value.
table-map-name (Optional) Name of the table map used to specify the CoS value. The table
map name can be a maximum of 64 alphanumeric characters.