Lab 2 - Use Wireshark To View Network Traffic
Lab 2 - Use Wireshark To View Network Traffic
Course: NWC204
Semester: SU24
Class: SE1961
Name: Nguyễn Trần Phương Tuấn
Roll number: SE192824
Objectives
Part 1: Capture and Analyze Local ICMP Data in Wireshark
Part 2: Capture and Analyze Remote ICMP Data in Wireshark
Background / Scenario
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 RFC or other specifications.
Wireshark is a useful tool for anyone working with networks and can be used with most labs in the CCNA
courses for data analysis and troubleshooting. In this lab, you will use Wireshark to capture ICMP data packet
IP addresses and Ethernet frame MAC addresses.
Required Resources
1 PC (Windows with internet access)
Additional PCs on a local-area network (LAN) will be used to reply to ping requests.
Using a packet sniffer such as Wireshark may be considered a breach of the security policy of the school. It is
recommended that permission be obtained before running Wireshark for this lab. If using a packet sniffer such
as Wireshark is an issue, the instructor may wish to assign the lab as homework or perform a walk-through
demonstration.
Instructions
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
a. In a command prompt window, enter ipconfig /all, to the IP address of your PC interface, its description,
and its MAC (physical) address.
Ask a team member or team members for their PC IP address and provide your PC IP address to them.
Do not provide them with your MAC address at this time.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
b. Information will start scrolling down the top section in Wireshark. The data lines will appear in different
colors based on protocol.
This information can scroll by very quickly depending on what communication is taking place between
your PC and the LAN. We can apply a filter to make it easier to view and work with the data that is being
captured by Wireshark.
For this lab, we are only interested in displaying ICMP (ping) PDUs. Type icmp in the Filter box at the top
of Wireshark and press Enter, or click the Apply button (arrow sign) to view only ICMP (ping) PDUs.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
c. This filter causes all data in the top window to disappear, but you are still capturing the traffic on the
interface. Navigate to a command prompt window and ping the IP address that you received from your
classmate.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
Notice that you start seeing data appear in the top window of Wireshark again.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
b. With this PDU frame still selected in the top section, navigate to the middle section. Click the plus sign to
the left of the Ethernet II row to view the destination and source MAC addresses.
c.
Questions:
answers
here.
Does the destination MAC address in Wireshark match your team member MAC address?
It doesn’t match because each one has it own MAC address.
How is the MAC address of the pinged PC obtained by your PC?
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
1) Fpt.edu.vn
2) www.cisco.com
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
3) www.google.com
Note: When you ping the URLs listed, notice that the Domain Name Server (DNS) translates the URL to
an IP address. Note the IP address received for each URL.
d. You can stop capturing data by clicking the Stop Capture icon.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 9 www.netacad.com
Lab 2 - Use Wireshark to View Network Traffic
Step 2: Examining and analyzing the data from the remote hosts.
Review the captured data in Wireshark and examine the IP and MAC addresses of the three locations that
you pinged. List the destination IP and MAC addresses for all three locations in the space provided.
Questions:
swers here.
MAC address for www.google.com:
Reflection Question
Why does Wireshark show the actual MAC address of the local hosts, but not the actual MAC address for the
remote hosts?
The reason for this is that MAC addresses are specific to the local network segment. When a packet is sent
from a local host to a remote host, it goes through routers, which strip off the original MAC address and
replace it with their own MAC address. As a result, when the packet reaches the remote host, the original
MAC address is no longer visible. Therefore, Wireshark can only show the MAC addresses of the hosts within
the local network.
2013 - 2024 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 9 www.netacad.com