User Tools

Site Tools


eg-253:networkq:637234

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:637234 [2012/11/28 10:07] – [Question 20] 637234eg-253:networkq:637234 [2012/12/06 10:46] (current) – [Question 24] eechris
Line 40: Line 40:
  
  
-Mimas+  Mimas
  
 +
 +**small ''m''!**
 +
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:28//
 ==== Question 3 ==== ==== Question 3 ====
  
Line 78: Line 82:
  
  
 +**You have given the broadcast address for your host's network address and the IPv6 address for the IPv4 broadcast address!**
  
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:29//
 ==== Question 6 ==== ==== Question 6 ====
  
Line 89: Line 94:
  
  
 +**No! The netmask is 255.255.255.0 so 8 bits are available for hosts. 2^8 = 256 possible hosts but you can't use the //net address// (which would be 192.168.3.0) or the broadcast address (which is 192.168.3.255) so that leaves 254.**
  
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:31//
 ==== Question 7 ==== ==== Question 7 ====
  
Line 222: Line 228:
  
 **Answer**:Its is where we can configure how the system is connected to the netowrk **Answer**:Its is where we can configure how the system is connected to the netowrk
 +
 +**Not really. It defines where packets with IP addresses who's network address does not match the host's network address will be sent for forwarding to the destination network.**
 +
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:35//
  
  
Line 260: Line 270:
 **Answer**: ip_forwarding=yes **Answer**: ip_forwarding=yes
  
 +**Answer is //IP forwarding//. Your answer would be part of the later question.**
 +
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:36//
 ==== Question 17 ==== ==== Question 17 ====
  
Line 265: Line 278:
  
 **Answer**:  **Answer**: 
 +
 +sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
  
 ==== Question 18 ==== ==== Question 18 ====
Line 271: Line 286:
  
 **Answer**:  **Answer**: 
 +   nano /etc/network/options
 +   
 +**I expected you to be logged into the host so ''saturn:/etc/networking/options'' was the answer I was looking for. Ot at least some indication that you were logged into saturn**
  
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:39//
  
 Reproduce the contents of the file defined in [[#question_17|Question 17]] to make a Ubuntu host into a router? Reproduce the contents of the file defined in [[#question_17|Question 17]] to make a Ubuntu host into a router?
  
 **Answer** **Answer**
 +   ip_forward=yes
 +   spoofprotect=yes
 +   syncookies=no
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
-  Copy contents of file and paste it as a listing here.  
-  Include a minumum indent of two spaces per line. 
-  Like this.  
-   
  
 ==== Question 19 ==== ==== Question 19 ====
Line 288: Line 316:
 **Answer**:  **Answer**: 
  
-  Copy contents of file and paste it as a listing here +    up    route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4 
-  Include a minumum indent of two spaces per line. +     
-  Like this+** what about ''down route''?**
  
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:37//
 +
 +  cat /etc/network/interfaces
 +
 +   # This file describes the network interfaces available on your system
 +   # and how to activate them. For more information, see interfaces(5).
 +
 +   # This is Jupiter
 +
 +   # The loopback network interface
 +   auto lo
 +   iface lo inet loopback
 +
 +    # The primary network interface
 +    auto eth0
 +    iface eth0 inet static
 +    address 192.168.1.3
 +    network 192.168.1.0
 +    netmask 255.255.255.0
 +    gateway 192.168.1.1
 +    # 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
 +    
 + **Your gateway router is //saturn//!**
 +
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:37//
  
 ===== Checking Your Network ===== ===== Checking Your Network =====
Line 311: Line 366:
 saturn-net      *               255.255.255.0           0 0          0 eth0 saturn-net      *               255.255.255.0           0 0          0 eth0
  
-#same "route" command - gives you the kernel routing table information.+
 </cli> </cli>
 +
 +#same "route" command - gives you the kernel routing table information.
 ==== Question 21 ==== ==== Question 21 ====
  
Line 326: Line 383:
 lo        16436 0              0      0 0                  0      0      0 LRU lo        16436 0              0      0 0                  0      0      0 LRU
  
-#displays the statistics for network interfaces currently configured+
 </cli> </cli>
  
  
 +#displays the statistics for network interfaces currently configured
  
 +**which statistics specifically?**
 +
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:42//
  
 ==== Question 22 ==== ==== Question 22 ====
Line 338: Line 399:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ netstat -r +icct@mimas:~$ netstat -ta 
-Paste result here....+#Active Internet connections (servers and established) 
 +Proto Recv-Q Send-Q Local Address           Foreign Address         State       
 +tcp        0      0 *:http                  *:*                     LISTEN      
 +tcp        0      0 localhost:ipp           *:                    LISTEN      
 +tcp        0      0 localhost:mysql         *:                    LISTEN      
 +tcp        0      0 mimas.local:58965       50.97.210.35-stati:http TIME_WAIT   
 +tcp        1      0 mimas.local:54753       mulberry.canonical:http CLOSE_WAIT  
 +tcp        0      0 mimas.local:58966       50.97.210.35-stati:http TIME_WAIT   
 +tcp6            0 ip6-localhost:ipp       [::]:                 LISTEN   
 </cli> </cli>
  
-Add your explanation here.+the 't' in this command provides us with the active and passive TCP Unix socket connections, by adding an 'a' sockets that are waiting for a connection are displayed alsoThe display is of a list of all servers currently on the system.  
  
 ===== Testing the Connectivity of your network ===== ===== Testing the Connectivity of your network =====
Line 354: Line 423:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +icct@mimas:~$ traceroute tethys.saturn.icct.com 
-# paste output here+traceroute to tethys.saturn.icct.com (192.168.3.3), 30 hops max, 60 byte packets 
 +  tethys.saturn.icct.com (192.168.3.3)  0.837 ms  0.836 ms  0.830 ms 
 </cli>   </cli>  
  
  
 +**The question asks you to provide a route to another network. You should have used something on //jupiter.icct.com// or //icct.com//. There would then have been at least 2 hops.**
  
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:44//
 ==== Question 24 ==== ==== Question 24 ====
  
Line 367: Line 439:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +icct@mimas:~$ traceroute www.swan.ac.uk 
-# paste output here+traceroute to www.swan.ac.uk (137.44.1.7), 30 hops max, 60 byte packets 
 +  saturn.icct.com (192.168.3.1)  0.270 ms  0.488 ms  0.478 ms 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +10  * * * 
 +11  * * * 
 +12  * * * 
 +13  * * * 
 +14  * * * 
 +15  * * * 
 +16  * * * 
 +17  * * * 
 +18  * * * 
 +19  * * * 
 +20  * * * 
 +21  * * * 
 +22  * * * 
 +23  * * * 
 +24  * * * 
 +25  * * * 
 +26  * * * 
 +27  * * * 
 +28  * * * 
 +29  * * * 
 +30  * * * 
 </cli>   </cli>  
  
-Explain the result.+traceroute uses UDP datagrams to determin the path that packets take over a networkThere are 30 lines in a default traceroute response.  
 + 
 +**Yes, but why is there no response from networks 2-30?**
  
 + --- //[[chris@cpjobling.me|Chris Jobling]] 2012/12/06 04:45//
 ===== Extension Questions ===== ===== Extension Questions =====
  
eg-253/networkq/637234.1354097271.txt.gz · Last modified: 2012/11/28 10:07 by 637234