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.

In this example, you do the following:

  1. Create a MAC ACL with the name Sales_ACL.
  2. 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.
  3. Bind the Sales_ACL to ports 6, 7, and 8.

To configure the MAC ACL example:

  1. Open a web browser and log in to the device UI using your login details and device admin password.

    The Dashboard page displays.

  2. Select Security > ACL > MAC ACL > MAC ACL/Rules.

    The MAC ACL/Rules page displays.

  3. Add a MAC ACL:
    1. Click the Add New button.

      The Add MAC ACL/Rule pop-up window displays.

    2. Leave the Add New ACL only radio button selected.

      This radio button is selected by default.

    3. In the ACL Name field, type Sales_ACL.
    4. Click the Save button.

      The MAC ACL is added. By default, an ACL is applied to the inbound direction, which means that the switch examines traffic as it enters the port.

      For more information about adding an IPv4 ACL, see Add a MAC ACL.

  4. Click the Add New button.

    The Add MAC ACL/Rule pop-up window displays.

  5. Select the Add Rule to existing ACL radio button.

    The window adjusts.

  6. Create a rule for the MAC ACL with the name Sales_ACL with the following criteria:
    1. From the Name menu, select Sales_ACL.
    2. In the Sequence Number field, type 1.
    3. From the Action menu, select Permit.

      This means that all packets are allowed.

    4. In the Assign Queue ID field, type 4.

      This means that matching traffic is sent to queue 4.

    5. From the Match Every menu, select False.

      This means that not all packets need to match the ACL rule that permits the packets. You can configure additional criteria to refine the rule.

    6. From the EtherType Key menu, select IPV4.

      This means that the criteria apply to IPv4 traffic only.

    7. In the Source MAC field, type 02:02:1A:BC:DE:EF and in the Source MAC Mask field, type 00:00:00:00:FF:FF.

      This information identifies the computer in the Sales department.

    8. In the VLAN field, type 2.

      This means that the ACL applies to traffic on the VLAN with ID 2. (This VLAN must already exist on the switch.)

    9. Click the Save button.

      Your settings are saved and the rule is added.

    For more information about adding a rule for a MAC ACL, see Add a rule for a MAC ACL.

  7. Select Security > ACL > MAC ACL > MAC Binding Configuration.

    The IP Binding Configuration page displays.

  8. Bind the ACL with the name Sales_ACL to ports 6, 7, and 8, and assign a sequence number of 1:
    1. From the ACL ID menu, select Sales_ACL.
    2. In the Sequence Number field, type 1

      This number defines the order of the MAC ACL relative to other ACLs that are bound to the interface.

    3. In the Ports table, click ports 6, 7 and 8.

      The selected ports display blue.

    4. Click the Apply button.

      Your settings are saved.

    By default, this MAC ACL is bound on the inbound direction, so it examines traffic as it enters the switch. For more information about binding a MAC IP ACL to an interface, see Configure a MAC ACL interface binding.

  9. Select Security > ACL > MAC ACL > Binding Table.

    The Binding Table page displays.

  10. Verify that the ACL is bound to ports 6, 7, and 8.

    For more information about MAC ACL bindings, see Display or delete MAC ACL bindings.

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.