User Manual

Table Of Contents
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>
IPv4 access list ID
: <2001 - 3000>
MAC access list ID
: <3001 - 4000>
IPv6 access list ID
[Input mode]
class map mode
[Description]
Uses the access list as the conditions to classify the traffic class.
If the received frame matches the conditions in the access list, the action in the access list will be the action (permit, deny) for
the traffic class.
If this is executed with the "no" syntax, the condition settings of the access list are deleted.
[Note]
In order to execute this command, QoS must be enabled.
A maximum of 39 conditions can be specified for traffic categorization in an access list.
[Example]
Specify access list #1 as the classification conditions for class map "class1."
SWP2(config)#class-map class1
SWP2(config-cmap)#match access-list 1
9.2.14 Set traffic classification conditions (CoS)
[Syntax]
match cos cos-list
no match cos
[Parameter]
cos-list : <0 - 7>
CoS value used as classification condition. Up to eight can be registered.
Command Reference | Traffic control | 265