48
C
3: ACL C
HAPTER
permit (MAC)
OMMANDS
User Guidelines
There are no user guidelines for this command.
Example
The following example shows how to create a MAC ACL.
Console(config)# mac access-list macl-acl1
Console(config-mac-al)#
The permit MAC-Access List Configuration mode command defines
permit conditions of an MAC ACL.
Syntax
permit {any | {host source source-wildcard} any | {destination
destination-wildcard}} [vlan vlan-id] [cos cos cos-wildcard] [ethtype
eth-type]
Parameters
source — Specifies the source MAC address of the packet.
■
source-wildcard — Specifies wildcard bits to be applied to the source
■
MAC address. Use 1s in bit positions to be ignored.
destination — Specifies the MAC address of the host to which the
■
packet is being sent.
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. (Range: 0-4095)
■
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 of the packet .(Range:
■
0-65535)
Default Configuration
No MAC ACL is defined.
Command Mode
MAC-Access List Configuration mode