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
20-11
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 20 Configuring ACLs
Configuring MAC ACLs
The following example shows how to change a MAC ACL:
switch#
configure terminal
switch(config)#
mac access-list acl-mac-01
switch(config-mac-acl)#
100 permit mac 00c0.4f00.00 0000.00ff.ffff any
switch(config-mac-acl)#
statistics
switch(config-mac-acl)#
show mac access-lists acl-mac-01
switch(config-mac-acl)#
copy running-config startup-config
Removing a MAC ACL
You can remove a MAC ACL from the switch.
Be sure that you know whether the ACL is applied to an interface. The switch allows you to remove
ACLs that are current applied. Removing an ACL does not affect the configuration of interfaces where
you have applied the ACL. Instead, the switch considers the removed ACL to be empty.
Step 3
switch(config-mac-acl)# [
sequence-number
]
{
permit
|
deny
}
source
destination protocol
(Optional) Creates a rule in the MAC ACL. Using a
sequence number allows you to specify a position
for the rule in 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.
Step 4
switch(config-mac-acl)#
no
{
sequence-number
| {
permit
|
deny
}
source
destination protocol
}
(Optional) Removes the rule that you specify from
the MAC ACL.
The
permit
and
deny
commands support many
ways of identifying traffic.
Step 5
switch(config-mac-acl)# [
no
]
statistics
(Optional) Specifies that the switch maintains
global statistics for packets matching the rules in
the ACL.
The
no
option stops the switch from maintaining
global statistics for the ACL.
Step 6
switch(config-mac-acl)#
show mac
access-lists
name
(Optional) Displays the MAC ACL configuration.
Step 7
switch(config-mac-acl)#
copy
running-config startup-config
(Optional) Copies the running configuration to the
startup configuration.
Command
Purpose
Summary of Contents for N5010P-N2K-BE
Page 50: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 102: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 240: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 312: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 400: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 418: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 436: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 658: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...