User Tools

Site Tools


eg-253:networkq:522991

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:522991 [2009/11/05 12:53] bk09eg-253:networkq:522991 [2011/12/08 13:45] (current) – [Question 27] abbas
Line 268: Line 268:
  
 **Answer**:  **Answer**: 
 +
 +  The ip forwarding (ip_forward=yes) feature so it can send packets to another network
  
 ==== Question 17 ==== ==== Question 17 ====
Line 273: Line 275:
 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**: +**Answer**: sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" 
  
 ==== Question 18 ==== ==== Question 18 ====
Line 279: Line 282:
 In which file is the setting defined in [[#question17|Question 17]] set if you want a Ubuntu host to be configured as a router at boot-time? In which file is the setting defined in [[#question17|Question 17]] set if you want a Ubuntu host to be configured as a router at boot-time?
  
-**Answer**: +**Answer**: /etc/network/options
  
  
Line 286: Line 289:
 **Answer** **Answer**
  
-  Copy contents of file and paste it as a listing here.  +  # /etc/network/options - for ICCT network 
-  Include minumum indent of two spaces per line. +  # set ip_forward=yes if you need to set 
-  Like this.  +  # up machine with two network interface cards 
-  +  # as a router 
 +  ip_forward=yes 
 +  spoofprotect=yes 
 +  syncookies=no 
  
 ==== Question 19 ==== ==== Question 19 ====
Line 297: Line 304:
 **Answer**:  **Answer**: 
  
-  Copy contents of file and paste it as a listing here.  +  # Interface in icct-net does the routing, 
-  Include a minumum indent of two spaces per line+  # so needs to know about the rest of the network
-  Like this+   
 +  auto eth0 
 +  iface eth0 inet static 
 +  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 367: Line 389:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +user@host:~$ traceroute -n 192.168.3.2 
-paste output here+traceroute to 192.168.3.2 (192.168.3.2), 30 hops max, 60 byte packets 
 +  192.168.2.1  0.295 ms  0.195 ms  0.188 ms 
 +  * * * 
 +  192.168.3.2  15.285 ms  15.228 ms  15.189 ms
 </cli>   </cli>  
  
Line 380: Line 405:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +user@host:~$ 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.245 ms  0.186 ms  0.165 ms 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * *
 </cli>   </cli>  
  
-Explain the result.+The result shows, that a ping has been sent through Jupiter (result 1: 192.168.2.1), but the rest of the results show that the pings are not echoed as packets cannot be sent beyond Jupiter.
  
 ===== Extension Questions ===== ===== Extension Questions =====
Line 394: Line 424:
  
 **Answer** **Answer**
 +
 +  # /etc/network/options - for engineering-net network
 +  # set ip_forward=yes if you need to set
 +  # up a machine with two network interface cards
 +  # as a router
 +  ip_forward=yes
 +  spoofprotect=yes
 +  syncookies=no
 +
 +
 +  # Interface in engineering-net does the routing,
 +  # so needs to know about the rest of the network.
 +  
 +  auto eth0
 +  iface eth0 inet static
 +  address 192.168.10.0/24
 +  netmask 255.255.255.0
 +  gateway 192.168.10.1/32 # Engineering server for the new network
 +  # 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
 +  
 +  # route to icct-net
 +  auto eth0
 +  iface eth0 inet static
 +  address 192.168.1.3
 +  netmask 255.255.255.0
 +  gateway 192.168.1.1
  
 ==== Question 26 ==== ==== Question 26 ====
Line 401: Line 465:
 **Answer**  **Answer** 
  
 +  auto eth0
 +  iface eth0 inet static
 +  address 192.168.10.0/24
 +  network 192.168.10.0/24       # member of icct-net
 +  netmask 255.255.255.0
 +  gateway  192.168.10.1/32       # default gateway is solaris
 +  # Route to solaris
 +  up   route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
 +  down route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
 +  # Route to jupiter-net
 +  up   route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3
 +  down route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3
 +  # Route to saturn-net
 +  up   route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4
 +  down route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4
  
 ==== Question 27 ==== ==== Question 27 ====
Line 407: Line 486:
  
 **Answer**  **Answer** 
- 
  
 ==== Question 27 ==== ==== Question 27 ====
Line 423: Line 501:
 Your signature here: Your signature here:
  
 + --- //[[mystikspiral04@hotmail.com|Big Kwan Sung]] 2009/11/26 12:35//
eg-253/networkq/522991.1257425620.txt.gz · Last modified: 2011/01/14 12:50 (external edit)