class (policy-map)
To specify the name of the class whose policy you want to create or change, use the class command in policy
map configuration mode. To remove a class from the policy map, use the no form of this command.
class [type qos] {class-name| class-default}
no class [type qos] {class-name| class-default}
Syntax Description
(Optional) Specifies a quality-of-service (QoS) class.type qos
Name of the class for which you want to configure or modify policy.
class-name
Configures the default class.class-default
Command Default
No class is specified.
Type is QoS when not specified.
Command Modes
Policy map configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
The type qos keywords were added.Release 3.6.0
Usage Guidelines
You must be in a user group associated with a task group that includes the proper task IDs. The command
reference guides include the task IDs required for each command. If you suspect user group assignment is
preventing you from using a command, contact your AAA administrator for assistance.
Policy Map Configuration Mode
Within a policy map, the class (policy-map) command can be used to specify the name of the class whose
policy you want to create or change. The policy map must be identified first.
To identify the policy map (and enter the required policy map configuration mode), use the policy-map
command before you use the class (policy-map) command. After you specify a policy map, you can configure
the policy for new classes or modify the policy for any existing classes in that policy map.
Class Characteristics
The class name that you specify in the policy map ties the characteristics for that class—that is, its policy—to
the class map and its match criteria, as configured using the class-map command.
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
10 OL-23235-03
Quality of Service Commands on the Cisco IOS XR Software
class (policy-map)