5.2.7 Packet Tracer - Configure and Modify Standard IPv4 ACLs - ILM
5.2.7 Packet Tracer - Configure and Modify Standard IPv4 ACLs - ILM
(Instructor Version)
Instructor Note: Red font color or gray highlights indicate text that appears in the instructor copy only.
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
R1
G0/0/1 192.168.20.1 255.255.255.0 N/A
R1
S0/1/0 (DCE) 10.1.1.1 255.255.255.252 N/A
Edge
S0/1/1 (DCE) 10.2.2.2 255.255.255.252 N/A
Edge
S0/2/1 209.165.200.225 255.255.255.224 N/A
R3
G0/0/1 192.168.40.1 255.255.255.0 N/A
R3
S0/1/1 10.2.2.1 255.255.255.252 N/A
Objectives
Part 1: Verify Connectivity
Part 2: Configure and Verify Standard Numbered and Named ACLs
Part 3: Modify a Standard ACL
Background / Scenario
Network security and traffic flow control are important issues when designing and managing IP networks. The
ability to configure proper rules to filter packets, based on established security policies, is a valuable skill.
In this lab, you will set up filtering rules for two business locations that are represented by R1 and R3.
Management has established some access policies between the LANs located at R1 and R3, which you must
implement. The Edge router sitting between R1 and R3 has been provided by the ISP will not have any ACLs
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
placed on it. You would not be allowed any administrative access to the Edge router because you can only
control and manage your own equipment.
Instructions
From PC-A, ping PC-C and PC-D. Were your pings successful?
Type your answers here.
Yes
From R1, ping PC-C and PC-D. Were your pings successful?
Type your answers here.
Yes
From PC-C, ping PC-A and PC-B. Were your pings successful?
Type your answers here.
Yes
From R3, ping PC-A and PC-B. Were your pings successful?
Type your answers here.
Yes
Can all of the PCs ping the server at 209.165.200.254?
Type your answers here.
Yes
What wildcard mask would you use to allow all hosts on the 192.168.10.0/24 network to access the
192.168.30.0/24 network?
Type your answers here.
0.0.0.255
Following Cisco’s recommended best practices, on which router would you place this ACL?
Type your answers here.
R3
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
On which interface would you place this ACL? In what direction would you apply it?
Type your answers here.
G0/0/0. The ACL should be applied going out. Students may answer with placing the ACL on the S0/1/1
interface on R3 going in. Emphasize to them that this would effectively block the LANs on R1 from getting to
the 192.168.40.0/24 network as well!
a. Configure the ACL on R3. Use 1 for the access list number.
Open configuration window
To see access list 1 in its entirety with all ACEs, which command would you use?
Type your answers here.
R3# show access-lists 1
or
R3# show access-lists
What command would you use to see where the access list was applied and in what direction?
Type your answers here.
R3# show ip interface g0/0/0
or
R3# show ip interface
1) On R3, issue the show access-lists 1 command.
R3# show access-list 1
Standard IP access list 1
permit 192.168.10.0, wildcard bits 0.0.0.255
permit 192.168.20.0, wildcard bits 0.0.0.255
deny any
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
3) Test the ACL to see if it allows traffic from the 192.168.10.0/24 network to access the
192.168.30.0/24 network.
From the PC-A command prompt, ping the PC-C IP address. Were the pings successful?
Type your answers here.
Yes
4) Test the ACL to see if it allows traffic from the 192.168.20.0/24 network access to the
192.168.30.0/24 network.
From the PC-B command prompt, ping the PC-C IP address. Were the pings successful?
Type your answers here.
Yes
5) Should pings from PC-D to PC-C be successful? Ping from PC-D to PC-C to verify your answer.
Type your answers here.
No, the pings should not be successful. Trying the ping verifies that the ACL is working as intended.
d. From the R1 prompt, ping PC-C’s IP address again.
R1# ping 192.168.30.3
Question:
No, the pings failed. When you ping from the router, it uses the closest interface to the destination as its
source address. The pings had a source address of 10.1.1.1. The access list on R3 only allows the
192.168.10.0/24 and the 192.168.20.0/24 networks access.
e. Issue the show access-lists 1 command again. Note that the command output displays information for
the number of times each ACE was matched by traffic that reached interface Gigabit Ethernet 0/0/0.
R3# show access-lists 1
Standard IP access list 1
permit 192.168.10.0 0.0.0.255 (4 match(es))
permit 192.168.20.0 0.0.0.255 (4 match(es))
deny any (4 match(es))
Following Cisco’s recommended best practices, on which router would you place this ACL?
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
G0/0/0. The ACL should be applied going out. Students may answer with placing the ACL on the S0/0/0
interface on R1 going in. Emphasize to them that this would effectively block all traffic from the LANs on R3
from getting to the 192.168.20.0/24 network.
a. Create the standard named ACL BRANCH-OFFICE-POLICY on R1.
R1(config)# ip access-list standard BRANCH-OFFICE-POLICY
R1(config-std-nacl)# permit host 192.168.30.3
R1(config-std-nacl)# permit 192.168.40.0 0.0.0.255
R1(config-std-nacl)# end
R1#
*Feb 15 15:56:55.707: %SYS-5-CONFIG_I: Configured from console by console
Question:
Look at the first ACE in the access list. What is another way to write this?
Type your answers here.
permit 192.168.30.3 0.0.0.0
b. Apply the ACL to the appropriate interface in the proper direction.
R1# config t
R1(config)# interface g0/0/0
R1(config-if)# ip access-group BRANCH-OFFICE-POLICY out
c. Verify a named ACL.
1) On R1, issue the show access-lists command.
R1# show access-lists
Standard IP access list BRANCH-OFFICE-POLICY
10 permit host 192.168.30.3
20 permit 192.168.40.0 0.0.0.255
Question:
Is there any difference between this ACL on R1 and the ACL on R3? If so, what is it?
Type your answers here.
Although there is no line 30 with a deny any on R1, it is implied. You may wish to emphasize this to
your students. Having them explicitly configure the deny any ACE is a good practice and reinforces
the concept because it shows up in the output of the show access-lists command. It is easy to forget
the implicit deny any when troubleshooting ACLs. This could easily result in traffic being denied that
should have been allowed. In addition, if the explicit deny any ACE is present, it can be logged, and
the number of matches for the ACE condition can be viewed with show access-lists.
2) On R1, issue the show ip interface g0/0/0 command to verify that the ACL is configured on the
interface.
R1# show ip interface g0/0/0
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
Test the ACL. From the command prompt on PC-C, ping the IP address of PC-A. Were the pings
successful?
Type your answers here.
Yes
3) Test the ACL to ensure that only the PC-C host is allowed access to the 192.168.10.0/24 network.
You must do an extended ping and use the G0/0/0 address on R3 as your source. Ping PC-A’s IP
address.
R3# ping
Protocol [ip]:
Target IP address: 192.168.10.3
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.30.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.3, timeout is 2 seconds:
Packet sent with a source address of 192.168.30.1
U.U.U
Question:
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
b. Add two additional lines at the end of the ACL. From global config mode, modify the ACL, BRANCH-
OFFICE-POLICY.
R1#(config)# ip access-list standard BRANCH-OFFICE-POLICY
R1(config-std-nacl)# 30 permit 209.165.200.224 0.0.0.31
R1(config-std-nacl)# 40 deny any
R1(config-std-nacl)# end
c. Verify the ACL.
1) On R1, issue the show access-lists command.
R1# show access-lists
Standard IP access list BRANCH-OFFICE-POLICY
10 permit 192.168.30.3 (8 matches)
20 permit 192.168.40.0, wildcard bits 0.0.0.255 (5 matches)
30 permit 209.165.200.224, wildcard bits 0.0.0.31
40 deny any
Question:
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
Reflection Questions
1. As you can see, standard ACLs are very powerful and work quite well. Why would you ever have the need for
using extended ACLs?
Type your answers here.
Standard ACLs can only filter based on the source address. Also, they are not granular. They allow or deny
everything (all protocols and services). Extended ACLs, while harder to write, are well-suited for complex
networks where you may need to allow traffic for only certain Layer 4 ports to have access to networks while
denying others. In addition, standard ACLs must be applied as close to the destination as possible. This
allows unnecessary traffic to use network bandwidth. Extended ACLs can block traffic close to the source.
This prevents unnecessary traffic from traveling to the destination where it is blocked.
2. More typing is typically required when using a named ACL as opposed to a numbered ACL. Why would you
choose named ACLs over numbered?
Type your answers here.
Students could list two reasons here. The first reason is that using named ACLs gives you the ability to modify
specific lines within the ACL itself, without retyping the entire list. NOTE: Newer versions of the IOS allows
numbered ACLs to be modified just liked named ACLs. Secondly, having a named ACL is a good best
practice as it helps to document the purpose of the ACL with a descriptive name.
End of document
Answer Scripts
Router R1
enable
configure terminal
ip access-list standard BRANCH-OFFICE-POLICY
permit host 192.168.30.3
permit 192.168.40.0 0.0.0.255
interface g0/0/0
ip access-group BRANCH-OFFICE-POLICY out
ip access-list standard BRANCH-OFFICE-POLICY
30 permit 209.165.200.224 0.0.0.31
40 deny any
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 9 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
end
Router R3
enable
configure terminal
access-list 1 remark Allow R1 LANs Access
access-list 1 permit 192.168.10.0 0.0.0.255
access-list 1 permit 192.168.20.0 0.0.0.255
access-list 1 deny any
interface g0/0/0
ip access-group 1 out
end
2016 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 9 www.netacad.com