TP-Link TL-SG5428 Switch User Manual


 
145
TP-LINK(config)# acl policy policy-add policy1
TP-LINK(config)# acl policy action-add policy1 120 rate 1000 osd discard
acl edit action
Description
The acl edit action command is used to edit actions for the policy.
Syntax
acl edit action {policy-name} {acl-id} [rate rate] [osd {none | discard}] [e-port
egress-port] [mirr mirror]
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 matching
the corresponding ACL will be forwarded to the specific port. By default, it is All
Ports.
mirror —— The Mirror Port of Stream Mirror. By default, it is 1.
Command Mode
Global Configuration Mode
Example
Edit the actions for the policy1. For the data packets matching ACL 120 in the
policy, if the rate beyond 1000kbps, will be discarded by the switch:
TP-LINK(config)# acl edit action policy1 120 rate 1000 osd discard
acl bind to-port
Description
The acl bind to-port command is used to bind a policy to a port. To cancel the
bind relation, please use no acl bind to-port command.
Syntax
acl bind to-port {policy-name} {port}