(Optional) Specifies how to evaluate multiple match criteria. Multiple
match statements in the class map will be evaluated based on the
logical AND. If neither match-all nor match-any is specified, match-
any is implied.
(Optional) Specifies how to evaluate multiple match criteria. Multiple
match statements in the class map will be evaluated based on the
logical OR. If neither match-all nor match-any is specified, match-
any is implied.
Default
None.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
Use this command to create or modify a class-map that defines the criteria for matching packets. This
command enters the class-map configuration mode where match commands are entered to define the
match criteria for this class.
When multiple match commands are defined for a class, use the match-all or match-any keyword to
specify whether to evaluate the multiple match criteria based on either the logical AND or the logical
OR.
Example
This example shows how to configure the “class_home_user “as the name of a class map. In this
class map, a match statement specifies that the traffic that matches the access control list
“acl_home_user” and matches the IPv6 protocol will be included under the class-map
“class_home_user”.
Switch# configure terminal
Switch(config)# class-map match-all class_home_user
Switch(config-cmap)# match access-group name acl_home_user
Switch(config-cmap)# match protocol ipv6
Switch(config-cmap)#
56-3 match
This command is used to define the match criteria for a class-map. Use the no form of this command
to remove the match criteria.
match {access-group name ACCESS-LIST-NAME | cos COS-LIST | [ip] dscp DSCP-LIST | [ip]
precedence IP-PRECEDENCE-LIST | protocol PROTOCOL-NAME | vlan VLAN-ID-LIST}
no match {access-group name ACCESS-LIST-NAME | cos COS-LIST | [ip] dscp DSCP-LIST |
[ip] precedence IP-PRECEDENCE-LIST | protocol PROTOCOL-NAME | vlan VLAN-ID-LIST}
Parameters