Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
1.13 Switching concepts

Lab3.4.1.2ccna110 min

3.4.1.2 Lab - Using Wireshark to View Network Traffic

Topology

A cloud labelled Internet sits above a default gateway router. Below the router is a LAN carrying three hosts: two desktop PCs and a laptop, all on the same segment.

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 7, 8, or 10 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.

Part 1: Capture and Analyze Local ICMP Data in Wireshark

In Part 1 of this lab, you will ping another PC on the LAN and capture ICMP requests and replies in Wireshark. You will also look inside the frames captured for specific information. This analysis should help to clarify how packet headers are used to transport data to their destination.

Step 1: Retrieve your PC interface addresses.

For this lab, you will need to retrieve your PC IP address and its network interface card (NIC) physical address, also called the MAC address.

a. Open a command window, type ipconfig /all, and then press Enter.

b. Note the IP address of your PC interface, its description, and its MAC (physical) address.

A Windows command prompt running ipconfig /all on Windows version 10.0.16299.64. The host name is DESKTOP-C73CB0M, the node type is Hybrid, IP routing and WINS proxy are both disabled. Under Ethernet adapter Ethernet, circled in the original, the description is Intel(R) 82577LM Gigabit Network Connection and the physical address is 00-26-B9-DD-00-91. DHCP and autoconfiguration are both enabled. The IPv4 address, also circled, is 192.168.1.147(Preferred), the subnet mask is 255.255.255.0, and both the default gateway and the DHCP server are 192.168.1.1. The link-local IPv6 address is not reproduced because the red annotation is drawn straight through it and its digits cannot be read with confidence.

c. 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.

Step 2: Start Wireshark and begin capturing data.

a. On your PC, click the Windows Start button to see Wireshark listed as one of the programs on the pop-up menu. Double-click Wireshark.

b. After Wireshark starts, click the capture interface to be used. Because we are using the wired Ethernet connection on the PC, make sure the Ethernet option is on the top of the list.

The Wireshark welcome screen. Under the Capture heading, with the capture filter box empty and the list set to All interfaces shown, four interfaces are offered: Ethernet, Local Area Connection star 2, Bluetooth Network Connection and Wi-Fi. Ethernet is the one circled and selected, and it is the only one whose traffic sparkline shows activity; the other three sparklines are flat.

You can manage the capture interface by clicking Capture and Options:

c. A list of interfaces will display. Make sure the capture interface is checked under Promiscuous.

The Input tab of the Wireshark Capture Interfaces dialog. Nine interfaces are listed: Ethernet (selected), Local Area Connection star 2, Bluetooth Network Connection, Wi-Fi, VirtualBox Host-Only Network, VMware Network Adapter VMnet1 and VMware Network Adapter VMnet8, all with link-layer header Ethernet, Promiscuous ticked, Snaplen default and Buffer 2 MB; then USBPcap1 and USBPcap2, whose link-layer header is USBPcap and whose Promiscuous, Snaplen and Buffer cells are all dashes. The Monitor Mode column is a dash for every Ethernet interface and the Capture Filter column is empty throughout. The Promiscuous column heading is circled, as is the Manage Interfaces button at the bottom right. The checkbox Enable promiscuous mode on all interfaces at the bottom left is ticked.

Note: We can further manage the interfaces on the PC by clicking Manage Interfaces. Verify that the description matches what you noted in Step 1b. Close the Manage Interfaces window after verifying the correct interface.

The Local Interfaces tab of the Wireshark Manage Interfaces dialog. Every row has Show ticked. The seven NPF devices and the names they map to are: \Device\NPF_{D4A31D07-7C67-4EA5-A616-5176A4480E45} is Ethernet, commented Intel(R) 82577LM Gigabit Network Connecti...; \Device\NPF_{8EEEE9C9-CBDD-48A5-A5C8-B170E06E5C9E} is Local Area Con..., Microsoft; \Device\NPF_{62A0C595-57AB-4F11-BF59-377877A4661F} is Bluetooth Netw..., Microsoft; \Device\NPF_{83D1D43F-D072-4D65-8FF3-C810AFC3B6F4} is Wi-Fi, Microsoft; \Device\NPF_{995ED4A7-93E7-4E77-8ED9-DBF5C40304DD} is VirtualBox Host..., Oracle; \Device\NPF_{FE06641A-21AD-4B0C-96AC-48D146A7D233} and \Device\NPF_{755568CC-DBA3-4EDB-9550-9749B2C67549} are the two VMware Netwo... adapters, both commented VMware Virtual Ethernet Adapter. Two more rows, \.\USBPcap1 and \.\USBPcap2, map to USBPcap1 and USBPcap2 with no comment. The buttons at the bottom are OK, Cancel and Help.

d. After you have checked the correct interface, click Start to start the data capture.

Note: You can also start the data capture by clicking the Wireshark icon in the main interface.

Information will start scrolling down the top section in Wireshark. The data lines will appear in different colors based on protocol.

Wireshark capturing live from Ethernet, with no display filter applied. Frame 1 at time 0.000000 is an ICMPv6 Router Advertisement of 86 bytes from fe80::1691:82ff:fe9... to ff02::1. Frames 2 and 3 are DNS, a standard query 0x7376 of 87 bytes from 192.168.1.147 to 192.168.1.1 at 33.958601 and the 168 byte response back at 33.972707. Frames 4, 5 and 6 are the TCP three-way handshake with 137.116.77.120: a 66 byte SYN from 192.168.1.147 port 49953 to port 443 at 33.974092, a 66 byte SYN, ACK back at 33.997809, and a 54 byte ACK at 33.997916. Frame 1 is selected and its four layers are listed collapsed: Frame 1, 86 bytes on wire (688 bits), 86 bytes captured (688 bits) on interface 0; Ethernet II, source BelkinIn_9f:6b:8c (14:91:82:9f:6b:8c), destination IPv6mcast_01 (33:33:00:00:00:01); Internet Protocol Version 6, source fe80::1691:82ff:fe9f:6b8c, destination ff02::1; and Internet Control Message Protocol v6. The status bar reads Ethernet: live capture in progress, Packets: 41, Displayed: 41 (100.0%), Profile: Default. The Info column is cut off at the right edge of the window, so the ends of those strings are not in the source, and a seventh row is only half visible at the bottom edge.

e. 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 on the Apply button (arrow sign) to view only ICMP (ping) PDUs.

The Wireshark window titled star Ethernet, with icmp typed into the display filter box. The box is shaded green, which is how Wireshark says the filter is valid, and the arrow button that applies it is circled. The packet list below is empty: only the column headings No., Time, Source, Destination, Protocol, Length and Info are showing.

f. This filter causes all data in the top window to disappear, but you are still capturing the traffic on the interface. Bring up the command prompt window that you opened earlier and ping the IP address that you received from your team member.

A Windows command prompt on version 10.0.16299.64 running ping 192.168.1.114, the address of another PC on the same LAN. All four replies come back from 192.168.1.114 with bytes=32, time<1ms and TTL=64. The statistics read 4 sent, 4 received, 0 lost (0% loss), and minimum, maximum and average round trip times all 0ms.

Notice that you start seeing data appear in the top window of Wireshark again.

A Wireshark capture window titled Capturing from Ethernet with the display filter icmp applied. Eight packets are listed, numbers 3 to 10, all ICMP and all 74 bytes long, alternating echo request and echo reply between 192.168.1.147 and 192.168.1.114: 3 at 10.696465 is a request from .147 to .114, 4 at 10.781036 the reply, 5 at 11.718986 a request, 6 at 11.805097 a reply, 7 at 12.734584 a request, 8 at 12.829155 a reply, 9 at 13.750216 a request and 10 at 13.853254 a reply. Every Info cell begins id=0x0001, and is cut off by the right edge of the window. Packet 3 is selected and the detail pane below has the Ethernet II layer expanded: Ethernet II, Src: Dell_dd:00:91 (00:26:b9:dd:00:91), Dst: Apple_1e:80:72 (28:37:37:1e:80:72), under it Destination: Apple_1e:80:72 (28:37:37:1e:80:72) with Address: Apple_1e:80:72 (28:37:37:1e:80:72), the LG bit reading .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) and the IG bit reading .... ...0 .... .... .... .... = IG bit: Individual address (unicast), then Source: Dell_dd:00:91 (00:26:b9:dd:00:91). The frame line above reads Frame 3: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0. The status bar reads Packets: 10, Displayed: 8 (80.0%).

Note: If the PC of your team member does not reply to your pings, this may be because the PC firewall of the team member is blocking these requests. Please see Appendix A: Allowing ICMP Traffic Through a Firewall for information on how to allow ICMP traffic through the firewall using Windows 7.

g. Stop capturing data by clicking the Stop Capture icon.

Step 3: Examine the captured data.

In Step 3, examine the data that was generated by the ping requests of your team member PC. Wireshark data is displayed in three sections: 1) The top section displays the list of PDU frames captured with a summary of the IP packet information listed; 2) the middle section lists PDU information for the frame selected in the top part of the screen and separates a captured PDU frame by its protocol layers; and 3) the bottom section displays the raw data of each layer. The raw data is displayed in both hexadecimal and decimal form.

The same Wireshark capture, filtered on icmp, with red labels on the right naming the three panes: Top section for the packet list, Middle section for the packet detail and Bottom section for the packet bytes. The list again holds packets 3 to 10, all ICMP and 74 bytes, alternating echo request and echo reply between 192.168.1.147 and 192.168.1.114 at times 10.696465, 10.781036, 11.718986, 11.805097, 12.734584, 12.829155, 13.750216 and 13.853254. Packet 3 is selected and this time the Internet Control Message Protocol layer is expanded, showing Type: 8 (Echo (ping) request), Code: 0, Checksum: 0x4d4a [correct] and [Checksum Status: Good]. The three layers above it are collapsed: Frame 3: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0; Ethernet II, Src: Dell_dd:00:91 (00:26:b9:dd:00:91), Dst: Apple_1e:80:72 (28:37:37:1e:80:72); and Internet Protocol Version 4, Src: 192.168.1.147, Dst: 192.168.1.114. The status bar reads Packets: 160, Displayed: 8 (5.0%).

a. Click the first ICMP request PDU frames in the top section of Wireshark. Notice that the Source column has your PC IP address, and the Destination column contains the IP address of the teammate PC that you pinged.

A Wireshark packet list captured from the Ethernet interface with the display filter icmp applied. Two rows are shown. Packet 3, at time 10.696465, goes from 192.168.1.147 to 192.168.1.114, protocol ICMP, length 74, info Echo (ping) request. Packet 4, at time 10.781036, goes the other way, from 192.168.1.114 to 192.168.1.147, protocol ICMP, length 74, info Echo (ping) reply. The figure circles the source and destination addresses and the request and reply wording. The info column is cut off after the word request or reply in the source.

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.

The Wireshark window capturing from Ethernet with the display filter icmp, showing eight ICMP packets between 192.168.1.147 and 192.168.1.114, all of length 74 and all carrying id=0x0001. Packets 3, 5, 7 and 9 are Echo (ping) requests from 192.168.1.147 to 192.168.1.114 at times 10.696465, 11.718986, 12.734584 and 13.750216; packets 4, 6, 8 and 10 are Echo (ping) replies the other way at times 10.781036, 11.805097, 12.829155 and 13.853254. In the detail pane the Ethernet source is expanded and circled: Source: Dell_dd:00:91 (00:26:b9:dd:00:91), with Address: Dell_dd:00:91 (00:26:b9:dd:00:91), the LG bit reading Globally unique address (factory default) and the IG bit reading Individual address (unicast). Below it Type is IPv4 (0x0800) and the collapsed Internet Protocol Version 4 layer shows Src: 192.168.1.147, Dst: 192.168.1.114. The status bar reads Ethernet (eth), 14 bytes, Packets: 398, Displayed: 8 (2.0%), Profile: Default. The info column is cut off after id=0x0001 in the source, and the hex bytes pane is not transcribed.

Does the source MAC address match your PC interface (shown in Step 1.b)? ______

Does the destination MAC address in Wireshark match your team member MAC address? Yes How is the MAC address of the pinged PC obtained by your PC? ______

Note: In the preceding example of a captured ICMP request, ICMP data is encapsulated inside an IPv4 packet PDU (IPv4 header) which is then encapsulated in an Ethernet II frame PDU (Ethernet II header) for transmission on the LAN.

Part 2: Capture and Analyze Remote ICMP Data in Wireshark

In Part 2, you will ping remote hosts (hosts not on the LAN) and examine the generated data from those pings. You will then determine what is different about this data from the data examined in Part 1.

Step 1: Start capturing data on the interface.

a. Start the data capture again.

b. A window prompts you to save the previously captured data before starting another capture. It is not necessary to save this data. Click Continue without Saving.

c. With the capture active, ping the following three website URLs:

  1. www.yahoo.com 2) www.cisco.com 3) www.google.com

A Windows command prompt showing three pings to remote web servers. ping www.yahoo.com resolves to atsv2-fp.wg1.b.yahoo.com at 98.139.180.180 and gets four replies of 32 bytes at 43ms, 60ms, 43ms and 42ms, all with TTL=53; the statistics read 4 sent, 4 received, 0 lost (0% loss), minimum 42ms, maximum 60ms, average 47ms. ping www.cisco.com resolves to e2867.dsca.akamaiedge.net at 23.13.155.188 and gets four replies at 20ms, 21ms, 19ms and 19ms with TTL=56; minimum 19ms, maximum 21ms, average 19ms. ping www.google.com resolves to 216.58.194.100 and gets four replies at 56ms, 56ms, 55ms and 57ms with TTL=54; minimum 55ms, maximum 57ms, average 56ms. All three runs lost no packets.

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.

Step 2: Examining and analyzing the data from the remote hosts.

a. 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.

1st Location: IP: ______ . ______ . ______ . ______ MAC: ______ : ______ : ______ : ______ : ______ : ______ 2nd Location: IP: ______ . ______ . ______ . ______ MAC: ______ : ______ : ______ : ______ : ______ : ______ 3rd Location: IP: ______ . ______ . ______ . ______ MAC: ______ : ______ : ______ : ______ : ______ : ______

_IP addresses: 98.139.180.180, 23.13.155.188, 216.58.194.100 (these IP addresses may vary) MAC address: This will be the same for all three locations. It is the physical address of the default-gateway LAN interface of the router.

b. What is significant about this information? ______

c. How does this information differ from the local ping information you received in Part 1? ______

Reflection

Why does Wireshark show the actual MAC address of the local hosts, but not the actual MAC address for the remote hosts? ______

Appendix A: Allowing ICMP Traffic Through a Firewall

If the members of your team are unable to ping your PC, the firewall may be blocking those requests. This appendix describes how to create a rule in the firewall to allow ping requests. It also describes how to disable the new ICMP rule after you have completed the lab.

Step 1: Create a new inbound rule allowing ICMP traffic through the firewall.

a. From the Control Panel, click the System and Security option.

b. From the System and Security window, click Windows Firewall.

c. In the left pane of the Windows Firewall window, click Advanced settings.

d. On the Advanced Security window, choose the Inbound Rules option on the left sidebar and then click New Rule… on the right sidebar.

e. This launches the New Inbound Rule wizard. On the Rule Type screen, click the Custom radio button and click Next.

The Rule Type page of the New Inbound Rule Wizard, asking What type of rule would you like to create? The four choices are Program (rule that controls connections for a program), Port (rule that controls connections for a TCP or UDP port), Predefined with a greyed dropdown reading BranchCache - Content Retrieval (Uses HTTP) (rule that controls connections for a Windows experience), and Custom (custom rule). Custom is the one selected, and the Next button is circled. The Steps list down the left side reads Rule Type, Program, Protocol and Ports, Scope, Action, Profile, Name.

f. In the left pane, click the Protocol and Ports option and using the Protocol Type drop-down menu, select ICMPv4, and then click Next.

The Protocol and Ports page of the New Inbound Rule Wizard, asking To which ports and protocols does this rule apply? The Protocol type dropdown currently reads Any and has been opened; its list reads Any, Custom, HOPOPT, ICMPv4, IGMP, TCP, UDP, IPv6, IPv6-Route, IPv6-Frag, GRE, ICMPv6, IPv6-NoNxt, IPv6-Opts, VRRP, PGM, L2TP, and ICMPv4 is highlighted and circled as the one to pick. The fields the open list covers are Protocol number, Local port, Remote port and Internet Control Message Protocol (ICMP) settings. Protocol and Ports is circled in the Steps list on the left.

g. In the left pane, click the Name option and in the Name field, type Allow ICMP Requests. Click Finish.

The Name page of the New Inbound Rule Wizard, Specify the name and description of this rule. The Name box has been filled in with Allow ICMP Requests and is circled. The Description (optional) box below it is empty. Name is circled in the Steps list on the left and the Finish button at the bottom is circled.

This new rule should allow your team members to receive ping replies from your PC.

Step 2: Disabling or deleting the new ICMP rule.

After the lab is complete, you may want to disable or even delete the new rule you created in

Step 1. Using the Disable Rule option allows you to enable the rule again at a later date. Deleting the rule permanently deletes it from the list of inbound rules.

a. On the Advanced Security window, click Inbound Rules in the left pane and then locate the rule you created in Step 1.

The Inbound Rules list in Windows Firewall with Advanced Security after the rule has been created. Allow ICMP Requests is at the top of the list, selected and circled, with no group, Profile All, Enabled Yes and Action Allow. Below it are two Java(TM) 2 Platform Standard Edition binary rules and two Java(TM) Platform SE binary rules, all Private, Yes, Allow; four winradius.exe rules, all Private, Yes, Allow; three BranchCache rules (Content Retrieval (HTTP-In), Hosted Cache Server, Peer Discovery (WSD-In)), all All, No, Allow; and several Connect to a Network Projector rules, Domain or Private, No, Allow. Inbound Rules is circled in the left pane.

b. To disable the rule, click the Disable Rule option. When you choose this option, you will see this option change to Enable Rule. You can toggle back and forth between Disable Rule and Enable Rule; the status of the rule also shows in the Enabled column of the Inbound Rules list.

c. To permanently delete the ICMP rule, click Delete. If you choose this option, you must re- create the rule again to allow ICMP replies.

Your answers

Nothing here is marked. Most of these answers are read off your own machine, so there is no right value to compare them against; they are kept so your work survives.

Check your answersEvery question in this lab, answered. Take your own capture first.→

Source: itexamanswers.net