Specifications
2-87
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738-01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
class-map
class-map
To create a class map to be used for matching packets to the class whose name you specify and to enter
class-map configuration mode, use th e class-map global configuration command. To delete an existing
class map and to return to global configuration mode, use the no form of this command.
class-map [match-all | match-any] class- map -name
no class-map [match-all | mat ch-any] c lass-map-nam e
Syntax Description
Defaults No class maps are defin ed.
If neither the match-all nor the match-any keyword is specified, the default is match-all.
Command Modes Global configura tion mode
Usage Guidelines Use this command to specify the name of the class for which you want to crea te or modify class-m ap
match criteria and to enter class-map configuration mode. Packets are checked against the match criteria
configured for a class map to decide if the packet belongs to that class. If a packet matches the specified
criteria, the packet is considered a member of the class and is forwarded according to the quality of
service (QoS) specifications set in the traffic policy.
After you enter the class-map command, the switch enters class-map configuration mode, and these
configuration commands are availab le:
• description Describes the class map (up to 200 characters). The show class-map privileged EXEC
command displays the description a nd the name of the class map.
• exit Exits from QoS class-map configuration mode.
• match Configures classification criteria. For more information, see the match (class-map
configuration) command.
• no Removes a match statement from a class map.
Examples This example shows how to configure the class map called class1 with one match criterion, which is an
access list called 103:
Switch# configure terminal
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
Switch#
match-all (Optional) Perform a logical-AND of all matching under this class map. All
criteria in the class map must be matched.
match-any (Optional) Perform a logical-OR of the matching statements under this class
map. One or more criteria in the class map must be matched.
class-map-name Name of the class map.