Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
5.6 Configure and verify access control lists

TutorialLab 12615 min

Lab 126: Configuring Access Control Lists (ACLs)

Lab 126: Configuring Access Control Lists (ACLs)

Access Control List (ACL) is a security feature that allows you to filter the network traffic based on configured statements. An ACL can be used to filter either inbound or outbound traffic on an interface. Once you applied an access list on a router, the router examine every packet moving from interface to another interface in the specified direction and takes the appropriate action.

Types of ACL

An ACL can be either of the following two types.

Standard access lists

A Standard access list can use only the source IP address in an IP packet to filter the network traffic. Standard access lists are typically used permit or deny an entire system or network. They cannot be used to filter individual protocol or services such as FTP and Telnet.

Extended access lists

Extended access lists use the source and destination IP addresses. They can be used to filter specific protocol or service.

An ACL can be configured using either a number or a name. If you decide to use a name to configure an ACL it is referred as Named ACL.

Let’s see how to configure ACL

  1. We will use the following topology to configure ACL. Create the following topology in Cisco Packet Tracer.

The ACL lab network. Router1, a 2811, uses Fa0/1 with address 192.168.0.1 on the link to Router2, also a 2811, whose end of that link is Fa0/1 with 192.168.0.2. Router1's Fa0/0 carries 10.0.0.1 and runs down to Switch0, a 2960-24TT, which serves two PC-PT workstations, PC1 at 10.0.0.2 and PC2 at 10.0.0.3. On the far side, Router2's Fa0/0 carries 20.0.0.1 and connects to a Server-PT named Server at 20.0.0.2. Every link light in the figure is green. No subnet masks are printed.

  1. Once you have created the preceding topology, configure the appropriate IP addresses as mentioned in the topology. To do so, execute the following commands on Router1.
Router1( config)# int fa0/ 0
Router1( config-if)# ip add 10.0.0.1 255.0.0.0
Router1( config-if)# no shut
Router1( config-if)# exit
Router1( config)# int fa0/ 1
Router1( config-if)# ip add 192.168.0.1 255.255.255.0
Router1( config-if)# no shut
Router1( config-if)# exit
  1. Once you have configured appropriate IP addresses, use a routing method such as RIP. To do so, execute the following commands on Router1.
Router1( config)# router rip
Router1( config-router)# network 192.168.0.0
Router1( config-router)# network 10.0.0.0
Router1( config-router)# exit
Router1( config)#
  1. Next, move on to Router2 and execute the following commands to configure IP addresses and the RIP routing protocol.
Router2( config)# int fa0/ 0
Router2( config-if)# ip add 20.0.0.1 255.0.0.0
Router2( config-if)# no shut
Router2( config-if)# exit
Router2( config)# int fa0/ 1
Router2( config-if)# ip add 192.168.0.2 255.255.255.0
Router2( config-if)# no shut
Router2( config-if)# exit
Router2( config)# router rip
Router2( config-router)# network 192.168.0.0
Router2( config-router)# network 20.0.0.0
Router2( config-router)# exit
  1. After configuring IP addresses on routers, configure IP addresses on PC0, PC1, and Server.

  2. Now, open the Command Prompt on PC0 and type ping 20.0.0.2 you should be able to ping successfully. Save the topology as it will be used to demonstrate the next exercises.

Now, you have configured the appropriate IP addresses and routing on your network topology. Before configuring an ACL, we would like to explain the command syntaxes used to configure it. As discussed earlier you either use the numbered ACL method or Named ACL method.

  1. The following figure shows the command syntax used to configure an ACL.

A router console reading the context help that builds a standard ACL. "access-list ?" answers with two ranges, "<1-99> IP standard access list" and "<100-199> IP extended access list". "access-list 10 ?" offers "deny Specify packets to reject", "permit Specify packets to forward" and "remark Access list entry comment". "access-list 10 deny ?" offers "A.B.C.D Address to match", "any Any source host" and "host A single host address". The source boxes each of the three answer blocks in red and labels them with callouts reading "Choose ACL (standard or extended)", "Choose an Action" and "Choose the source method". The window's title bar says Router2.

Configure Standard ACL

Let’s see how to configure Standard ACL. In this demonstration, we will restrict host 10.0.0.2 from accessing Router2. To do so, perform the following steps:

  1. First, execute the following command to deny host 10.0.0.2.
Router2( config)# access-list 10 deny host 10.0.0.2
  1. Once you deny a host on a router, the router will deny all the hosts until you explicitly define the permitted hosts. In the following command we will permit all the hosts.
Router2( config)# access-list 10 permit any
  1. Next, switch to the interface on which you want to apply the ACL, in this case Fa0/ 1, and define the direction (inbound or outbound) of traffic that you want to filter. In this case, we will filter the incoming packets towards Router2. To do so execute the following commands.
Router2( config)# int fa0/ 1
Router2( config-if)# ip access-group 10 in
Router2( config-if)# exit
Router2( config)# exit
  1. Once you applied an ACL on a router, execute the following command to view the applied ACLs.
Router2# show ip access-lists

Router2's console building and applying standard access list 10. The commands are "access-list 10 deny host 10.0.0.2", "access-list 10 permit any", then "int fa0/1" and "ip access-group 10 in", followed by exit twice, which logs %SYS-5-CONFIG_I: Configured from console by console. "show ip access-lists" then reports "Standard IP access list 10" with entry 10 deny host 10.0.0.2 and entry 20 permit any.

  1. Next, open the Command Prompt of PC0, try to ping 192.168.0.2, you should not be able to ping, as shown in the following figure.

A Packet Tracer Command Prompt window on a PC, where a ping to 192.168.0.2 fails because the standard ACL is blocking the host. After a ^C, the command "ping 192.168.0.2" reports "Pinging 192.168.0.2 with 32 bytes of data:" and then four identical lines, "Reply from 192.168.0.2: Destination host unreachable." The statistics read "Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)," and the prompt returns to PC> seven times.

  1. Now, you have tested your ACL configuration. Now, remove the ACL configuration so the next exercise could be performed. To remove the configured ACL, execute the following command on Router2.
Router2( config)# no access-list 10 deny host 10.0.0.2
  1. Try to ping again from PC0 to Router2, this time you should be able ping successfully, because you have removed the applied ACL.

Configure Extended ACL.

In the previous exercise, we have discussed the basics of Access Control Lists (ACLs) and how to configure standard ACL. In this exercise, we will explain how to configure Extended ACL on Cisco routers. We assume that you have loaded the previous topology and the standard ACL configuration are removed.

Syntax to configure an Extended ACL.

  1. Once you have done the TCP/ IP and routing configuration, let’s have a look at the syntax used to configure an Extended ACL on Cisco routers.
Router( config)# access-list < an ACL number from 100-199 > < select an action > < select a

protocol or service > < source address > < destination address > < port number > < packet

condition >
  1. If the preceding syntax does not help you, let’s have a look at the syntax in detail. The following figure shows the syntax to select the action, protocol, and source address.

Router2's console reading the help that builds an extended ACL. "access-list 101 ?" offers "deny Specify packets to reject", "permit Specify packets to forward" and "remark Access list entry comment". "access-list 101 deny ?" then lists nine protocols: ahp (Authentication Header Protocol), eigrp (Cisco's EIGRP routing protocol), esp (Encapsulation Security Payload), gre (Cisco's GRE tunneling), icmp (Internet Control Message Protocol), ip (Any Internet Protocol), ospf (OSPF routing protocol), tcp (Transmission Control Protocol) and udp (User Datagram Protocol). "access-list 101 deny tcp ?" then offers "A.B.C.D Source address", "any Any source host" and "host A single source host". Callouts label the three blocks "Select an action", "Select the protocol or service" and "Select the source address". One further line above the first command is cut in half by the scroll area and is not legible, so it is omitted here.

  1. The following figure shows the syntax to select the destination address and packet filter method.

Router2's console carrying the extended ACL on to its destination and filter keywords. The help after "access-list 101 deny tcp host" lists A.B.C.D (Destination address), any (Any destination host), eq (Match only packets on a given port number), gt (greater port number), host (A single destination host), lt (lower port number), neq (not on a given port number) and range (in the range of port numbers). The command is then extended to "access-list 101 deny tcp host 10.0.0.2 20.0.0.2 ?", which answers "A.B.C.D Destination wildcard bits", and to "...20.0.0.2 0.0.0.0 ?", which lists dscp, eq, established, gt, lt, neq, precedence, range and <cr>. Two things cannot be read in the source: the source address after "deny tcp host" on the first line is covered by a callout bubble, and the middles of the dscp and eq description lines are covered by the "Select the packet filter method" callout, so they are shown here with an ellipsis. The other callout reads "Select the destination address".

  1. The following figure shows the syntax to select the port number.

Router2's console asking for the port keywords that finish the extended ACL. After "access-list 101 deny tcp host 10.0.0.2 20.0.0.2 0.0.0.0 eq ?" the router lists "<0-65535> Port number", "ftp File Transfer Protocol (21)", "pop3 Post Office Protocol v3 (110)", "smtp Simple Mail Transport Protocol (25)", "telnet Telnet (23)" and "www World Wide Web (HTTP, 80)". The block is boxed in red and labelled by a callout that reads "Select he port", with that spelling in the source. One further line below www, beginning with icmp, is cut off by the bottom edge of the console and is not legible, so it is omitted here.

Let’s begin the configuration

To configure Extended Access Control List, we will use the following network topology. In this example, we will deny the host 10.0.0.2 from accessing the Web server (20.0.0.2).

The same ACL lab network as earlier in the lab. Router1, a 2811, uses Fa0/1 with 192.168.0.1 on the link to Router2, another 2811, whose end is Fa0/1 with 192.168.0.2. Router1's Fa0/0 carries 10.0.0.1 and runs down to Switch0, a 2960-24TT, which serves PC-PT workstations PC1 at 10.0.0.2 and PC2 at 10.0.0.3. Router2's Fa0/0 carries 20.0.0.1 and connects to a Server-PT named Server at 20.0.0.2. All link lights are green and no masks are printed.

  1. In order to prevent host 10.0.0.2 to access the Web server (20.0.0.2), you need to execute the following commands.
Router2( config)# access-list 150 deny tcp host 10.0.0.2 host 20.0.0.2 0.0.0.0 eq
www
Router2( config)# access-list 150 permit ip any any
Router2( config)# int fa0/ 1
Router2( config-if)# ip access-group 150 in
Router2( config-if)# exit
Router2( config)# exit
  1. Once you applied an ACL on the desired interface, execute the following command to view the configured access lists.
Router2# show ip access-lists
  1. The following figure shows how to configure an extended ACL on cisco router.

Router2's console writing extended access list 150 and applying it. The entries are "access-list 150 deny tcp host 10.0.0.2 20.0.0.2 0.0.0.0 eq www" and "access-list 150 permit ip any any"; the list is then applied with "int fa0/1" and "ip access-group 150 in". After exiting, %SYS-5-CONFIG_I: Configured from console by console is logged and "show ip access-lists" reports "Extended IP access list 150" with entry 10 deny tcp host 10.0.0.2 host 20.0.0.2 eq www and entry 20 permit ip any any (2 match(es)).

Verify Access Control List Configuration.

  1. To verify your configuration, open the Web browser on PC0, type http:// 20.0.0.2 and press Enter. You should not be able to access the Web server, as shown in the following figure.

The Packet Tracer Web Browser on the denied PC. The URL box holds http://20.0.0.02, exactly as typed in the source with the extra zero, and the page area shows only the words "Request Timeout": the extended ACL has blocked the HTTP request to the server.

  1. Now move on to PC2 and try to access Web server, this time you should be able to access Web server. This is because we have not prevented PC2 to access Web server.

The Packet Tracer Web Browser showing the server's page loaded successfully. The URL box holds http://20.0.0.2 and the page is headed "Cisco Packet Tracer", with the text "Welcome to Cisco Packet Tracer. Opening doors to new opportunities. Mind Wide Open." and a "Quick Links:" list of four links: A small page, Copyrights, Image page and Image.

  1. Now, you have configured and verified the Extended ACL, you can remove the configured ACL. To do so, execute the following command on Router2.
Router2( config)# no access-list 150 deny tcp host 10.0.0.2 host 20.0.0.2 eq www
  1. Close the Cisco Packet tracer.

Source: itexamanswers.net