User Tools

Site Tools


eg-253:networkq:483250

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:483250 [2009/11/05 12:39] kerryeg-253:networkq:483250 [2011/01/14 12:59] (current) – external edit 127.0.0.1
Line 256: Line 256:
  
 **Answer**:  **Answer**: 
 +
 +IP forwarding
  
 ==== Question 17 ==== ==== Question 17 ====
Line 262: Line 264:
  
 **Answer**:  **Answer**: 
 +
 +icct@myhost:~$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
 +
  
 ==== Question 18 ==== ==== Question 18 ====
Line 269: Line 274:
 **Answer**:  **Answer**: 
  
 +/etc/network/options
  
 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**
 + 
 +  # /etc/network/options - for ICCT network 
 +  # set ip_forward=yes if you need to set 
 +  # up a machine with two network interface cards 
 +  # as a router 
 +  ip_forward=no 
 +  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.  
      
  
Line 285: Line 298:
 **Answer**:  **Answer**: 
  
-  Copy contents of file and paste it as a listing here.  +  auto lo 
-  Include a minumum indent of two spaces per line+  iface lo inet loopback 
-  Like this+  auto eth0 
 +  iface eth0 inet static 
 +  address 192.168.3.3 
 +  network 192.168.3.0 
 +  netmask 255.255.255.0 
 +  gateway 192.168.3.1 
  
  
Line 301: Line 320:
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
 user@host:~$ netstat -r user@host:~$ netstat -r
-# Paste result here....+Kernel IP routing table 
 +Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface 
 +192.168.3.0                   255.255.255.0           0 0          0 eth0 
 +link-local      *               255.255.0.0             0 0          0 eth0 
 +default         saturn.icct.com 0.0.0.0         UG        0 0          0 eth0 
 </cli> </cli>
  
Line 314: Line 338:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ netstat -r +user@host:~$ netstat -
-# Paste result here....+Kernel Interface table 
 +Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg 
 +eth0       1500 0      2086      0      0 1          1827      0      0      0 BMRU 
 +lo        16436 0        19      0      0 0            19      0      0      0 LRU 
 </cli> </cli>
  
Line 327: Line 355:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ netstat -r +user@host:~$ netstat -ta 
-# Paste result here....+Active Internet connections (servers and established) 
 +Proto Recv-Q Send-Q Local Address           Foreign Address         State       
 +tcp        0      0 titan:mysql             *:                    LISTEN      
 +tcp        0      0 *:ssh                   *:                    LISTEN      
 +tcp        0      0 titan:ipp               *:                    LISTEN      
 +tcp        0      0 titan.saturn.icct:53856 wy-in-f100.1e100.ne:www ESTABLISHED 
 +tcp        0      0 titan.saturn.icct:48505 74.125.104.89:www       ESTABLISHED 
 +tcp        0      0 titan.saturn.icct:36911 server77-68-39-12.l:www TIME_WAIT   
 +tcp        0      0 titan.saturn.icct:36913 server77-68-39-12.l:www TIME_WAIT   
 +tcp        0      0 titan.saturn.icct:36910 server77-68-39-12.l:www TIME_WAIT   
 +tcp        0      0 titan.saturn.icct:36914 server77-68-39-12.l:www ESTABLISHED 
 +tcp        0      0 titan.saturn.icct:37516 blackboard.swan.ac.:www TIME_WAIT   
 +tcp6            0 [::]:www                [::]:                 LISTEN      
 +tcp6            0 [::]:ssh                [::]:                 LISTEN      
 +tcp6            0 localhost:ipp           [::]:                 LISTEN 
 </cli> </cli>
  
Line 343: Line 385:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +icct@titan:~$ traceroute jupiter 
-# paste output here+traceroute to jupiter (192.168.2.1), 30 hops max, 60 byte packets 
 +  saturn.icct.com (192.168.3.1)  0.230 ms  0.171 ms  0.161 ms 
 +  jupiter.icct.com (192.168.2.1)  10.446 ms  10.417 ms  10.398 ms 
 </cli>   </cli>  
  
Line 356: Line 401:
 **Answer** **Answer**
 <cli prompt="$" comment="#"> <cli prompt="$" comment="#">
-user@host:~$ command +icct@titan:~$ traceroute  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.3.1  0.155 ms  0.153 ms  0.131 ms 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +  * * * 
 +10  * * * 
 +11  * * * 
 +12  * * * 
 +13  * * * 
 +14  * * * 
 +15  * * * 
 +16  * * * 
 +17  * * * 
 +18  * * * 
 +19  * * * 
 +20  * * * 
 +21  * * * 
 +22  * * * 
 +23  * * * 
 +24  * * * 
 +25  * * * 
 +26  * * * 
 +27  * * * 
 +28  * * * 
 +29  * * * 
 +30  * * * 
 </cli>   </cli>  
  
eg-253/networkq/483250.1257424760.txt.gz · Last modified: 2011/01/14 12:49 (external edit)