Match - Cisco 220 Series Smart Plus Reference Manual

Smart plus switches command line interface
Hide thumbs Also See for 220 Series Smart Plus:
Table of Contents

Advertisement

QoS Commands

match

match
NOTE
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
The class-map command enters the Class-map Configuration mode. In this mode,
up to two match commands can be entered to configure the criteria for this class.
Each match specifies an ACL.
When using two match commands, each must point to a different type of ACL,
such as one IP-based ACL and one MAC-based ACL. The classification is by first
matching, therefore, the order of the ACLs is important.
Error messages are generated in the following cases:
There is more than one match command in a match-all class map.
There is a repetitive classification field in the participating ACLs.
After entering the Class-map Configuration mode, the following configuration
commands are available:
do—Run the EXEC commands in the Class-map Configuration mode.
end—End the current mode and return to the Privileged EXEC mode.
exit—Exit the Class-map Configuration mode and return to the Global
Configuration mode.
match—Configure the match criteria to classify traffic.
no—Remove a match statement from a class map.
Example
The following example creates a class map called Class1 and configures it to
check that packets match all classification criteria in the ACL specified:
switchxxxxxx(config)# class-map class1 match-any
switchxxxxxx(config-cmap)# match access-group acl-name
To bind an ACL to the class map being configured, use the match Class-map
Configuration mode command.
To delete the match criteria, use the no form of this command.
This command is available only when the switch is in QoS advanced mode.
28
382

Advertisement

Table of Contents
loading

Table of Contents