Assignment
Date: 9/11/2006
Due Day:
9/18/2006
Related Material: http://cs.uccs.edu/~cs522/intro/pcnetsetup/pcnetsetup.htm;
Chapter 5.6.
Description:
Address/mask | Next hop |
135.46.56.0/22 |
Interface 0 |
135.46.60.0/22 |
Interface 1 |
192.53.40.0/23 |
Router 1 |
default |
Router 2 |
For each of the following IP addresses, what does the router do if a packet with that address arrives?
From the first entry of the routing table, it indicates arbor located in a wired Ethernet subnet with IP address 128.198.160.0 and genmask (or called netmask) 255.255.224.0. The second entry indicates arbor also has wireless LAN card on a subnet identified with 128.198.80.0 and genmask 255.255.255.0.
sanluis.uccs.edu> netstat -rnIt does not see to be there in the arp cache table. No packet was sent the gateway recently. Therefore I created some traffic that goes through gateway 128.198.160.1
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
128.198.160.0 0.0.0.0 255.255.224.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 128.198.160.1 0.0.0.0 UG 0 0 0 eth0
sanluis.uccs.edu> /sbin/arp -a
sunshine.uccs.edu (128.198.162.68) at 00:06:5B:F6:E4:CC [ether] on eth0
chow.uccs.edu (128.198.161.110) at 00:00:39:B4:86:E0 [ether] on eth0
sunshine.uccs.edu (128.198.162.68) at 00:06:5B:F6:E4:CC [ether] on eth0
chow.uccs.edu (128.198.161.110) at 00:00:39:B4:86:E0 [ether] on eth0
---
128.198.1.250 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.144/0.300/0.764/0.268 ms
sanluis.uccs.edu>
/sbin/arp -a
math.uccs.edu (128.198.168.202) at 00:06:5B:F6:E4:CC [ether] on eth0
lincoln.eas.uccs.edu (128.198.160.64) at 00:06:5B:0F:1A:19 [ether] on
eth0
evans.eas.uccs.edu (128.198.160.66) at 00:06:5B:0F:17:10 [ether] on eth0
sunshine.uccs.edu (128.198.162.68) at 00:06:5B:F6:E4:CC [ether] on eth0
? (128.198.160.1) at 00:00:0C:07:AC:01 [ether] on
eth0
chow.uccs.edu (128.198.161.110) at 00:00:39:B4:86:E0 [ether] on eth0
Non-authoritative
answer:
Name: blanca.uccs.edu
Address: 128.198.162.60
Therefore the source IP address is 128.198.162.60.
The destination IP address is 128.198.160.64.
The source mac address can be found using /sbin/ifconfig
blanca.uccs.edu> /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:B0:D0:D1:13:5C
inet addr:128.198.162.60 Bcast:128.198.191.255 Mask:255.255.224.0
Therefore the source MAC address is 00:B0:D0:D1:13:5C
The destination MAC address can be found with /sbin/arp -a command:
blanca.uccs.edu> /sbin/arp -a 128.198.160.64
lincoln.eas.uccs.edu (128.198.160.64) at 00:06:5B:0F:1A:18 [ether] on
eth0
Therefore the destination MAC address is 00:06:5B:0F:1A:18.
Since the range of IP addresses used by the first subnet is 128.198.63.0-128.198.63.63.
(The first IP address is the part of subnet address.) The range of IP
addresses used by the 2nd subnet is 128.198.63.64-128.198.63.127. The
network address of the 2nd subnet is 128.198.63.64/26. The broadcast address
is the last in the IP address range, therefore it is 128.198.63.127. The
gateway address for the 2nd subnet is 128.198.63.65, one after the network
address.
The 3rd subnet needs to accomodate 62 machines, here we use a subnet with
the size of 128 (7 bits for its host field).
The range of IP addresses used by the 3rd subnet is 128.198.63.128-128.198.63.255.
The network address of the 3rd subnet is 128.198.63.128/25. The broadcast
address is 128.198.63.255. The gatewy address for the 3rd subnet is 128.198.63.129.