QoS Commands
class
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide 275
23
Parameters
c
lass-map-name —
Specif ies th e name o f an exi sting c lass m ap. If t he clas s
map does not exist, a new class map will be created under the specified
name (Range: 0-32 characters).
acl-name
— Specifies the name of an IP or MAC ACL.
Default Configuration
No policy map is defined.
Command Mode
Policy-map Configuration mode
User Guidelines
Before mo difyi ng a pol icy for a n exist ing class or creating a policy for a new class ,
use the policy-map Global Configuration mode command to specify the name of
the policy map to which the policy belongs and to enter the Policy-map
Configuration mode.
Use the service-policy (Ethernet, Port-channel) Interface Configuration mode
command to attach a policy map to an interface. Use an existing class map to
attach classification criteria to the specified policy map and use the access-group
parameter to modify the classification criteria of the class map.
If this command is used to create a new class map, the name of an IP or MAC ACL
must also be specified.
Example
The following example defines a traffic classification called ‘class1’ with an
access-group called ‘enterprise’. The class is in a policy map called policy1.
Console(config)# policy-map policy1
Console (config-pmap)# class class1 access-group enterprise