User Manual

SWR2311P(config)#class-map class1
SWR2311P(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]
SWR2311P(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#match access-list 1
SWR2311P(config-cmap)#exit
[Policy settings]
SWR2311P(config)#policy-map policy1
SWR2311P(config-pmap)#class class1
SWR2311P(config-pmap-c)#police 48 12 12 yellow-action remark red-action drop
SWR2311P(config-pmap-c)#remark-map yellow ip-dscp 10
SWR2311P(config-pmap-c)#exit
SWR2311P(config-pmap)#exit
SWR2311P(config)#interface port1.1
SWR2311P(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>
254 | Command Reference | Traffic control