Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
20-13
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 20 Configuring ACLs
Configuring MAC ACLs
To apply a MAC ACL as a port ACL, perform this task:
Applying a MAC ACL as a VACL
You can apply a MAC ACL as a VACL. For information about how to create a VACL using a MAC ACL,
see the “Creating or Changing a VACL” section on page 20-15.
Verifying MAC ACL Configurations
To display MAC ACL configuration information, perform one of the following tasks:
Displaying and Clearing MAC ACL Statistics
Use the show mac access-lists command to display statistics about a MAC ACL, including the number
of packets that have matched each rule.
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# interface
ethernetslot/port
Enters interface configuration mode for the
specified interface.
switch(config)# interface port-channel
channel-number}
Enters interface configuration mode for a
port-channel interface.
Step 3
switch(config-if)# mac port access-group
access-list
Applies a MAC ACL to the interface.
Step 4
switch(config-if)# show running-config
(Optional) Displays ACL configuration.
Step 5
switch(config-if)# copy running-config
startup-config
(Optional) Copies the running configuration to the
startup configuration.
Command Purpose
show mac access-lists Displays the MAC ACL configuration
show running-config Displays ACL configuration, including MAC
ACLs and the interfaces that ACLs are applied to.
show running-config interface Displays the configuration of the interface to
which you applied the ACL.