Mac-access-list creation syntax

This is a new command that needs to be created to allow for the configuration of MAC-based access control lists.

Standard MAC ACL Configuration

Syntax

mac-access-list standard

Configure a standard MAC Access Control List.

NAME-STR

The standard MAC ACL name.

200-299

The standard MAC ACL number.

mac-access-list standard <200>
      

Description

Configure the standard MAC ACL to filter the packets based on the source MAC address. The standard MAC ACL number ranges from 200 to 299.

Example

switch(config)#mac accss-list standard 200
switch(config-std-macl)#

Extended MAC ACL Configuration

Syntax

mac-access-list extended

Configure an extended MAC Access Control List.

NAME-STR

The extended MAC ACL name.

300-399

The extended MAC ACL number.

mac-access-list extended <300>
      

Description

Configure the extended MAC ACL to filter the packets based on the source MAC address, destination MAC address, ethertype, CoS priority, or VLAN number. The extended MAC ACL number ranges from 300 to 399.

Example

(config)#mac accss-list extended 300
(config-ext-macl)#

Resequencing MAC ACL

Syntax

mac-access-list resequence

Renumber the sequence number of the rules in the MAC ACL specified.

<1-2147483647>

The sequence number assigned to the first rule of the specified MAC ACL.

<1-2147483646>

The increment value that renumbers the subsequent rules in the specified MAC ACL.

mac-access-list resequence 200 1 10
      

Description

Re-number the sequence number of the rules in the MAC ACL specified. The first rule receives the sequence number specified in the start-seq-num and the subsequent rule numbers increment per the increment value.

Example

(config)# mac-access-list resequence 300 1 10
NOTE:

Similar Command


ip access-list