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 [2010/02/03 11:28] kerryeg-253:networkq:483250 [2011/01/14 12:59] (current) – external edit 127.0.0.1
Line 265: Line 265:
 **Answer**:  **Answer**: 
  
-cct@myhost:~$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"+icct@myhost:~$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
  
  
Line 274: 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 290: 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 341: 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 357: 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 370: 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.1265196539.txt.gz · Last modified: 2011/01/14 12:49 (external edit)