TP-Link T1500-28PCT Switch User Manual


 
112
Example
Create a MAC ACL whose ID is 23:
T1500-28PCT(config)# mac access-list 23
access-list standard
Description
The access-list standard command is used to add Standard-IP ACL rule. To
delete the corresponding rule, please use no acce ss-list standard command.
Standard-IP ACLs analyze and process data packets based on a series of
match conditions, which can be the source IP addresses and destination IP
addresses carried in the packets.
Syntax
access-list standard acl-id rule rule-id { deny | permit } [[ sip source-ip ] smask
source-ip-mask] [[ dip destination-ip ] dmask destination-ip-mask ]
no access-list standard acl-id rule rule-id
Parameter
acl-id —— The desired Standard-IP ACL for configuration.
rule-id —— The rule ID.
deny —— The operation to discard packets.
permit ——The operation to forward packets. It is the default value.
source-ip —— The source IP address contained in the rule.
source-ip-mask —— The source IP address mask. It is required if you typed the
source IP address.
destination-ip —— The destination IP address contained in the rule.
destination-ip-mask —— The destination IP address mask. It is required if you
typed the destination IP address.
Command Mode
Global Configuration Mode
Example
Create a Standard-IP ACL whose ID is 120, and add Rule 10 for it. In the rule,
the source IP address is 192.168.0.100, the source IP address mask is
255.255.255.0, and the packets match this rule will be forwarded by the switch:
T1500-28PCT(config)# access-list create 120