beautypg.com

Permit (mac) – Allied Telesis AT-S95 CLI User Manual

Page 31

background image

ACL Commands

Page 19

Syntax

mac access-list access-list-name

no mac access-list access-list-name

Parameters

access-list-name — Name of the MAC-Access List.

Default Configuration

No MAC-Access List is defined.

Command Mode

Global Configuration mode

User Guidelines

MAC ACLs are defined by a unique name. An IPv4 ACL, IPv6 ACL and MAC ACL cannot share the same name.

Example

The following example shows how to create a MAC ACL.

permit (MAC)

The permit MAC-Access List Configuration mode command sets permit conditions for a MAC-Access List.

Syntax

permit {any | {source source-wildcard} any | {destination destination-wildcard}} [vlan vlan-id] [cos cos cos-
wildcard
] [ethtype eth-type]

Parameters

source — Source MAC address of the packet.

source-wildcard — Wildcard bits to be applied to the source MAC address. Use 1s in the bit position to be

ignored.

destination — Destination MAC address of the packet.

destination-wildcard — Specifies wildcard bits to be applied to the destination MAC address. Use 1s in bit

positions to be ignored.

vlan-id — Specifies the ID of the packet VLAN.

cos — Specifies the Class of Service (CoS) for the packet. (Range: 0-7)

cos-wildcard — Specifies wildcard bits to be applied to the CoS.

eth-type — Specifies the Ethernet type in hexadecimal format of the packet.

Default Configuration

No MAC ACL is defined.

Console(config)# mac access-list macl-acl1
Console(config-mac-al)#