Lab Exercise – ARP
Objective
To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to
join Ethernet and IP. It is covered in §5.6.4 of your text. Review the text section before doing this lab.
Requirements
Wireshark: This lab uses the Wireshark software tool to capture and examine a packet trace. A packet
trace is a record of traffic at a location on the network, as if a snapshot was taken of all the bits that
passed across a particular wire. The packet trace records a timestamp for each packet, along with the
bits that make up the packet, from the lower–layer headers to the higher–layer contents. Wireshark runs
on most operating systems, including Windows, Mac and Linux. It provides a graphical UI that shows the
arp: This lab uses the “arp” command–line utility to inspect and clear the cache used by the ARP proto-
col on your computer. arp is installed as part of the operating system on Windows, Linux, and Mac
computers, but uses different arguments. It requires administrator privileges to clear the cache.
ifconfig / ipconfig: This lab uses the “ipconfig” (Windows) or “ifconfig” (Mac/Linux) command–
route / netstat: This lab uses the “route” or “netstat” command–line utility to inspect the routes
used by your computer. A key route is the default route (or route to prefix 0.0.0.0) that uses the default
Network Setup
We want to observe the ARP protocol in action. Recall that ARP is used to find the Ethernet address that
corresponds to a local IP address to which your computer wants to send a packet. A typical example of a
local IP address is that of the local router or default gateway that connects your computer to the rest of
the Internet. Your computer caches these translations in an ARP cache so that the ARP protocol need
only be used occasionally to do the translation. The setup from the viewpoint of your computer is as
shown in the example below.