The following exercises are to familiarize you with the ARP protocol and its functionality as discussed in class. The following commands will be necessary in completing the following steps: arp, hostname, ifconfig, ping, ethereal (and perhaps tcpdump). Should any of these commands be unfamiliar, refer to the man page for that command.
Note: the ethereal sniffer sits on top of tcpdump and provides a nice window based UI for you to examine network packets. Since it sits on top of tcpdump, several of the command inputs are the same, such as the packet filters. This will require you to be familiar with tcpdump (or at least have access to the tcpdump man pages. You have been warned!)
arp host your_network_addressbut don't click Start yet. Next, in an active termimal window, use the ping command to ping your neighbors machine, as follows:
sleep 6 ; ping -c1 your_neighbors_network_addressThis will give you 6 seconds to maximize the sniffer and click Start. You should now capture only ARP packets (to/from your machine) once the ping command executes. How many packets should you see? Carefully view the results, making sure you understand ALL of the relevant parts. Make sure the promiscuous mode of the network interface card is set.