Lab 3 - View Captured Traffic in Wireshark
Lab 3 - View Captured Traffic in Wireshark
Metric Number
Group
Topology
Objectives
Part 1: Download and Install Wireshark
Part 2: Capture and Analyze ARP Data in Wireshark
Start and stop data capture of ping traffic to remote hosts.
Locate the IPv4 and MAC address information in captured PDUs.
Analyze the content of the ARP messages exchanged between devices on the LAN.
Part 3: View the ARP cache entries on the PC
Access the Windows Command Prompt.
Use the Windows arp command to view the local ARP table cache on the PC.
Background / Scenario
Address Resolution Protocol (ARP) is used by TCP/IP to map a Layer 3 IPv4 address to a Layer 2 MAC
address. When an Ethernet frame is transmitted on the network, it must have a destination MAC address. To
dynamically discover the MAC address of a known destination, the source device broadcasts an ARP request
on the local network. The device that is configured with the destination IPv4 address responds to the request
with an ARP reply and the MAC address is recorded in the ARP cache.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
Every device on the LAN maintains its own ARP cache. The ARP cache is a small area in RAM that holds the
ARP responses. Viewing an ARP cache on a PC displays the IPv4 address and the MAC address of each
device on the LAN with which the PC has exchanged ARP messages.
Wireshark is a software protocol analyzer, or "packet sniffer" application, used for network troubleshooting,
analysis, software and protocol development, and education. As data streams travel back and forth over the
network, the sniffer "captures" each protocol data unit (PDU) and can decode and analyze its content
according to the appropriate protocol specifications.
Wireshark is a useful tool for anyone working with networks and can be used with most labs in the Cisco
courses for data analysis and troubleshooting. This lab provides instructions for downloading and installing
Wireshark, although it may already be installed. In this lab, you will use Wireshark to capture ARP exchanges
on the local network.
Required Resources
1 PC (Windows 10)
internet access
Additional PC(s) on a local-area network (LAN) will be used to reply to ping requests. If no additional
PCs are on the LAN, the default gateway address will be used to reply to the ping requests.
Instructions
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
d. Continue advancing through the installation process. Click I Agree when the License Agreement window
displays.
e. Keep the default settings on the Choose Components window and click Next.
f. Choose your desired shortcut options and click Next.
g. You can change the installation location of Wireshark, but unless you have limited disk space, it is
recommended that you keep the default location.
h. To capture live network data, Npcap must be installed on your PC. If your installed version of Npcap is
older than the version that comes with Wireshark, it is recommended that you allow the newer version to
be installed by clicking the Install Npcap x.x.x (version number) check box. Click Next.
i. A separate window opens up for Npcap Setup. Click I Agree to in the Npcap License Agreement window.
In the Installation Options window, leave all the checkboxes unselected and click Install to install Npcap.
Click Next when finished. Click Finish to close the wizard.
j. The installation of USBPcap is not necessary for this course. It is only required if you are planning to
capture USB traffic. Click Install to start the installation.
Note: Because USBPcap is experimental, make sure that you have created a system restore point
before the installation of USBPcap.
k. Wireshark starts installing its files and a separate window displays with the status of the installation. Click
Next when the installation is complete.
l. Click Finish to complete the Wireshark install process. If the installation process is stalled, verify that the
Npcap installation is finished. Click Next to continue.
m. Reboot the PC to finish the installation.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
c. Ask a team member for their PC’s IPv4 address and give your PC’s IPv4 address to them. Do not provide
them with your MAC address at this time.
Question:
Record the IPv4 addresses of the default gateway and the other PCs on the LAN.
Type your answers here.
d. Ping the IPv4 addresses of other PCs on the LAN that were provided to you by your team members.
Note: If your team member’s PC does not reply to your pings, this may be because their PC firewall is
blocking these requests. Ask your instructor for assistance to disable the PC firewall if necessary.
e. Stop capturing data by clicking Stop Capture (red square icon) on the toolbar.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
a. Click one of the ARP frames in the top section that has your PC MAC address as the source address in
the frame and “broadcast” as the destination of the frame.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
b. With this PDU frame still selected in the top section, navigate to the middle section. Click the arrow to the
left of the Ethernet II row to view the Destination and Source MAC addresses.
Question:
Step 4: Locate the ARP response frame that corresponds to the ARP request that you
highlighted.
a. Using the Target IPv4 address in the ARP request, locate the ARP response frame in the upper section of
the Wireshark capture screen.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
Question:
What is the IPv4 address of the Target device in your ARP request?
e. Verify with your team member that the MAC address matches the MAC address of
their PC.
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab 3 - View Captured Traffic in Wireshark
The output of the arp –a command displays the entries that are in the cache on the PC. In the example,
the PC has entries for the default gateway (192.168.1.1) and for two PCs that are located on the same
LAN (192.168.1.9 and 192.168.1.13).
Question:
b. The arp command on the Windows PC has another functionality. Enter arp /? at the command prompt
and press enter. The arp command options enable you to view, add and remove ARP table entries if
necessary.
Question:
Reflection
1. What is a benefit of keeping ARP cache entries in memory on the source computer?
2. If the destination IPv4 address is not located on the same network as the source host, what MAC
address will be used as the destination target MAC address in the frame?
2016 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com