Here's how to configure mac address filtering from the commands line on Cisco SG switches. This is static filtering.
Mac addresses filtering is a two-stage process. First we create an ACL in which we declare the mac address(es) that will be authorized, then we block everything else. Finally, we assign the ACL to a switch port.
Note: you can also filter mac addresses dynamically using port security, as explained in this link.
Switch(config)# mac access-list extended MF01
Switch(config-mac-al)# permit 24:B6:FD:14:08:53 00:00:00:00:00:00 any ace-priority 20
Switch(config-mac-al)# permit 48:bd:0e:02:ea:41 00:00:00:00:00:00 any ace-priority 10
Switch(config-mac-al)# permit 00:11:00:00:00:00 00:00:FF:FF:FF:FF any ace-priority 8
Switch(config-mac-al)# deny any any ace-priority 40
Switch(config)# interface range ge1/0/4-18
Switch(config-if-range)# service-acl input MF01
Switch(config-if-range)# no service-acl input MF01
Switch# show access-lists MF01
Extended MAC access list MF01
permit host 48:bd:0e:02:ea:41 any ace-priority 10
permit host 24:b6:fd:14:08:53 any ace-priority 20
deny any any ace-priority 40
Switch(config)# mac access-list extended MF01
Switch(config-mac-al)# no permit 24:B6:FD:14:08:53 00:00:00:00:00:00 any
Switch(config)# no mac access-list extended MF01
Let's look at a concrete example: how to allow only the MAC addresses family 00:11 and the address 24:B6:FD:14:08:53. All other addresses will be rejected.
Switch(config)# mac access-list extended MF01
Switch(config-mac-al)# permit 00:11:00:00:00:00 00:00:FF:FF:FF:FF any
Switch(config-mac-al)# permit 24:B6:FD:14:08:53 00:00:00:00:00:00 any
Switch(config-mac-al)# deny any any
Switch(config)# interface range ge1/0/1-24
Switch(config-if-range)# service-acl input MF01
Contact :