Creating a dscp-to-cos mutation map, Applying a dscp-to-cos map to an interface – Brocade Network OS Administrator’s Guide v4.1.1 User Manual
Page 493

Creating a DSCP-to-CoS mutation map
You can use the incoming DSCP value of ingress packets to remap the outgoing 802.1P CoS priority
values by configuring a DSCP-to-COS mutation map on the ingress interface. Use the following steps.
NOTE
The restrictions for using this feature in VCS mode are listed at
Restrictions for Layer 3 features in VCS
on page 481.
1. Enter global configuration mode.
switch# configure terminal
2. Create the DSCP-to-CoS map by specifying a map name. The following command uses "test" as the
map name and places the system in dscp-cos map mode so that you can map DSCP values to CoS
values.
switch(configure)# qos map dscp-cos test
3. Once the system is in dscp-cos map mode for the configured map (in this case dscp-cos-test), you
can map incoming DSCP values to outgoing CoS priority values by using the mark command as in
the following examples:
switch(dscp-cos-test)# mark 1,3,5,7 to 3
switch(dscp-cos-test)# mark 11,13,15,17 to 5
switch(dscp-cos-test)# mark 12,14,16,18 to 6
switch(dscp-cos-test)# mark 2,4,6,8 to 7
This sets the following:
• DSCP values 1, 3, 5, and 7 are set to output as CoS priority 3.
• DSCP values 11, 13, 15, and 17 are set to output as CoS priority 5
• DSCP values 12, 14, 16, and 18 are set to output as CoS priority 6
• DSCP values 2, 4, 6, and 8 are set to output as CoS priority 7.
4. Enter the copy command to save the running-config file to the startup-config file.
switch(config)# copy running-config startup-config
Applying a DSCP-to-CoS map to an interface
To apply a DSCP-to-CoS mutation map to an interface, perform the following steps from privileged
EXEC mode.
1. Enter global configuration mode.
switch# configure terminal
2. Specify the Ethernet interface.
The gigabitethernet rbridge-id/slot/port operand is used only for the Brocade VDX 6710, Brocade
VDX 8770-4, and Brocade VDX 8770-8.
switch(config)# interface tengigabitethernet 1/1/2
3. Activate or apply changes made to the DSCP-to-CoS mutation map. In this example, "test" is the
map name.
switch(conf-if-te-1/1/2)# qos dscp-cos test
NOTE
To deactivate a map from an interface, enter no qos dscp-cos name.
4. Specify the DSCP trust mode for incoming traffic.
Use this command to specify the interface ingress DSCP trust mode, which controls user priority
mapping of incoming traffic. The untrusted mode will not classify packets based on DSCP. The
Creating a DSCP-to-CoS mutation map
Network OS Administrator’s Guide
493
53-1003225-04