User Tools

Site Tools


eg-253:networkq:522991

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:522991 [2009/11/26 12:02] bk09eg-253:networkq:522991 [2011/12/08 13:45] (current) – [Question 27] abbas
Line 275: Line 275:
 Which run-time command can be used to make a Ubuntu Linux host act as a router? Which run-time command can be used to make a Ubuntu Linux host act as a router?
  
-**Answer**: +**Answer**: sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" 
  
 ==== Question 18 ==== ==== Question 18 ====
Line 303: Line 304:
 **Answer**:  **Answer**: 
  
-  Copy contents of file and paste it as a listing here.  +  # Interface in icct-net does the routing, 
-  Include a minumum indent of two spaces per line+  # so needs to know about the rest of the network
-  Like this+   
 +  auto eth0 
 +  iface eth0 inet static 
 +  address 192.168.1.3 
 +  netmask 255.255.255.0 
 +  gateway 192.168.1.1 # default for jupiter is solaris 
 +  # 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 
 +   
 +  # Interface in jupiter-net is much simpler 
 +  auto eth0 
 +  iface eth1 inet static 
 +  address 192.168.2.1 
 +  netmask 255.255.255.0 
 + 
  
  
Line 408: Line 424:
  
 **Answer** **Answer**
 +
 +  # /etc/network/options - for engineering-net network
 +  # set ip_forward=yes if you need to set
 +  # up a machine with two network interface cards
 +  # as a router
 +  ip_forward=yes
 +  spoofprotect=yes
 +  syncookies=no
 +
 +
 +  # Interface in engineering-net does the routing,
 +  # so needs to know about the rest of the network.
 +  
 +  auto eth0
 +  iface eth0 inet static
 +  address 192.168.10.0/24
 +  netmask 255.255.255.0
 +  gateway 192.168.10.1/32 # Engineering server for the new network
 +  # 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
 +  
 +  # Interface in jupiter-net is much simpler
 +  auto eth0
 +  iface eth1 inet static
 +  address 192.168.2.1
 +  netmask 255.255.255.0
 +  
 +  # route to icct-net
 +  auto eth0
 +  iface eth0 inet static
 +  address 192.168.1.3
 +  netmask 255.255.255.0
 +  gateway 192.168.1.1
  
 ==== Question 26 ==== ==== Question 26 ====
Line 415: Line 465:
 **Answer**  **Answer** 
  
 +  auto eth0
 +  iface eth0 inet static
 +  address 192.168.10.0/24
 +  network 192.168.10.0/24       # member of icct-net
 +  netmask 255.255.255.0
 +  gateway  192.168.10.1/32       # default gateway is solaris
 +  # Route to solaris
 +  up   route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
 +  down route add -net 192.168.1.0 netmask 255.255.255.0 gw 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 route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3
 +  # Route to saturn-net
 +  up   route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4
 +  down route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.1.4
  
 ==== Question 27 ==== ==== Question 27 ====
Line 421: Line 486:
  
 **Answer**  **Answer** 
- 
  
 ==== Question 27 ==== ==== Question 27 ====
Line 437: Line 501:
 Your signature here: Your signature here:
  
 + --- //[[mystikspiral04@hotmail.com|Big Kwan Sung]] 2009/11/26 12:35//
eg-253/networkq/522991.1259236921.txt.gz · Last modified: 2011/01/14 12:50 (external edit)