Create a MAC Access Control List

Learn how to create a MAC access control list, which you can configure with rules that permit or deny traffic based on packet fields of the L2 OSI layer.

About this task

You must observe the following naming conventions when you create an access control list (ACL).
  • Name cannot exceed 64 characters.
  • Name must start with an alphabetic character or an underscore.
  • Name must be an arbitrary sequence of alphabetic characters, numerals, underscores, hyphens, or dots.
  • Name must not be a reserved keyword (see the Extreme 9920 Software Command Reference, 21.1.0.0 for more information).

Procedure

  1. Run the configure terminal command to access Config mode.
    The command line changes to configuration mode.
    device(config)# 
  2. Create a MAC ACL by running the mac access-list acl-name command .
    device(config)# mac access-list L2
    device(config-mac-acl)# permit any any vlan 350
    device(config-mac-acl)# end
    device#
  3. Run the following show command to confirm the access control list was created.
    device# show mac access-list all
    mac access-list L2 
      seq 10 permit any any vlan 350
    ( 0 Packets, 0 Bytes, 0 Packets/sec, 0 Bits/sec )