Chapter 26: Access Control List Commands
Access Control Lists (ACL) provide packet filtering for IPv4 frames (based on
address, protocol, Layer 4 protocol port number or TCP control code), IPv6 frames
(based on address, next header type, or flow label), or any frames (based on MAC
address or Ethernet type). To filter packets, first create an access list, add the
required rules, and then bind the list to a specific port. This section describes the
Access Control List commands.
Command Groups
IPv4 ACLs
IPv6 ACLs
MAC ACLs
ACL Information
IPv4 ACLs
The commands in this section configure ACLs based on IPv4 addresses, TCP/UDP
port number, protocol type, and TCP control code. To configure IPv4 ACLs, first
create an access list containing the required permit or deny rules, and then bind the
access list to one or more ports
Command
access-list ip
permit, deny
permit, deny
show ip access-list
ip access-group
show ip access-group
Table 26-1 Access Control List Commands
Function
Configures ACLs based on IPv4 addresses, TCP/UDP port number,
protocol type, and TCP control code
Configures ACLs based on IPv6 addresses, next header type, and flow
label
Configures ACLs based on hardware addresses, packet format, and
Ethernet type
Displays ACLs and associated rules; shows ACLs assigned to each port 26-16
Table 26-2 IPv4 ACL Commands
Function
Creates an IPv4 ACL and enters configuration mode for
standard or extended IPv4 ACLs
Filters packets matching a specified source IPv4 address
Filters packets meeting the specified criteria, including
source and destination IPv4 address, TCP/UDP port
number, protocol type, and TCP control code
Displays the rules for configured IPv4 ACLs
Adds a port to an IPv4 ACL
Shows port assignments for IPv4 ACLs
Page
26-1
26-7
26-12
Mode
Page
GC
26-2
IPv4-
26-2
STD-ACL
IPv4-
26-3
EXT-ACL
PE
26-5
IC
26-6
PE
26-6
26-1