eg-253:networkq:522991
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-253:networkq:522991 [2009/11/26 11:51] – bk09 | eg-253:networkq:522991 [2011/12/08 13:45] (current) – [Question 27] abbas | ||
---|---|---|---|
Line 268: | Line 268: | ||
**Answer**: | **Answer**: | ||
+ | |||
+ | The ip forwarding (ip_forward=yes) feature so it can send packets to another network | ||
==== Question 17 ==== | ==== Question 17 ==== | ||
Line 273: | 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**: |
==== Question 18 ==== | ==== Question 18 ==== | ||
Line 279: | Line 282: | ||
In which file is the setting defined in [[# | In which file is the setting defined in [[# | ||
- | **Answer**: | + | **Answer**: |
Line 286: | Line 289: | ||
**Answer** | **Answer** | ||
- | | + | |
- | | + | |
- | | + | # up a machine with two network interface cards |
- | | + | |
+ | | ||
+ | spoofprotect=yes | ||
+ | syncookies=no | ||
==== Question 19 ==== | ==== Question 19 ==== | ||
Line 297: | Line 304: | ||
**Answer**: | **Answer**: | ||
- | | + | |
- | | + | # so needs to know about the rest of the network. |
- | | + | |
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 192.168.1.3 | ||
+ | | ||
+ | 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 402: | Line 424: | ||
**Answer** | **Answer** | ||
+ | |||
+ | # / | ||
+ | # 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/ | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.10.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 | ||
+ | | ||
+ | # 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 409: | Line 465: | ||
**Answer** | **Answer** | ||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 192.168.10.0/ | ||
+ | network 192.168.10.0/ | ||
+ | netmask 255.255.255.0 | ||
+ | gateway | ||
+ | # 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 415: | Line 486: | ||
**Answer** | **Answer** | ||
- | |||
==== Question 27 ==== | ==== Question 27 ==== | ||
Line 431: | Line 501: | ||
Your signature here: | Your signature here: | ||
+ | --- // |
eg-253/networkq/522991.1259236292.txt.gz · Last modified: 2011/01/14 12:50 (external edit)