33-35
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-06
Chapter 33 Configuring QoS Configuring QoS
Use the no form of the appropriate command to delete an existing class map or remove a match criterion.
This example shows how to create access list 103 and configure the class map called class1. The class1
has one match criterion, which is access list 103. It permits traffic from any host to any destination that
matches a DSCP value of 10.
Switch(config)# access-list 103 permit any any dscp 10
Switch(config)# class-map class1
Switch(config-cmap)# match access-group 103
Switch(config-cmap)# exit
This example shows how to create a class map called class2, which matches incoming traf f ic with DSCP
values of 10, 11, and 12.
Switch(config)# class-map match-any class2
Switch(config-cmap)# match ip dscp 10 11 12
Switch(config-cmap)# exit
Step 3 match {access-group
acl-index-or-name | cos cos-list | ip
dscp dscp-list | ip precedence
ip-precedence-list | qos-group value |
vlan vlan-list}
Define the match criterion to classify traffic. By default, no match criterion
is defined.
Only one match type per class map is supported, and only one ACL per class
map is supported.
For access-group acl-index-or-name, specify the number or name of an
ACL. Matching access groups is supported only in input policy maps.
For cos cos-list, enter a list of up to four CoS values in a single line to
match against incoming packets. Separate each value with a space. You
can enter multiple cos-list lines to match more than four CoS values. The
range is 0 to 7.
For ip dscp dscp-list, enter a list of up to eight IPv4 DSCP values to
match against incoming packets. Separate each value with a space. You
can enter multiple dscp-list lines to match more than eight DSCP values.
The numerical range is 0 to 63. You can also configure DSCP values in
other forms. See the “Classification Based on IP DSCP” section on
page 33-8.
For ip precedence ip-precedence-list, enter a list of up to four IPv4
precedence values to match against incoming packets. Separate each
value with a space. You can enter multiple ip-precedence-list lines to
match more than four precedence values. The range is 0 to 7.
For qos-group value, specify the QoS group number. The range is
0 to 99. Matching of QoS groups is supported only in output policy
maps.
For vlan vlan-list, specify a VLAN ID or a range of VLANs to be used
in a parent policy map for per-port, per-VLAN QoS on a trunk port. The
VLAN ID range is 1 to 4094.
Step 4 end Return to privileged EXEC mode.
Step 5 show class-map Verify your entries.
Step 6 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose