User Tools

Site Tools


eg-253:networkq:529673

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:529673 [2009/11/05 12:48] antoneg-253:networkq:529673 [2011/01/14 13:00] (current) – external edit 127.0.0.1
Line 6: Line 6:
 |**Name** |Anton Babentsov | |**Name** |Anton Babentsov |
 |**Student Number** |529673 | |**Student Number** |529673 |
-|**Date of Submission** |45th Octember 3330 |   +|**Date of Submission** |10th December 2009 |   
  
 ===== Instructions ===== ===== Instructions =====
Line 250: Line 250:
 Which system feature must be turned on if you want a Linux host to act as a router? Which system feature must be turned on if you want a Linux host to act as a router?
  
-**Answer**: + 
 +IP forwarding
  
 ==== Question 17 ==== ==== Question 17 ====
Line 256: Line 257:
 Which run-time command can be used to make a Ubuntu Linux host act as a router? Which run-time command can be used to make a Ubuntu Linux host act as a router?
  
-**Answer**+icct@myhost:~$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" 
  
 ==== Question 18 ==== ==== Question 18 ====
Line 265: Line 267:
  
  
-Reproduce the contents of the file defined in [[#question_17|Question 17]] to make a Ubuntu host into a router?+/etc/network/options 
  
-**Answer** 
  
-  Copy contents of file and paste it as a listing here.  +**Answer** 
-  Include minumum indent of two spaces per line. +# /etc/network/options - for ICCT network 
-  Like this. +# set ip_forward=yes if you need to set 
 +# up machine with two network interface cards 
 +# as a router 
 +ip_forward=yes 
 +spoofprotect=yes 
 +syncookies=no
      
  
Line 279: Line 285:
  
 **Answer**:  **Answer**: 
 +# Interface in icct-net does the routing,
 +# so needs to know about the rest of the network.
  
-  Copy contents of file and paste it as a listing here.  +  auto eth0 
-  Include a minumum indent of two spaces per line+  iface eth0 inet static 
-  Like this+  address 192.168.1.3 
 +  netmask 255.255.255.0 
 +  gateway 192.168.1.1 # default for jupiter is solaris 
 +  # route to saturn-net 
 +  up   route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 
 +  down route del -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 
 + 
 + # Interface in jupiter-net is much simpler 
 +  auto eth0 
 +  iface eth1 inet static 
 +  address 192.168.2.1 
 +  netmask 255.255.255.0
  
  
Line 305: Line 324:
 </cli> </cli>
  
-Add your explanation here.+The command "netstat -r" displays  kernal routing table.
  
  
Line 317: Line 336:
  
 # Paste result here.... # Paste result here....
 +Kernel Interface table
 +Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
 +eth0       1500 0      3615      0      0 2          3024      0      0      0 BMRU
 +lo        16436 0              0      0 0                  0      0      0 LRU
 +
 </cli> </cli>
  
-Add your explanation here.+The command "netstat -i" displays statistic for the network interface,
  
  
Line 329: Line 353:
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
 user@host:~$ netstat -ta user@host:~$ netstat -ta
 +
 Active Internet connections (servers and established) Active Internet connections (servers and established)
 Proto Recv-Q Send-Q Local Address           Foreign Address         State       Proto Recv-Q Send-Q Local Address           Foreign Address         State      
Line 344: Line 369:
 </cli> </cli>
  
-Add your explanation here.+  Command netstat -ta displays active and passive sockets.
  
 ===== Testing the Connectivity of your network ===== ===== Testing the Connectivity of your network =====
Line 356: Line 381:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +icct@callisto:~$ traceroute -n 192.168.2.2 
-# paste output here+traceroute to 192.168.2.2 (192.168.2.2), 30 hops max, 60 byte packets 
 +  192.168.2.2  0.082 ms  0.013 ms  0.012 ms 
 </cli>   </cli>  
  
Line 369: Line 396:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +icct@callisto:~$ traceroute -n www.swan.ac.uk 
-# paste output here+traceroute to www.swan.ac.uk (137.44.1.7), 30 hops max, 60 byte packets 
 +  192.168.2.1  0.206 ms  0.194 ms  0.151
 </cli>   </cli>  
  
eg-253/networkq/529673.1257425339.txt.gz · Last modified: 2011/01/14 12:50 (external edit)