28-47
Catalyst 3560 Switch Software Configuration Guide
78-16156-01
Chapter 28 Configuring QoS
Configuring Standard QoS
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input aggflow1
Switch(config-if)# exit
Configuring DSCP Maps
These sections describe how to configure the DSCP maps:
•
Configuring the CoS-to-DSCP Map, page 28-47
(optional)
•
Configuring the IP-Precedence-to-DSCP Map, page 28-48
(optional)
•
Configuring the Policed-DSCP Map, page 28-49
(optional, unless the null settings in the map are
not appropriate)
•
Configuring the DSCP-to-CoS Map, page 28-50
(optional)
•
Configuring the DSCP-to-DSCP-Mutation Map, page 28-51
(optional, unless the null settings in the
map are not appropriate)
All the maps, except the DSCP-to-DSCP-mutation map, are globally defined and are applied to all ports.
Configuring the CoS-to-DSCP Map
You use the CoS-to-DSCP map to map CoS values in incoming packets to a DSCP value that QoS uses
internally to represent the priority of the traffic.
Table 28-12
shows the default CoS-to-DSCP map.
If these values are not appropriate for your network, you need to modify them.
Beginning in privileged EXEC mode, follow these steps to modify the CoS-to-DSCP map. This
procedure is optional.
To return to the default map, use the no mls qos cos-dscp global configuration command.
Table 28-12 Default CoS-to-DSCP Map
CoS value
0
1
2
3
4
5
6
7
DSCP value
0
8
16
24
32
40
48
56
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
mls qos map cos-dscp dscp1...dscp8
Modify the CoS-to-DSCP map.
For dscp1...dscp8, enter eight DSCP values that correspond to CoS values
0 to 7. Separate each DSCP value with a space.
The DSCP range is 0 to 63.
Step 3
end
Return to privileged EXEC mode.
Step 4
show mls qos maps cos-dscp
Verify your entries.
Step 5
copy running-config startup-config
(Optional) Save your entries in the configuration file.