Configuration Guide
Example #1: Create ACL 179 and Define an ACL Rule
After the mask has been applied, it permits packets carrying TCP traffic that matches the
specified Source IP address, and sends these packets to the specified Destination IP address.
config
access-list 179 permit tcp 192.168.77.0 0.0.0.255 192.168.77.3 0.0.0.0
Example #2: Define the Second Rule for ACL 179
Define the rule to set similar conditions for UDP traffic as for TCP traffic.
access-list 179 permit udp 192.168.77.0 0.0.0.255 192.168.77.3 0.0.0.255
exit
Example #3: Apply the rule to Inbound Traffic on Port 0/2
Only traffic matching the criteria will be accepted.
interface 0/2
ip access-group 179 in
exit
MAC ACL CLI Examples
The following are examples of the commands used for the MAC ACLs feature.
Example #4: Set up a MAC Access List
(DWS-3024)(Config)#mac access-list ?
extended
DWS-3024)(Config)#mac access-list extended ?
<name>
rename
(DWS-3024)(Config)#mac access-list extended mac1 ?
<cr>
(DWS-3024) (Config)#mac access-list extended mac1
94
© 2001- 2011 D-Link Corporation. All Rights Reserved.
Configure extended MAC Access List parameters.
Enter access-list name up to 31 characters
in length.
Rename MAC Access Control List.
Press Enter to execute the command.