Celestica Documentation Portal

Find your product documents here

MAC Access-list create and delete

Creates a new MAC access-list (if not present) and enters into the config-mac-acl mode.

Syntaxmac access-list <acl-name>
Command modeCONFIG
Parameters
  • acl-name – MAC access list name. Accepts a string with a maximum of 63 characters.
UsageUse no mac access-list <acl-name> to remove the access-list.
Supported Releases 1.0.0 or later
Click commandconfig acl add table [OPTIONS] <table_name> <table_type>
Options:
  • -d, --description TEXT

  • -p, --ports TEXT

  • -s, --stage [ingress|egress]

Example
sonic(config)# mac access-list mac_access_name
sonic(config-mac-acl)#

sonic# configure terminal
sonic(config)# no mac access-list mac_access_name