Acl Ccna2
Acl Ccna2
Jan 18, 2018 Last Updated: Jan 18, 2018 120 Labs CCNA 2 Comments
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.
Router1( config)#
2. 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.
3. 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.
4. Once you applied an ACL on a router, execute the following command to view
the applied ACLs.
5. 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.
6. 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
7. Try to ping again from PC0 to Router2, this time you should be able ping
successfully, because you have removed the applied ACL.
3. The following figure shows the syntax to select the destination address and
packet filter method.
4. The following figure shows the syntax to select the port number.
Router2( config)# access-list 150 deny tcp host 10.0.0.2 host 20.0.0.2
0.0.0.0 eq www
2. Once you applied an ACL on the desired interface, execute the following
command to view the configured access lists.
3. The following figure shows how to configure an extended ACL on cisco router.
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.
2. 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.
3. 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.