Users Guide

Layer 2 Switching Commands 739
match any
Use the match any command in Class-Map Configuration mode to allow
matching on any of the specified match conditions. Use the no form of the
command to remove the ACL match criteria and revert to match-all behavior.
Syntax
match any
no match any
Default Configuration
The default matching for a class map is to match on all specified match
conditions.
Command Mode
Class-Map Configuration mode
User Guidelines
The clauses in an access-list referenced in a class-map are used solely to
match (or not match) traffic. Access-groups identified in a class-map are
matched in order of appearance in the class-map declaration (regardless of
ACL number). ACLs in an access-group are matched in order of ACL
number.
Unlike the match all condition, when a class-map contains the match any
condition, the first match for a permit or deny immediately exits the
matching activity for the class-map. Conceptually, the permit/deny clauses in
the access group are applied sequentially.
In the match all scenario, the permit/deny clauses in the access group are
applied in parallel, and all conditions must match for the matching activity to
exit. For this reason, it is not advised to mix permit and deny clauses within
an access-group used in a match all class map.
Command History
Command introduced in version 6.5 firmware.