IP Network Layer and Ethernet Encapsulation Lab exercises
IP addresses Host IP address Network address Netmask Broadcast address 130.65.241._____ Network address 130.65.241.0 Netmask 255.255.255.128 Broadcast address 130.65.241.127
Class diagram 130.65.241.0/25 .41 130.65.241.0/25 eth0 eth0 .42 eth0 .2 .1 eth0 130.65.241.56/25 130.65.241.48/25 130.65.241.0/25 130.65.241.8/29 eth0 .58 .57 eth0 eth0 .49 eth0 .50 eth0 .18 .17 eth0 eth0 .9 eth0 .10 .135 eth1 130.65.241.72/25 130.65.241.64/25 130.65.241.0/25 130.65.241.24/25 eth0 .74 .73 eth0 eth0 .65 eth0 .66 eth0 .34 .33 eth0 eth0 .25 eth0 .26 130.65.241.0/25
Ping - Exercise 1 Step 1 Load Ethernet Driver Check # modprobe eepro100 Check # lsmod see if module loaded
Ping - Exercise 1 (cont.) Step 2 Configure interface Check: # ifconfig eth0 <IP address> netmask <netmask> broadcast <broadcast> For Linux < 2.2 route add -net <network> netmask <netmask> Check: # ifconfig - check interface # netstat -nr - check route to network
Ping - Exercise 1 (cont.) Step 3 Step 4 Ping Try: Monitor traffic # ping <remote IP address> Try: other machines broadcast address Step 4 Monitor traffic # tcpdump -i eth0 -n
Ping - Exercise 2 Step 1 Step 2 Step 3 Find your own MAC address # ifconfig Step 2 Ping your neighbor # ping <IP address> Step 3 Show ARP cache & look for their MAC addresses # arp -n
Ping - Exercise 2 (cont.) Step 4 Step 5 Show traffic including Ethernet header # tcpdump -i eth0 -n -e Step 5 On other window (e.g. ALT+F2) Look for ARP frames # arp -d <IP address> - Flash ARP entry # ping <IP address> Go back to the first window to look for ARP frames