2.
Enter one of the following commands:
•
interface ethernet slot
/
port
•
interface port-channel channel-number
3.
mac port access-group access-list
4.
(Optional)
show running-config aclmgr
5.
(Optional)
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Enter one of the following commands:
Step 2
• Enters interface configuration mode for a Layer 2 or
Layer 3 interface.
•
interface ethernet slot
/
port
• Enters interface configuration mode for a Layer 2 or
Layer 3 port-channel interface.
•
interface port-channel channel-number
Example:
switch(config)# interface ethernet 2/1
switch(config-if)#
Example:
switch(config)# interface port-channel 5
switch(config-if)#
Applies a MAC ACL to the interface.
mac port access-group access-list
Example:
Step 3
switch(config-if)# mac port access-group acl-01
Displays the ACL configuration.
(Optional)
show running-config aclmgr
Example:
Step 4
switch(config-if)# show running-config aclmgr
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 5
switch(config-if)# copy running-config
startup-config
Applying a MAC ACL as a VACL
You can apply a MAC ACL as a VACL.
Enabling or Disabling MAC Packet Classification
You can enable or disable MAC packet classification on a Layer 2 interface.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
291
Configuring MAC ACLs
Applying a MAC ACL as a VACL