Add a rule for a MAC ACL

Configuring a MAC ACL is a two-step process: After you add a MAC ACL, you can add rules to the MAC ACL.

To add a rule to a MAC ACL:

  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/Rule.

    The MAC ACL/Rule Table page displays.

    The MAC ACL Configuration section displays the total number of MAC ACLs, IPv4 ACLs, and IPv6 ACLs that are configured on the switch and the maximum number of ACLs that can be configured.

  3. Click the Add New button.

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

  4. Select the Add a Rule to existing ACL radio button.

    The window adjusts.

  5. From the Name menu, select the MAC ACL.
  6. In the Sequence Number field, enter a number in the range from 1 to 2147483647 to identify the rule.
  7. From the Action menu, select the action that must be taken if a packet matches the rule’s criteria:
    • Permit: Forwards packets that meet the ACL criteria.
    • Deny: Drops packets that meet the ACL criteria.
    Note: In the following steps, configure the criteria that you need for the rule. You do not need to configure all criteria.
  8. In the Assign Queue ID field, type the hardware egress queue ID that must be used to handle all packets matching this ACL rule.

    The range for the queue ID is from 0 to 7.

  9. From the Mirror Interface menu, select the egress interface to which the matching traffic stream must be copied, in addition to being forwarded normally by the switch.

    This option is configurable only for a Permit action. A mirror interface and a redirect interface are mutually exclusive. Set either one or the other.

  10. From the Redirect Interface menu, select the egress interface to which the matching traffic stream must be redirected, bypassing any forwarding decision normally performed by the switch.

    This option is configurable only for a Permit action. A redirect interface and a mirror interface are mutually exclusive. Set either one or the other.

  11. From the Match Every menu, select if each Layer 2 MAC packet must be matched against the rule:
    • False: Not all packets need to match the ACL rule.
    • True: Each packet must match the ACL rule.
  12. In the CoS field, type the 802.1p priority that must be compared against the information in an Ethernet frame.

    The range for the priority is from 0 to 7.

  13. In the Destination MAC field, type the destination MAC address that must be compared against the information in an Ethernet frame.

    The format is xx:xx:xx:xx:xx:xx. The BPDU keyword can be specified using a destination MAC address of 01:80:C2:xx:xx:xx.

  14. In the Destination MAC Mask field, type the destination MAC address mask that must be compared against the information in an Ethernet frame.

    The format is xx:xx:xx:xx:xx:xx. The BPDU keyword can be specified using a destination MAC mask of 00:00:00:ff:ff:ff.

  15. From the EtherType Key menu, select the EtherType value that must be compared against the information in an Ethernet frame:
    • Apple Talk
    • IBM SNA
    • IPv4
    • IPv6
    • IPX
    • MPLS Multicast
    • MPLS Unicast
    • NetBios
    • Novell
    • PPPOE
    • RARP
    • User Value
  16. If you select User Value from the EtherType Key menu, in the EtherType User Value field, type the customized EtherType value that must be used.

    This value must be compared against the information in an Ethernet frame. The range is from 0x0600 to 0xFFFF.

  17. In the Source MAC field, type the source MAC address that must be compared against the information in an Ethernet frame.

    The format is xx:xx:xx:xx:xx:xx.

  18. In the Source MAC Mask field, type the source MAC address mask that must be compared against the information in an Ethernet frame.

    The format is xx:xx:xx:xx:xx:xx.

  19. In the VLAN field, type the VLAN ID that must be compared against the information in an Ethernet frame.

    The range is from 1 to 4093. You can type an individual VLAN ID or a range of VLAN IDs.

  20. From the Logging menu, select to enable or disable logging for the ACL rule:
    • Disabled: Logging is disabled for this ACL rule.
    • Enabled: Logging is enabled for this ACL rule (subject to resource availability on the switch).

      If the access list trap flag is also enabled, periodic traps are generated, indicating the number of times the rule was evoked during the five-minute report interval.

  21. Click the Save button.

    The rule is added to the MAC ACL.

    Each ACL displays the following information:

    • Rules: The number of rules currently in place for the MAC ACL.
    • Direction: The direction of packet traffic affected by the MAC ACL, which is blank or Inbound. (If the ACL is not bound to an interface, the direction is blank.)