5.2.7 Packet Tracer - Configure and Modify Standard IPv4 ACLs
5.2.7 Packet Tracer - Configure and Modify Standard IPv4 ACLs
5.2.7 Packet Tracer - Configure and Modify Standard IPv4 ACLs
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
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.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 7 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
Instructions
From PC-A, ping PC-C and PC-D. Were your pings successful? Yes
Type your answers here.
From R1, ping PC-C and PC-D. Were your pings successful? Yes
Type your answers here.
From PC-C, ping PC-A and PC-B. Were your pings successful? Yes
Type your answers here.
From R3, ping PC-A and PC-B. Were your pings successful? Yes
Type your answers here.
Can all of the PCs ping the server at 209.165.200.254? Yes
Type your answers here.
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?
0.0.0.255
Type your answers here.
Following Cisco’s recommended best practices, on which router would you place this ACL?
R3
Type your answers here.
On which interface would you place this ACL? In what direction would you apply it?
G0/0/0 and outbound.
Type your answers here.
a. Configure the ACL on R3. Use 1 for the access list number.
Open configuration window
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 7 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
To see access list 1 in its entirety with all ACEs, which command would you use?
Show access-list 1
Type your answers here.
What command would you use to see where the access list was applied and in what direction?
Show ip int g0/0/0
Type your answers here.
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
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? Yes
Type your answers here.
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.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 7 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
Was the ping successful? Explain. Not successful because we have only allowed 192.168.10.0 and
192.168.20.0 network and we have denied the 10.0.0.1
here.
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? R1
Type your answers here.
On which interface would you place this ACL? In what direction would you apply it? G0/0/0 and in outbound
direction.
Type your answers here.
Look at the first ACE in the access list. What is another way to write this?
Permit 192.168.30.3 0.0.0.0
Type your answers here.
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.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 7 www.netacad.com
Packet Tracer - Configure and Modify Standard IPv4 ACLs
Is there any difference between this ACL on R1 and the ACL on R3? If so, what is it?
There is no line 30 as we did not deny anything in R1 however in R3 there were 3 lines.
Type your answers here.
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
GigabitEthernet0/0/0 is up, line protocol is up (connected)
Internet address is 192.168.10.1/24
Broadcast address is 255.255.255.255
Address determined by setup command
MTU is 1500 bytes
Helper address is not set
Directed broadcast forwarding is disabled
Outgoing access list is BRANCH-OFFICE-POLICY
Inbound access list is not set
<Output omitted>Question:
Test the ACL. From the command prompt on PC-C, ping the IP address of PC-A. Were the pings
successful? YES
Type your answers here.
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.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 7 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
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 7 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?
Standard ACLs can filter only on the basis of sour address however extended ACLs are better for complex or
large networks.
Type your answers here.
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?
Having named ACL is best because it helps to document the purpose of ACL with a description name.
Type your answers here.
End of document
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 7 www.netacad.com