User Tools

Site Tools


eg-253:networkq:foxtrot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eg-253:networkq:foxtrot [2009/01/29 11:34] marameg-253:networkq:foxtrot [2011/01/14 13:00] (current) – external edit 127.0.0.1
Line 4: Line 4:
  
 ^EG-253^Practical Internet Technology II ^ ^EG-253^Practical Internet Technology II ^
-|**Name** |Maram |+|**Name** |Maram and Stephen|
 |**Student Number** |387857 | |**Student Number** |387857 |
 |**Date of Submission** |14th Octember 3330 |    |**Date of Submission** |14th Octember 3330 |   
Line 157: Line 157:
  
 **Answer**:saturn **Answer**:saturn
- 
- 
 ==== Question 11 ==== ==== Question 11 ====
  
Line 174: Line 172:
 Please include a listing of the file chosen in answer to [[#question_11|Question 11]]: Please include a listing of the file chosen in answer to [[#question_11|Question 11]]:
  
- iface lo inet loopback +  iface lo inet loopback 
-auto lo+    auto lo
  
-auto eth0 +  auto eth0 
-iface eth0 inet static +  iface eth0 inet static 
-  address 192.168.3.3 +     address 192.168.3.3 
-  network 192.168.3.0 +     network 192.168.3.0 
-  netmask 255.255.255.0 +     netmask 255.255.255.0 
-  gateway 192.168.3.1+     gateway 192.168.3.1
  
  
-# /etc/hosts -- Hosts file for ICCT Private network +  # /etc/hosts -- Hosts file for ICCT Private network 
-+  
-# IP          FQDN                        aliases +  # IP          FQDN                        aliases 
-+  
-+  
-192.168.1.1 solaris.icct.com solaris inet-gateway +  192.168.1.1 solaris.icct.com solaris inet-gateway 
-192.168.1.2 venus.icct.com venus www +  192.168.1.2 venus.icct.com venus www 
-+  
-# Jupiter cluster +  # Jupiter cluster 
-+  
-192.168.1.3 gw-jupiter.icct.com gw-planets jupiter-if1 +  192.168.1.3 gw-jupiter.icct.com gw-planets jupiter-if1 
-192.168.2.1 jupiter.icct.com jupiter jupiter-if2 +  192.168.2.1 jupiter.icct.com jupiter jupiter-if2 
-192.168.2.2 callisto.jupiter.icct.com callisto +  192.168.2.2 callisto.jupiter.icct.com callisto 
-192.168.2.3 europa.jupiter.icct.com europa +  192.168.2.3 europa.jupiter.icct.com europa 
-192.168.2.4 ganymede.jupiter.icct.com ganumede +  192.168.2.4 ganymede.jupiter.icct.com ganumede 
-+  
-# Saturn cluster +  # Saturn cluster 
-+  
-192.168.1.4 gw-saturn.icct.com gw-saturn saturn-if1 +  192.168.1.4 gw-saturn.icct.com gw-saturn saturn-if1 
-192.168.3.1 saturn.icct.com saturn saturn-if2 +  192.168.3.1 saturn.icct.com saturn saturn-if2 
-192.168.3.2 dione.saturn.icct.com dione +  192.168.3.2 dione.saturn.icct.com dione 
-192.168.3.3 tethys.saturn.icct.com tethys +  192.168.3.3 tethys.saturn.icct.com tethys 
-192.168.3.4 titan.saturn.icct.com titan +  192.168.3.4 titan.saturn.icct.com titan 
-+  
-# Add other hosts/clusters below here +  # Add other hosts/clusters below here 
-# (we'll use this to add virtual hosts to the web-server in a later +  # (we'll use this to add virtual hosts to the web-server in a later 
-# lab exercise)+  # lab exercise)
  
  
  
  
-# The following lines are desirable for IPv6 capable hosts +  # The following lines are desirable for IPv6 capable hosts 
-::1 ip6-localhost ip6-loopback +  ::1 ip6-localhost ip6-loopback 
-fe00::0 ip6-localnet +  fe00::0 ip6-localnet 
-ff00::0 ip6-mcastprefix +  ff00::0 ip6-mcastprefix 
-ff02::1 ip6-allnodes +  ff02::1 ip6-allnodes 
-ff02::2 ip6-allrouters +  ff02::2 ip6-allrouters 
-ff0e2::3 ip6-allhosts+  ff0e2::3 ip6-allhosts
  
  
Line 256: Line 254:
 **Answer** **Answer**
  
-Destination     Gateway         Genmask         Flags Metric Ref    Use Iface +<cli prompt="$" comment="#"> 
-saturn-net      *               255.255.255.0            0        0 eth0 +user@host:~$ route
-link-local      *               255.255.0.0         1000          0 eth0 +
-default         saturn.icct.com 0.0.0.0         UG    100    0        0 eth0+
  
 +  Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 +  saturn-net      *               255.255.255.0            0        0 eth0
 +  link-local      *               255.255.0.0         1000          0 eth0
 +  default         saturn.icct.com 0.0.0.0         UG    100    0        0 eth0
  
-<cli prompt="$" comment="#"> 
-user@host:~$ command # Copy command and its output and paste it here. 
 </cli> </cli>
  
Line 282: Line 280:
  
 **Answer**:  **Answer**: 
-To turn IP forwarding on, you have to enable IP forwarding in the Linux kernel+ip forward 
  
 ==== Question 17 ==== ==== Question 17 ====
Line 289: Line 287:
  
 **Answer**:  **Answer**: 
-icct@tethys:~$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"+set ip_forward=yes 
  
 ==== Question 18 ==== ==== Question 18 ====
Line 302: Line 300:
  
 **Answer** **Answer**
-icct@saturn:/etc/network/if-up.d$ cat router +ip_forward=yes 
-#!/bin/sh +spoofprotect=yes 
- +syncookies=no
-#enable ip forwarding +
- +
-echo 1 > /proc/sys/net/ipv4/ip_forward+
  
 ==== Question 19 ==== ==== Question 19 ====
Line 315: Line 310:
 **Answer**:  **Answer**: 
  
-  Copy contents of file and paste it as a listing here.  + address 192.168.3.3 
-  Include a minumum indent of two spaces per line+ network 192.168.3.0 
-  Like this.  + netmask 255.255.255.0 
 + gateway 192.168.3.1 
 + # route to saturn-net 
 + up route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.3 
 + down route del -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.3
  
 ===== Checking Your Network ===== ===== Checking Your Network =====
Line 331: Line 329:
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
 user@host:~$ netstat -r user@host:~$ netstat -r
-# Paste result here.... +  user@host:~$ netstat -r 
-</cli>+  Kernel IP routing table 
 +  Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface 
 +  saturn-net                   255.255.255.0           0 0          0 eth0 
 +  link-local      *               255.255.0.0             0 0          0 eth0 
 +  default         saturn.icct.co 0.0.0.0         UG </cli>
  
 Add your explanation here. Add your explanation here.
Line 374: Line 376:
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
 user@host:~$ command user@host:~$ command
-# paste output here+user@host:~$  traceroute 192.168.3.2 
 +traceroute 192.168.3.2 
 +traceroute to 192.168.3.2 (192.168.3.2), 30 hops max, 40 byte packets 
 +  ganymede.jupiter.icct.com (192.168.3.2)   2.660 ms  2.566 ms  2.521 ms 
 </cli>   </cli>  
  
Line 387: Line 393:
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
 user@host:~$ command user@host:~$ command
-# paste output here+  traceroute to www.swan.ac.uk (137.44.1.7), 30 hops max, 40 byte packets 
 +  1  saturn.icct.com (192.168.3.1)  0.166 ms  0.167 ms  0.171 ms
 </cli>   </cli>  
  
eg-253/networkq/foxtrot.1233228841.txt.gz · Last modified: 2011/01/14 12:51 (external edit)