Access Control List Commands

4-143

4

Access Control List Commands

Access Control Lists (ACL) provide packet filtering for IP frames (based on address,
protocol, or Layer 4 protocol port number or TCP control code), 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.

IP ACLs

The commands in this section configure ACLs based on IP addresses, TCP/UDP
port number, protocol type, and TCP control code. To configure IP 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 4-44 Access Control Lists
Command Groups Function Page
IP ACLs Configures ACLs based on IPv4 addresses, TCP/UDP port number,
protocol type, and TCP control code
4-143
MAC ACLs Configures ACLs based on hardware addresses, packet format, and
Ethernet type
4-149
ACL Information Displays ACLs and associated rules; shows ACLs assigned to each port 4-154
Table 4-45 IP ACLs
Command Function Mode Page
access-list ip Creates an IP ACL and enters configuration mode GC 4-144
permit, deny Filters packets matching a specified source IP address STD-ACL 4-145
permit, deny Filters packets meeting the specified criteria, including
source and destination IPv4 address, TCP/UDP port
number, protocol type, and TCP control code
EXT-ACL 4-146
show ip access-list Displays the rules for configured IP ACLs PE 4-148
ip access-group Adds a port to an IP ACL IC 4-148
show ip access-group Shows port assignments for IP ACLs PE 4-148