map dscp

Maps an ingress DSCP value to an outbound CoS, DSCP, or traffic-class value for a QoS DSCP-to-CoS, DSCP-mutation, or DSCP-to-traffic class map.

Syntax

map dscp dscp-value to { cos cos-value } | { dscp dscp-out } | { traffic-class tc-value }
no map dscp dscp-value

Command Default

The default values for DSCP to CoS, DSCP mutation, or DSCP to traffic class mapping.

Parameters

dscp-value
Specifies the ingress DSCP value or range. Enter an integer from 0 to 63.
cos cos-value
Specifies the outbound CoS value. Enter an integer from 0 to 7.
dscp dscp-out
Specifies the outbound DSCP value or range. Enter an integer from 0 to 63.
traffic-class tc-value
Specifies the outbound Traffic Class value. Enter an integer from 0 to 7.

Modes

DSCP CoS configuration mode

DSCP mutation configuration mode

DSCP traffic-class configuration mode

Usage Guidelines

Use the no form of the command to reset the default mapping values.

Examples

In DSCP COS configuration mode, the following example maps an ingress DSCP value to an egress CoS value.

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

In DSCP mutation configuration mode, the following example maps the ingress DSCP values to an egress DSCP value.

device# configure terminal
device(config)# qos map dscp-mutation test 
device(dscp-mutation-test)# map dscp 1,3,5,7 to dscp 40

In DSCP traffic configuration mode, the following example maps the ingress DSCP values to a traffic class.

device# configure terminal
device(config)# qos map dscp-traffic-class test
device(dscp-traffic-class-test)# map dscp 1,3,5,7 to traffic-class 1