2-37
Catalyst 2950 and Catalyst 2955 Switch Command Reference
OL-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
class-map
class-map
Use the class-map global configuration command 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 the no form of this
command to delete an existing class map and to return to global configuration mode.
class-map class-map-name [match-all]
no class-map class-map-name [match-all]
This command is available only if your switch is running the enhanced software image (EI).
Syntax Description
Defaults No class maps are defined.
Command Modes Global configuration
Command History
Usage Guidelines Use this command to specify the name of the class for which you want to create or modify class-map
match criteria and to enter class-map configuration mode. In this mode, you can enter one match
command to configure the match criteria for this class.
The class-map command and its subcommands are used to define packet classification and marking as
part of a globally named service policy applied on a per-interface basis.
In quality of service (QoS) class-map configuration mode, these configuration commands are available:
• exit: exits from QoS class-map configuration mode.
• no: removes a match statement from a class map.
• match: configures classification criteria. For more information, see the match class-map
configuration command.
Only one match criterion per class map is supported. For example, when defining a class map, only one
match command can be entered.
Only one access control list (ACL) can be configured in a class map. The ACL can have multiple access
control entries (ACEs).
Note The switch does not support any deny conditions in an ACL configured in a class map.
class-map-name Name of the class map.
match-all (Optional) Perform a logical-AND of all matching statements under this class
map. All criteria in the class map must be matched.
Release Modification
12.1(6)EA2 This command was introduced.