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] – [Extension Questions] 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 408: Line 410:
 ===== Extension Questions ===== ===== Extension Questions =====
  
-iface eth0 inet static+==== Question 25 ==== 
 + 
 +A new sub-network engineering-net (''192.168.10.0/24'') is to be added to the ICCT network. Host engineering (''192.168.10.1/32'') is a cluster server for this new network. Give the settings needed to set up this host as a router to ''icct-net'', ''jupiter-net'', and ''saturn-net'' and a gateway for ''engineering-net''
 + 
 +**Answer** 
 +  iface eth0 inet static
   address 192.168.10.1   address 192.168.10.1
   network 192.168.10.0   network 192.168.10.0
Line 420: 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 ====
  
-==== Question 25 ====+Which other files would you need to modify to correctly set up this new router?
  
-A new sub-network engineering-net (''192.168.10.0/24'') is to be added to the ICCT network. Host engineering (''192.168.10.1/32'') is a cluster server for this new network. Give the settings needed to set up this host as a router to ''icct-net'', ''jupiter-net'', and ''saturn-net'' and a gateway for ''engineering-net''.+**Answer** 
  
-**Answer**+/etc/hostname 
  
-==== Question 26 ====+/etc/hosts 
  
-Which other files would you need to modify to correctly set up this new router?+/etc/networks/interfaces 
 + 
 +/etc/resolv.conf 
 +==== Question 27 ==== 
 + 
 +Summarize the changes that you would you need to make to your host's network configuration to have the new //engineering// sub-network recognized?
  
 **Answer**  **Answer** 
  
-  iface eth0 inet static +iface eth0 inet static 
-  address 192.168.10.1 +  address 192.168.1.4 
-  network 192.168.10.0+  network 192.168.1.0
   netmask 255.255.255.0   netmask 255.255.255.0
-  gateway 192.168.10.1+  gateway 192.168.1.1
   # route to jupiter-net   # route to jupiter-net
   up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3   up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3
-  down route del -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
  
-  # route to engineering 
-  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 27 ==== 
  
-Summarize the changes that you would you need to make to your host's network configuration to have the new //engineering// sub-network recognized? 
- 
-**Answer**  
  
  
Line 458: Line 464:
 **Answer** **Answer**
  
 +/etc/resolve.conf
  
-===== Signature =====+/etc/hosts 
 + 
 +/etc/nsswitch.conf 
 + 
 +/etc/network/interfaces
  
  
-I hereby submit this work for marking. 
  
-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.1323349066.txt.gz · Last modified: 2011/12/08 12:57 by abbas