
29-42
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-09
Chapter 29 Configuring QoS
Configuring Standard QoS
Note
You can also create class-maps during policy map creation by using the class policy-map configuration
command. For more information, see the
“Classifying, Policing, and Marking Traffic by Using Policy
.
Beginning in privileged EXEC mode, follow these steps to create a class map and to define the match
criterion to classify traffic on a per-port per-VLAN basis:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
mls qos
Enable QoS on the switch.
Step 3
class-map match-any class-map-name
Create a class map, and enter class-map configuration mode.
By default, no class maps are defined.
•
Use the match-any keyword to perform a logical-OR of all
matching statements under this class map. One or more match
criteria must be matched.
•
For class-map-name, specify the name of the class map.
Step 4
match {access-group acl-index-or-name |
ip dscp dscp-list | ip precedence
ip-precedence-list}
Define the match criterion to classify traffic.
By default, no match criterion is defined.
•
For access-group acl-index-or-name, specify the number or name
of the ACL.
•
For ip dscp dscp-list, enter a list of up to eight IP DSCP values to
match against incoming packets. Separate each value with a space.
The range is 0 to 63.
•
For ip precedence ip-precedence-list, enter a list of up to eight
IP-precedence values to match against incoming packets. Separate
each value with a space. The range is 0 to 7.
Step 5
exit
Return to global configuration mode.
Step 6
class-map match-all class-map-name
Create a class map, and enter class-map configuration mode.
By default, no class maps are defined.
•
Use the match-all keyword to perform a logical-AND of all
matching statements under this class map. All match criteria in the
class map must be matched.
•
For class-map-name, specify the name of the class map created in
Step 3.
Step 7
match vlan vlan-list
Define the match criterion to classify traffic.
By default, no match criterion is defined.
For vlan-list, specify a list of VLANs to match against incoming
packets. You can enter up to 30 VLAN IDs. Use a hyphen for a range
of VLANs; the VLAN range is counted as two VLAN IDs. Use a space
to separate individual VLANs. The range is 1 to 4094.
You can enter only one match vlan command, and you must enter it
before the match class-map command.