Celestica Documentation Portal

Find your product documents here

MAC Access-list bind to interface

Binds the access-list of type MAC to interface in interface mode.

Syntaxmac access-group <acl-name> {in | out}
Command modeInterface modes (Ethernet, PortChannel and VLAN)
Parameters
  • acl-name – Access list name. Accepts a string with a maximum of 63 characters.
UsageUse the no mac access-group <acl-name> {in | out} command to unbind the access-list from the interface.
Supported Releases 1.0.0 or later
Click commandconfig acl add table -p <port-name-list> -s <ingress | egress> <table_name> <table_type>
  • Options: -p and -s help to bind access-list to interface.

Example
sonic(config)# interface Ethernet 1
sonic(conf-if-Ethernet1)# mac access-group newmac in
sonic(conf-if-Ethernet1)# mac access-group newmac out

sonic(config)# interface Ethernet 1
sonic(conf-if-Ethernet1)# mac access-group newmac in
sonic(conf-if-Ethernet1)# mac access-group newmac out