qos map dscp-cos

Creates a QoS map where the ingress DSCP value is mapped to outgoing 802.1P values. This configures a DSCP-to-CoS map on the ingress interface.

Syntax

qos map dscp-cos name
no qos map dscp-cos name
map dscp ingress dscp values to cos cos

Command Default

DSCP-to-CoS mutation is not enabled.

Parameters

name
Name of DSCP-to-CoS map
map dscp
Ingress DSCP values.
cos
Egress CoS values.
ingress dscp values
Input DSCP values. The range of ingress DSCP values is 0 through 63.
cos
CoS value. The range is 0 through 7.

Modes

dscp-cos mode for the QoS map dscp commands

Global configuration mode

Usage Guidelines

This command remaps the incoming DSCP values of the ingress packet to egress CoS 802.1P values.

When you enter qos map dscp-cos, the system is placed in dscp-cos mode for the configured map. At this point, you can map ingress DSCP values to egress CoS values using the map dscp command.

Enter qos dscp-cos name while in configuration mode for a specific interface to apply the DSCP-to-CoS map to that interface.

Enter no qos dscp-cos name while in the interface configuration mode to remove the DSCP-to-CoS map from the interface.

Enter no map dscp-cos name while in global configuration mode to remove the DSCP-to-CoS map.

Examples

To create a QoS DSCP-to-CoS map and place system into dscp-cos mode:

device# configure terminal
device(config)# qos map dscp-cos test 
device(dscp-cos-test)#

To map an ingress DSCP value to egress CoS value while in dscp-cos mode:

device# configure terminal
device(config)# qos map dscp-cos test 
device(dscp-cos-test)# map dscp 43 to cos 4

To map multiple ingress DSCP values to egress CoS values while in dscp-cos mode:

device# configure terminal
device(config)# qos map dscp-cos test 
device(dscp-cos-test)# map dscp 43 to cos 4
device(dscp-cos-test)# map dscp 63 to cos 6
device(dscp-cos-test)# map dscp 53 to cos 5 
device(dscp-cos-test)# map dscp 23 to cos 2

To remove a QoS DSCP-CoS map while in global configuration mode:

device# configure terminal
device(config)# no qos map dscp-cos test