Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
475
53-7 mls qos map cos-color
This command is used to define the CoS to color map for mapping a packet’s initial color. To return the
map to the default setting, use the no form of this command.
mls qos map cos-color COS-LIST to {green | yellow | red}
no mls qos map cos-color
Parameters
COS-LIST
Specifies the list of CoS values to be mapped to a color. The range of
CoS is from 0 to 7. The multiple CoS values in the list can be in the
form separated by commas or a range list.
Default
By default, all CoS values are mapped to the green color.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
When packets enter the ingress port, they will be colored based on either the DSCP to color map (if the
port is a trusted DSCP port) or the CoS to color map (if the port is a trusted CoS port).
Use the mls qos map cos-color command, in the interface configuration mode, to configure the CoS to
color map. If the ingress port is set to trusted CoS ports, the received packet will be initialized to a color
based on this map.
Example
This example shows how to define CoS value 1 to 7 as the red color and 0 as the green color for packets
arriving at eth 3/0/1.
Switch# configure terminal
Switch(config)# interface eth3/0/1
Switch(config-if)# mls qos map cos-color 1-7 to red
Switch(config-if)#
53-8 mls qos map dscp-color
This command is used to define the DSCP to color map for the mapping of a packet’s initial color. To
return the color map to the default setting, use the no form of this command.
mls qos map dscp-color DSCP-LIST to {green | yellow | red}
no mls qos map dscp-color DSCP-LIST
Parameters