User Manual

Table Of Contents
SWP2(config)#class-map class1
SWP2(config-cmap)#
9.2.12 Associate class map
[Syntax]
class name
no class name
[Parameter]
name : Class map name
[Input mode]
policy map mode
[Description]
Associates a class map to a policy map.
When the class map association succeeds, move to policy map class mode. In policy map class mode, you can make the
following settings for each traffic class.
Pre-marking or specifying the egress queue
Metering
Policing
Remarking
If this command is executed with the "no" syntax, the association of the class map to the policy map is canceled.
For LAN/SFP+ port and logical interface to which a policy map is applied, received frames are classified into traffic classes
according to the conditions of the associated class map. If the action in the class map is "permit," the QoS processing specified
by the user for that traffic class is performed.
Up to eight class maps can be associated to one policy map.
[Note]
In order to execute this command, QoS must be enabled.
It is meaningless to specify QoS processing settings for a traffic class for which the action is "deny."
[Example]
Make the following settings for received frames to LAN port #1.
Permit traffic from the 10.1.0.0 network
Categorize bandwidth classes as CIR:48kbps, CBS:12kbyte, and EBS:12kbyte
Green: forward, Yellow: rewrite DSCP value to 10, Red: discard
[Traffic class definition]
SWP2(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWP2(config)#class-map class1
SWP2(config-cmap)#match access-list 1
SWP2(config-cmap)#exit
[Policy settings]
SWP2(config)#policy-map policy1
SWP2(config-pmap)#class class1
SWP2(config-pmap-c)#police 48 12 12 yellow-action remark red-action drop
SWP2(config-pmap-c)#remark-map yellow ip-dscp 10
SWP2(config-pmap-c)#exit
SWP2(config-pmap)#exit
SWP2(config)#interface port1.1
SWP2(config-if)#service-policy input policy1
9.2.13 Set traffic classification conditions (access-list)
[Syntax]
match access-list acl-id
no match access-list acl-id
[Parameter]
acl-id : <1 - 2000>
Command Reference | Traffic control | 245