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:05] bk09eg-253:networkq:522991 [2011/12/08 13:45] (current) – [Question 27] abbas
Line 424: 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 431: 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 437: Line 486:
  
 **Answer**  **Answer** 
- 
  
 ==== Question 27 ==== ==== Question 27 ====
Line 453: Line 501:
 Your signature here: Your signature here:
  
 + --- //[[mystikspiral04@hotmail.com|Big Kwan Sung]] 2009/11/26 12:35//
eg-253/networkq/522991.1259237124.txt.gz · Last modified: 2011/01/14 12:50 (external edit)