set cos
set cos
Use the set cos policy-map class configuration command to set a Layer 2 class of service (CoS) value in
the packet. Use the no form of this command to remove traffic marking.
Syntax Description
cos_value
from-field
table
table-map-name
Defaults
No traffic marking is defined.
Command Modes
Policy-map class configuration
Command History
Release
12.2(25)EX
12-2(25)SEG
Usage Guidelines
You can configure set cos with all other marking actions, specifically set dscp, set precedence, and set
qos-group, for the same class. Support was also added for the ability to configure more than one marking
action with enhanced packet marking by using table maps for the same class.
Use the set cos command if you want to mark a packet that is being sent to a switch. Switches can
leverage Layer 2 header information including a CoS value marking.
Cisco ME 3400 Ethernet Access Switch Command Reference
2-378
set cos {cos_value | from-field [table table-map-name]}
no set cos {cos_value | from-field [table table-map-name]}
Modification
This command was introduced.
Support was added to set multiple marking actions and to use table maps for
enhanced packet marking. See "Usage Guidelines."
Chapter 2 Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands
Enter an IEEE 802.1Q class of service/user priority value with which
to classify traffic. The range is from 0 to 7.
Specific a 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 establishes the map-from packet-marking
category.
These options are supported:
cos—CoS value
•
dscp—Differentiated Services Code Point (DSCP) value.
•
precedence—IP-precedence value
•
(Optional) Used in conjunction with the from-field keyword. Indicates
that the values set in a specified table map are used to set the CoS value
(Optional) Used in conjunction with the table keyword. Name of the
table map used to specify the CoS value. The table map name can be a
maximum of 64 alphanumeric characters.
OL-9640-10