2-92
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
class
class
To specify the name of the class whose traffic policy you want to create or change, use the class
policy-map configuration command. To delete an existing class from a policy map, use the no form of
this command.
class class-name
no class class-name
Syntax Description
Defaults No classes are defined; except for the class-default.
Command Modes Policy-map configuration mode
Command History
Usage Guidelines Before using the class command, you must create a class map for matching packets to the class by using
the class-map global configuration command. You also 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 traffic policy for new classes or modify a traffic policy for any existing
classes in that policy map. The class name that you specify with the class command in the policy map
ties the characteristics for that class (its policy) to the class map and its match criteria, as configured
through the class-map global configuration command. You attach the policy map to a port by using the
service-policy (interface configuration) configuration command.
After you enter the class command, the switch enters policy-map class configuration mode, and these
configuration commands are available:
• bandwidth Specifies or modifies the minimum bandwidth provided to a class belonging to a policy
map. For more information, see the bandwidth command.
• dbl Enables dynamic buffer limiting for traffic hitting this class. For details on dbl parameters refer
to the show qos dbl command.
• exit Exits policy-map class configuration mode and returns to policy-map configuration mode.
• no Returns a command to its default setting.
• police Configures a single-rate policer, an aggregate policer, or a two-rate traffic policer that uses
the committed information rate (CIR) and the peak information rate (PIR) for a class of traffic. The
policer specifies the bandwidth limitations and the action to take when the limits are exceeded. For
more information, see the police command. For more information about the two-rate policer, see the
police (two rates) and the police (percent) command.
class-name Name of the predefined traffic class for which you want to configure or modify a
traffic policy. The class was previously created through the class-map
class-map-name global configuration command.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.