DGS-6604
m
class
CLI Reference Guide
86
class
Use this command to specify the name of the class map in order to define its
traffic policy and enter into
policy-map class
configuration mode. Use the no form
of the command to remove the policy definition for the specified class. All the
traffic that does not match any defined class will be classified to default class,
class-default.
class
NAME
no class
NAME
class class-default
Default
None
Command Mode
Policy-map configuration
Usage Guideline
The class map needs to be created before the policy can be configured for it. A
class-map without any match commands cannot be configured as a class policy.
This command enters the
policy-map class
configuration mode. The user can
use the set command and police command to define the QoS policy for the class.
class-default
is the reserved name for the default class. All the traffic that does
not match any defined class will be classified to
class-default
.
Examples
This example shows how to define a policy map, policy1 which defines policies
for class, class-dscp-red. The packet that matches DSCP 10, 12, or 14 will be set
to new DSCP 10 and policed by a single rate policer.
Verify the settings by entering the
show policy-map
command.
Syntax Description
NAME
Specifies the name of the class map that the class policy. Up to 32 characters
are allowed.
Switch(config)# class-map class-dscp-red
Switch(config-cmap)# match ip dscp 10,12,14
Switch(config-cmap)# exit
Switch(config)# policy-map policy1
Switch(config-pmap)# class class-dscp-red
Switch(config-pmap-c)# set ip dscp 10
Switch(config-pmap-c)# police 64 128 exceed-action set-dscp-transmit 0
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit