beautypg.com

Example #1: create acl 179 and define an acl rule, Example #2: define the second rule for acl 179, Mac acl cli examples – D-Link UNIFIED WIRED & WIRELESS ACCESS SYSTEM DWS-3000 User Manual

Page 98: Example #4: set up a mac access list

background image

98

© 2001- 2008 D-Link Corporation. All Rights Reserved.

Wired 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

Configure extended MAC Access List parameters.

DWS-3024)(Config)#mac access-list extended ?

Enter access-list name up to 31 characters

in length.

rename

Rename MAC Access Control List.

(DWS-3024)(Config)#mac access-list extended mac1 ?

Press Enter to execute the command.

(DWS-3024) (Config)#mac access-list extended mac1