PurposeCommand or Action
If neither the match-all or match-any keyword is specified, the
default is match-all.
To delete an existing class map, use the no class-map
[match-all | match-any] class-map-name global
configuration command.
Note
Defines the match criterion to classify traffic.
match {access-group acl-index-or-name | ip dscp
dscp-list | ip precedence ip-precedence-list}
Step 4
By default, no match criterion is defined.
Example:
Switch(config-cmap)# match ip dscp 10 11 12
Only one match criterion 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 the ACL created in Step 2.
•
To filter IPv6 traffic with the match access-group command,
create an IPv6 ACL, as described in Step 2.
•
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.
To remove a match criterion, use the no match
{access-group acl-index-or-name | ip dscp | ip precedence}
class-map configuration command.
Note
Returns to privileged EXEC mode.end
Example:
Switch(config-cmap)# end
Step 5
Verifies your entries.show class-map
Example:
Switch# show class-map
Step 6
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Example:
Switch# copy-running-config startup-config
Step 7
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
594
How to Configure QoS