Celestica Documentation Portal

Find your product documents here

IPv4 Access-list bind to interface

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

Syntaxip 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 ip 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
L3V4/IPv4 : 
sonic(config)# interface Ethernet 1
sonic(conf-if-Ethernet1)# ip access-group ip_access_in in
sonic(conf-if-Ethernet1)# ip access-group ip_access_out out

sonic(config)# interface Ethernet 1
sonic(conf-if-Ethernet1)# ip access-group ip_access_in in
sonic(conf-if-Ethernet1)# ip access-group ip_access_out out