145
TP-LINK(config)# acl policy policy-add policy1
acl policy action-add
Description
The acl policy action-add command is used to add ACLs and create actions
for the policy. To delete the corresponding actions, please use no acl policy
action-add command.
Syntax
acl policy action-add {policy-name} {acl-id} [rate rate] [osd { none | discard }]
[e-port egress-port] [dscp dscp] [pri local-pri] [mirr mirror]
no acl policy action-add {policy-name} {acl-id}
Parameter
policy-name —— The Policy Name, ranging from 1 to 16 characters.
acl-id —— The ACL for configuration in the policy.
rate —— The rate of Stream Condition, ranging from 1 to 1000000 in kbps.
osd —— Out of Band disposal of Stream Condition. It is the disposal way of the
data packets those are transmitted beyond the rate. There are two options,
none and discard. By default, the option is none.
egress-port —— The Destination Port of Redirect. The data packets that match
the corresponding ACL will be forwarded to the specific port. The destination
port ranges from 1 to 8. By default, it is All Ports.
dscp —— DSCP of QoS Remark. Specify the DSCP region for the data
packets that match the corresponding ACL. DSCP ranges from 0 to 63. By
default, it is not limited.
local-pri —— Local Priority of QoS Remark. Specify the local priority for the
data packets that match the corresponding ACL. Local Priority ranges from 0 to
3.
mirror —— The Mirror Port of Stream Mirror. By default, it is 1.
Command Mode
Global Configuration Mode
Example
Create a Policy named policy1. For the data packets that match ACL 120 in the
policy, if the rate beyond 1000kbps, will be discarded by the switch: