Applying a MAC ACL to a physical interface

Use this procedure to apply a Layer 2 ACL to a physical interface in switchport mode.

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
    
  2. Enter the interface ethernet command, specifying the port number.
    device(config)# interface ethernet 0/2
    
  3. Enter the mac access-group command, specifying the ACL that you are applying to the interface and the in/out direction.
    device(conf-if-eth-0/2)# mac access-group test_02 in