MAC ACL example configuration
The following example shows how to create a MAC-based ACL that permits IPv4 traffic on the VLAN with ID 2 from a particular computer in the sales department (the computer is identified by its MAC address), sends the traffic to a specific queue on specific ports, and denies all other traffic on those ports.
- Create a MAC ACL with the name Sales_ACL.
-
Create a rule with the following criteria:
- Sequence Number: 1
- Action: Permit
- Assign Queue ID: 4
- Match Every: No
- EtherType: IPv4
- Source MAC address: 02:02:1A:BC:DE:EF
- Source MAC Mask: 00:00:00:00:FF:FF
- VLAN ID: 2, which is the VLAN that is used for the sales department.
- Bind the Sales_ACL to ports 6, 7, and 8.
To configure the MAC ACL example:
The MAC ACL with the name Sales_ACL looks for IPv4 packets with the source MAC address and MAC mask defined in the rule. Also, the packets must be tagged with VLAN ID 2.
Traffic that matches the criteria is permitted on ports 6, 7, and 8 and is assigned to queue 4. All other traffic is explicitly denied on these interfaces because an explicit deny all rule exists as the lowest priority rule. If you want to allow additional traffic to enter these ports, you must add a new Permit rule with the desired match criteria and bind the rule to interfaces 6, 7, and 8.