User Tools

Site Tools


eg-253:networkq:571285

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:571285 [2011/12/09 15:53] – [Question 27] haneeneg-253:networkq:571285 [2011/12/09 22:18] (current) – [Signature] haneen
Line 210: Line 210:
 **Answer**: **Answer**:
  
- +The purpose of the Gateway interface is to provide a communication bridge between the internet and the networks and to route messages between them.
  
  
Line 264: Line 263:
  
  
-Reproduce the contents of the file defined in [[#question_17|Question 17]] to make a Ubuntu host into a router?+/etc/network/options 
  
 **Answer** **Answer**
  
-  Copy contents of file and paste it as a listing here.  +ip_forward=yes 
-  Include a minumum indent of two spaces per line. +
-  Like this. +
      
  
Line 279: Line 276:
 **Answer**:  **Answer**: 
  
-   up   route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 +  up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3 
-   down route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4+  down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.
 ===== Checking Your Network ===== ===== Checking Your Network =====
  
Line 408: Line 406:
  
 **Answer** **Answer**
 +  #iface eth0 inet dhcp
 +  iface eth0 inet static
 +  address 192.168.10.1
 +  network 192.168.10.0
 +  netmask 255.255.255.0
 +  gateway 192.168.10.1
 + 
 +  # route to jupiter-net
 +  up route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.10.3
 +  down route del -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.10.3
  
 ==== Question 26 ==== ==== Question 26 ====
Line 415: Line 423:
 **Answer**  **Answer** 
  
 +/etc/hostname
  
 +/etc/hosts
 +
 +/etc/networks/interfaces
 +
 +/etc/resolv.conf 
 ==== Question 27 ==== ==== Question 27 ====
  
Line 429: Line 443:
 **Answer** **Answer**
  
 +/etc/resolve.conf
  
 +/etc/hosts
 +
 +/etc/nsswitch.conf
 +
 +/etc/network/interfaces 
 ===== Signature ===== ===== Signature =====
  
Line 436: Line 456:
  
 Your signature here: Your signature here:
 + --- //[[571285@swansea.ac.uk|Haneen Al Lawati]] 2011/12/09 16:18//
eg-253/networkq/571285.1323445993.txt.gz · Last modified: 2011/12/09 15:53 by haneen