
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
1-13
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 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 1-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 global configuration mode.
Step 2
switch(config)#
interface
ethernet
slot
/
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.