TP-LINK TL-SG3424P User Manual

Page of 220
 
141
 
not limited. 
Command Mode 
Global Configuration Mode 
Example 
Create a MAC ACL whose ID is 20, and add Rule 10 for it. In the rule, the source 
MAC address is 00:01:3F:48:16:23, the source MAC address mask is 
11:11:11:11:11:00, VLAN ID is 2, the user priority is 5, the time-range for the rule 
to take effect is tSeg1, and the packets match this rule will be forwarded by the 
switch: 
TP-LINK(config)# acl create 
20 
TP-LINK(config)# acl rule mac-acl 
20 10 op permit smac 00:01:3F:48:16:23 
smask
 11:11:11:11:11:00 vid 2 pri 5 tseg tSeg1 
acl edit rule mac-acl 
Description 
The acl edit rule mac-acl command is used to edit MAC ACL rule. 
Syntax 
acl edit rule mac-acl
 {acl-id} {rule-id} [op {discard | permit}] [[smac source-mac
{smask source-mac-mask}] [[dmac destination-mac] {dmask 
destination-mac-mask
}] [vid vlan-id] [type ethernet-type] [pri user-pri] [tseg 
time-segment
] [index idx
Parameter 
acl-id
  —— The desired MAC ACL for configuration. 
rule-id
  ——  The rule ID. 
op  ——  The operation for the switch to process packets which match the rules. 
There are two options, discard and permit. Discard means discarding packets, 
and permit means forwarding packets. By default, the option is permit. 
source-mac
  ——  The source MAC address contained in the rule. 
source-mac-mask
  —— The source MAC address mask. It is required if you 
typed the source MAC address. 
destination-mac
  ——  The destination MAC address contained in the rule. 
destination-mac-mask
  ——  The destination MAC address mask. It is required 
if you typed the destination MAC address. 
vlan-id
  ——  The VLAN ID contained in the rule, ranging from 1 to 4094.