Administrator Guide

Layer 2 Switching Commands 673
Command Mode
Global Configuration or Interface Configuration (Ethernet, Port-channel)
mode
User Guidelines
None
Example
The following example globally configures a mapping for user priority 1 and
traffic class 2. If trust mode is enabled for 802.1p (classofservice trust dot1p),
packets received on any interface marked with IEEE 802.1p priority 1 will be
assigned to internal CoS queue 2.
console(config)#classofservice dot1p-mapping 1 2
classofservice ip-dscp-mapping
Use the classofservice ip-dscp-mapping command in Global Configuration
mode to map an IP DSCP value to an internal traffic class. Use the no form of
the command to return the classofservice mapping to the default, and remove
a traffic class mapping for an IP DSCP value.
Syntax
classofservice ip-dscp-mapping ipdscp trafficclass
no classofservice ip-dscp-mapping
ipdscp—Specifies the IP DSCP value which is to be mapped to the
specified traffic class. (Range: 0–63 or an IP DSCP keyword – af11, af12,
af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, be, cs0, cs1, cs2,
cs3, cs4, cs5, cs6, cs7, ef).
trafficclass—Specifies the traffic class for this value mapping. (Range: 0–
6).
Default Configuration
The default DSCP mapping is as follows: