Use this procedure to apply a Layer 2 ACL to a physical interface in switchport mode.
-
Enter the configure terminal
command to access global configuration mode.
device# configure terminal
-
Enter the interface ethernet
command, specifying the port number.
device(config)# interface ethernet 0/2
-
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