CLI Reference Guide-R02

Table Of Contents
Chapter 10
| Access Control Lists
MAC ACLs
– 381 –
Command Usage
When you create a new ACL or enter configuration mode for an existing ACL,
use the permit or deny command to add new rules to the bottom of the list.
To remove a rule, use the no permit or no deny command followed by the
exact text of a previously configured rule.
An ACL can contain up to 2048 rules.
Example
Console(config)#access-list mac jerry
Console(config-mac-acl)#
Related Commands
permit, deny (381)
mac access-group (385)
show mac access-list (386)
permit, deny (MAC ACL) This command adds a rule to a MAC ACL. The rule filters packets matching a
specified MAC source or destination address (i.e., physical layer address), or
Ethernet protocol type. Rules can also filter packets based on IPv4/v6 addresses,
including Layer 4 ports and protocol types. Use the no form to remove a rule.
Syntax
{permit | deny}
{any | host source | source addres}
{any | host destination | destination address}
[ip {any | host source-ip | source-ip network-mask}
{any | host destination-ip | destination-ip network-mask}]
[ipv6 {any | host source-ipv6 | source-ipv6/prefix-length}
{any | host destination-ipv6 | destination-ipv6/prefix-length}]
[cos cos cos-bitmask]
[vid vid vid-bitmask]
[ethertype ethertype [ethertype-bitmask]]
[protocol protocol]
[l4-source-port sport [port-bitmask]]
[l4-destination-port dport [port-bitmask]]
[
time-range time-range-name]
no {permit | deny}
{any | host source | source address}
{any | host destination | destination address}
[ip {any | host source-ip | source-ip network-mask}
{any | host destination-ip | destination-ip network-mask}]
[ipv6 {any | host source-ipv6 | source-ipv6/prefix-length}
{any | host destination-ipv6 | destination-ipv6/prefix-length}]
[cos cos cos-bitmask]
[vid vid vid-bitmask]