ACL Demo
ACL Demo
ACL Demo
Instructor Note: Red font color or gray highlights indicate text that appears
in the instructor copy only.
Objectives
Part 1: Verify Local Connectivity and Test Access Control List
Part 2: Remove Access Control List and Repeat Test
Background
In this activity, you will observe how an access control list (ACL) can be used
to prevent a ping from reaching hosts on remote networks. After removing
the ACL from the configuration, the pings will be successful.
Addressing Table
Device Interface IP Address / Prefix
G0/0 192.168.10.1/24
G0/1 192.168.11.1/24
R1 S0/0/0 10.1.1.1/30
S0/0/0 10.10.1.2/30
R2 S0/0/1 10.10.1.5/30
G0/0 192.168.30.1/24
G0/1 192.168.31.1/24
R3 S0/0/1 10.10.1.6/24
Instructions
Part 1: Verify Local Connectivity and Test
Access Control List
Step 1: Ping devices on the local network to verify
connectivity.
a. From the command prompt of PC1, ping PC2.
b. From the command prompt of PC1, ping PC3.
Why were the pings successful?
<cr>
If you know the ACL number or name, you can filter the show output further.
However, R1 only has one ACL; therefore, the show access-lists command
will suffice.
R1#show access-lists
20 permit any
The first line of the ACL blocks any packets that originate in
the 192.168.10.0/24 network, which includes Internet Control Message
Protocol (ICMP) echoes (ping requests). The second line of the ACL allows all
other ip traffic from any source to transverse the router.
b. For an ACL to impact router operation, it must be applied to an interface in
a specific direction. In this scenario, the ACL is used to filter traffic exiting an
interface. Therefore, all traffic leaving the specified interface of R1 will be
inspected against ACL 11.
Although you can view IP information with the show ip interface command,
it may be more efficient in some situations to simply use the show
run command. To obtain a complete list of interfaces that the ACL that may
be applied to, and the list of all ACLs that are configured, use the following
command:
R1# show run | include interface|access
interface GigabitEthernet0/0
interface GigabitEthernet0/1
interface Serial0/0/0
ip access-group 11 out
interface Serial0/0/1
interface Vlan1
The second pipe symbol ‘|” creates an OR condition that matches ‘interface’
OR ‘access’. It is important that no spaces are included in the OR condition.
Use one or both of these commands to find information about the ACL.
R1(config)# no access-list 11
c. Verify that PC1 can now ping the DNS Server and PC4.