2-91
Catalyst 3750-X and 3560-X Switch Command Reference
OL-29704-01
Chapter 2 Catalyst 3750-X and 3560-X Switch Cisco IOS Commands
class
class
Use the class policy-map configuration command on the switch stack or on a standalone switch to define
a traffic classification match criteria (through the police, set, and trust policy-map class configuration
commands) for the specified class-map name. Use the no form of this command to delete an existing
class map.
class {class-map-name | class-default}
no class {class-map-name | class-default}
Syntax Description
Defaults No policy map class-maps are defined.
Command Modes Policy-map configuration
Command History
Usage Guidelines Before using the class command, you must use the policy-map global configuration command to
identify the policy map and to enter policy-map configuration mode. After specifying a policy map, you
can configure a policy for new classes or modify a policy for any existing classes in that policy map. You
attach the policy map to a port by using the service-policy interface configuration command.
After entering the class command, you enter policy-map class configuration mode, and these
configuration commands are available:
• exit: exits policy-map class configuration mode and returns to policy-map configuration mode.
• no: returns a command to its default setting.
• police: defines a policer or aggregate policer for the classified traffic. The policer specifies the
bandwidth limitations and the action to take when the limits are exceeded. For more information,
see the police and police aggregate policy-map class commands.
• set: specifies a value to be assigned to the classified traffic. For more information, see the set
command.
• trust: defines a trust state for traffic classified with the class or the class-map command. For more
information, see the trust command.
To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode,
use the end command.
class-map-name Name of the class map.
class-default System default class that matches unclassified packets.
Release Modification
12.2(53)SE2 This command was introduced.
12.2(55)SE The class-default keyword was added.