| Access Control Lists
C
25
HAPTER
MAC ACLs
show ip access-list
MAC ACL
S
This command displays the rules for configured IPv4 ACLs.
S
YNTAX
show ip access-list {standard | extended} [acl-name]
standard – Specifies a standard IP ACL.
extended – Specifies an extended IP ACL.
acl-name – Name of the ACL. (Maximum length: 16 characters)
C
M
OMMAND
ODE
Privileged Exec
E
XAMPLE
Console#show ip access-list standard
IP standard access-list david:
permit host 10.1.1.21
permit 168.92.0.0 255.255.15.0
Console#
R
C
ELATED
OMMANDS
permit, deny, redirect-to (713)
ip access-group (717)
The commands in this section configure ACLs based on hardware
addresses, packet format, and Ethernet type. To configure MAC ACLs, first
create an access list containing the required permit or deny rules, and then
bind the access list to one or more ports.
Table 89: MAC ACL Commands
Command
Function
access-list mac
Creates a MAC ACL and enters configuration mode
permit, deny, redirect-to
Filters packets matching a specified source and
destination address, packet format, and Ethernet type
mac access-group
Binds a MAC ACL to a port
show mac access-group
Shows port assignments for MAC ACLs
show mac access-list
Displays the rules for configured MAC ACLs
– 718 –
Mode
GC
MAC-ACL
IC
PE
PE