[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
match
access-list
name
no
match
access-list
acl-id
no
match
access-list
name
[Parameter]
:
<1 - 2000>
IPv4 access list ID
:
<2001 - 3000>
MAC access list ID
:
<3001 - 4000>
IPv6 access list ID
name
:
Access list name
[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.
[Example]
Specify access list #1 as the classification conditions for class map "class1."
SWR2311P(config)#class-map class1
SWR2311P(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.
[Input mode]
class map mode
Command Reference | Traffic control |
235