Command:

mls qos map


Mode:

Switch(config)#


Syntax:

mls qos map {cos-dscp dscp1...dscp8 | dscp-cos dscp-list to cos}
no mls qos map {cos-dscp | dscp-cos}

 

Syntax Description:

cos-dscp dscp1...dscp8 Define the CoS-to-DSCP map.

For dscp1...dscp8, enter eight DSCP values that correspond to CoS values

0 to 7. Separate each DSCP value with a space.

The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56.

dscp-list to cos Define the DSCP-to-CoS map.

For dscp-list, enter up to 13 DSCP values separated by spaces. Then enter the to keyword. The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56.

For cos, enter the CoS value to which the DSCP values correspond. The CoS range is 0 to 7.

 

Command Description:

Use the mls qos map global configuration command to define the class of service (CoS)-to-Differentiated Services Code Point (DSCP) map or DSCP-to-CoS map. Use the no form of this command to return to the default map.

This command is available only if your switch is running the enhanced software image (EI).

Default CoS-to-DSCP Map

CoS Value 0 1 2 3 4 5 6 7
DSCP Value 0 8 16 24 32 40 48 56

Default DSCP-to-CoS Map

DSCP Value 0 8,10 16,18 24,26 32,34 40,46 48 56
CoS Value 0 1 2 3 4 5 6 7

All the maps are globally defined. You apply all maps to all ports.

If you enter the mls qos trust cos command, the default CoS-to-DSCP map is applied.

If you enter the mls qos trust dscp command, the default DSCP-to-CoS map is applied.

After a default map is applied, you can define the CoS-to-DSCP or DSCP-to-CoS map by entering consecutive mls qos map commands.

The supported DSCP values are 0, 8, 10, 16, 18, 24, 26, 32, 34, 40, 46, 48, and 56. If the mls qos trust dscp command is entered and a packet with an untrusted DSCP value is at an ingress port, the packet CoS value is set to 0.


Example:

This example shows how to define the DSCP-to-CoS map. DSCP values 16, 18, 24, and 26 are mapped to CoS 1. DSCP values 0, 8, and 10 are mapped to CoS 0.

Switch# configure terminal

Switch(config)# mls qos map dscp-cos 16 18 24 26 to 1

Switch(config)# mls qos map dscp-cos 0 8 10 to 0

This example shows how to define the CoS-to-DSCP map. CoS values 0 to 7 are mapped to DSCP values 8, 8, 8, 8, 24, 32, 56, and 56.

Switch# configure terminal

Switch(config)# mls qos map cos-dscp 8 8 8 8 24 32 56 56

You can verify your settings by entering the show mls qos maps privileged EXEC command.


Misconceptions:

The switches do not support the dscp-mutation, dscp-switch-priority, ip-prec-dscp, and policed-dscp options.


Related Commands:

mls qos cos
mls qos trust

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)