Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

The following example shows how to create a MAC ACL and add rules to it:
switch# configure terminal
switch(config)# mac access-list acl-mac-01
switch(config-mac-acl)# permit 00c0.4f00.0000 0000.00ff.ffff any
switch(config-mac-acl)# statistics
Changing a MAC ACL
In an existing MAC ACL, you can add and remove rules. You cannot change existing rules. Instead, to change
a rule, you can remove it and recreate it with the desired changes.
If you need to add more rules between existing rules than the current sequence numbering allows, you can
use the resequence command to reassign sequence numbers.
To change a MAC ACL, perform this task:
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enters ACL configuration mode for the ACL that you
specify by name.
switch(config)# mac access-list name
Step 2
Creates a rule in the MAC ACL. Using a sequence
number allows you to specify a position for the rule in
switch(config-mac-acl)#
[sequence-number] {permit | deny}
source destination protocol
Step 3
the ACL. Without a sequence number, the rule is added
to the end of the rules.
The permit and deny commands support many ways of
identifying traffic.
(Optional)
Removes the rule that you specify from the MAC ACL.
switch(config-mac-acl)# no
{sequence-number | {permit|deny}
source destination protocol}
Step 4
The permit and deny commands support many ways of
identifying traffic.
(Optional)
Specifies that the switch maintains global statistics for
packets matching the rules in the ACL.
switch(config-mac-acl)# [no] statistics
Step 5
The no option stops the switch from maintaining global
statistics for the ACL.
(Optional)
Displays the MAC ACL configuration.
switch# show mac access-lists name
Step 6
(Optional)
Copies the running configuration to the startup
configuration.
switch# copy running-config
startup-config
Step 7
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
288 OL-16597-01
Configuring MAC ACLs
Changing a MAC ACL