
29-43
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-09
Chapter 29 Configuring QoS
Configuring Standard QoS
To delete an existing class map, use the no class-map [match-all | match-any] class-map-name global
configuration command. To remove a match criterion, use the no match {access-group
acl-index-or-name | ip dscp | ip precedence} class-map configuration command.
This example shows how to configure a class map called dscp_class whose match criterion is to match
IP DSCP 9. A second class map, called vlan_class, matches traffic on VLANs 10, 20 to 30, and 40 to
class map dscp_class:
Switch(config)# class-map match-any dscp_class
Switch(config-cmap)# match ip dscp 9
Switch(config-cmap)# exit
Switch(config)# class-map match-all vlan_class
Switch(config-cmap)# match vlan 10 20-30 40
Switch(config-cmap)# match class-map dscp_class
Switch(config-cmap)# exit
Classifying, Policing, and Marking Traffic by Using Policy Maps
A policy map specifies which traffic class to act on. Actions can include trusting the CoS, DSCP, or IP
precedence values in the traffic class; setting a specific CoS, DSCP, or IP precedence value in the traffic
class; and specifying the traffic bandwidth limitations for each matched traffic class (policer) and the
action to take (marking) when the traffic is out of profile.
A policy map also has these characteristics:
•
A policy map can contain multiple class statements, each with different match criteria and policers.
•
A separate policy-map class can exist for each type of traffic received through an interface.
•
A policy-map trust state supersedes an interface trust state.
Only one policy map per interface per direction is supported. You can apply the same policy map to
multiple interfaces and directions.
Beginning in privileged EXEC mode, follow these steps to create a policy map:
Step 8
match class-map class-map-name
Specify the name of the class map created in Step 3.
Step 9
end
Return to privileged EXEC mode.
Step 10
show class-map
Verify your entries.
Step 11
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
mls qos
Enable QoS on the switch.