User Tools

Site Tools


eg-253:networkq:572278

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:572278 [2011/12/08 12:57] – [Question 26] abbaseg-253:networkq:572278 [2011/12/09 22:13] (current) – [Question 27] abbas
Line 67: Line 67:
 | The netmask of my host | 255.255.255.0 | | The netmask of my host | 255.255.255.0 |
 | The hardware address (MAC Address) of my LAN-facing network interface connection (NIC)((If your host has two or more network cards, the LAN-facing card will be the NIC assigned to your host's static IP address.)) | 00:19:d1:91:4f:c7 |  | The hardware address (MAC Address) of my LAN-facing network interface connection (NIC)((If your host has two or more network cards, the LAN-facing card will be the NIC assigned to your host's static IP address.)) | 00:19:d1:91:4f:c7 | 
-| The frame-level (layer 1) protocol is used to send network messages to the network from my host? | Answer |  +| The frame-level (layer 1) protocol is used to send network messages to the network from my host? | Ethernet  |  
  
  
Line 220: Line 220:
  
  
 +The purpose of the Gateway interface is to provide a communication bridge between the internet and the networks. Moreover, its used to route messages between them. 
  
  
Line 267: Line 267:
 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**: +/etc/network/options 
  
  
Line 274: Line 274:
 **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 285: Line 285:
 **Answer**:  **Answer**: 
  
-  Copy contents of file and paste it as a listing here +  up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3 
-  Include a minumum indent of two spaces per line+  down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3 
-  Like this+
  
  
Line 320: Line 320:
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
 user@host:~$ netstat -i user@host:~$ netstat -i
-Kernel Interface table+Kernel Interface table
 Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
-eth0       1500 0    121424           0 0         56519           0      0 BMRU +eth0       1500 0      7275           0 0          5798           0      0 
-lo        16436 0      1350           0 0          1350           0      0 LRU+MRU 
 +lo        16436 0        24           0 0            24           0      0 
 +RU
  
 </cli> </cli>
Line 407: Line 409:
  
 ===== Extension Questions ===== ===== Extension Questions =====
- 
  
 ==== Question 25 ==== ==== Question 25 ====
Line 414: Line 415:
  
 **Answer** **Answer**
- 
-==== Question 26 ==== 
- 
-Which other files would you need to modify to correctly set up this new router? 
- 
-**Answer**  
- 
   iface eth0 inet static   iface eth0 inet static
   address 192.168.10.1   address 192.168.10.1
Line 433: Line 427:
   up route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.10.3   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   down route del -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.10.3
 +==== Question 26 ====
 +
 +Which other files would you need to modify to correctly set up this new router?
 +
 +**Answer** 
 +
 +/etc/hostname 
 +
 +/etc/hosts 
 +
 +/etc/networks/interfaces
 +
 +/etc/resolv.conf
 ==== Question 27 ==== ==== Question 27 ====
  
Line 438: Line 445:
  
 **Answer**  **Answer** 
 +
 +iface eth0 inet static
 +  address 192.168.1.4
 +  network 192.168.1.0
 +  netmask 255.255.255.0
 +  gateway 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 ro/etc/network/interfacesute del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3
 +
 +
  
  
Line 446: Line 464:
 **Answer** **Answer**
  
 +/etc/resolve.conf
  
-===== Signature =====+/etc/hosts
  
 +/etc/nsswitch.conf
  
-I hereby submit this work for marking.+/etc/network/interfaces
  
-Your signature here: 
  
 +
 +I hereby submit this work for marking.
 +
 +Your signature here:  --- //[[572278@swansea.ac.uk|Abbas]] 2011/12/09 16:13//
eg-253/networkq/572278.1323349048.txt.gz · Last modified: 2011/12/08 12:57 by abbas