Cisco Systems 2960 Model Vehicle User Manual


  Open as PDF
of 1004
 
33-66
Catalyst 2960 and 2960-S Switch Software Configuration Guide
OL-8603-09
Chapter 33 Configuring QoS
Configuring Standard QoS
You can configure multiple DSCP-to-DSCP-mutation maps on an ingress port. The default
DSCP-to-DSCP-mutation map is a null map, which maps an incoming DSCP value to the same DSCP
value.
Beginning in privileged EXEC mode, follow these steps to modify the DSCP-to-DSCP-mutation map.
This procedure is optional.
To return to the default map, use the no mls qos dscp-mutation dscp-mutation-name global
configuration command.
This example shows how to define the DSCP-to-DSCP-mutation map. All the entries that are not
explicitly configured are not modified (remains as specified in the null map):
Switch(config)# mls qos map dscp-mutation mutation1 1 2 3 4 5 6 7 to 0
Switch(config)# mls qos map dscp-mutation mutation1 8 9 10 11 12 13 to 10
Switch(config)# mls qos map dscp-mutation mutation1 20 21 22 to 20
Switch(config)# mls qos map dscp-mutation mutation1 30 31 32 33 34 to 30
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# mls qos trust dscp
Switch(config-if)# mls qos dscp-mutation mutation1
Switch(config-if)# end
Switch# show mls qos maps dscp-mutation mutation1
Dscp-dscp mutation map:
mutation1:
d1 : d2 0 1 2 3 4 5 6 7 8 9
---------------------------------------
0 : 00 00 00 00 00 00 00 00 10 10
1 : 10 10 10 10 14 15 16 17 18 19
2 : 20 20 20 23 24 25 26 27 28 29
3 : 30 30 30 30 30 35 36 37 38 39
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
mls qos map dscp-mutation
dscp-mutation-name in-dscp to out-dscp
Modify the DSCP-to-DSCP-mutation map.
For dscp-mutation-name, enter the mutation map name. You can
create more than one map by specifying a new name.
For in-dscp, enter up to eight DSCP values separated by spaces.
Then enter the to keyword.
For out-dscp, enter a single DSCP value.
The DSCP range is 0 to 63.
Step 3
interface interface-id Specify the port to which to attach the map, and enter interface
configuration mode.
Valid interfaces include physical ports.
Step 4
mls qos trust dscp Configure the ingress port as a DSCP-trusted port. By default, the port
is not trusted.
Step 5
mls qos dscp-mutation
dscp-mutation-name
Apply the map to the specified ingress DSCP-trusted port.
For dscp-mutation-name, enter the mutation map name specified in
Step 2.
Step 6
end Return to privileged EXEC mode.
Step 7
show mls qos maps dscp-mutation Verify your entries.
Step 8
copy running-config startup-config (Optional) Save your entries in the configuration file.