set cos
To set the Layer 2 class of service (CoS) value of an outgoing packet, use the set cos command in policy
map class configuration mode. To remove a specific CoS value setting, use the no form of this command.
set cos [inner] cos-value
no set cos [inner] cos-value
Syntax Description
(Optional) Specifies the inner CoS in, for example, a QinQ configuration.inner
Specific IEEE 802.1Q CoS value from 0 to 7.
cos-value
Command Default
No Layer 2 CoS value of an outgoing packet is set.
Command Modes
Policy map class configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
The inner keyword was added.Release 4.0.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
Use the set cos command to mark a packet that is being sent to a switch. Switches can leverage Layer 2
header information, including a CoS value marking.
For Layer 3, the set cos command can be used only in service policies that are attached in the output direction
of an interface. Packets entering an interface cannot be set with a CoS value.
The set cos inner command is supported on:
•
Egress only: conditional and unconditional marking
•
Layer 2 main interfaces and subinterfaces
•
Layer 3 main interfaces
The set cos inner command is not supported on Layer 3 subinterfaces or on bundles.
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
OL-23235-03 97
Quality of Service Commands on the Cisco IOS XR Software
set cos