eg-253:networkq:522760
Differences
This shows you the differences between two versions of the page.
eg-253:networkq:522760 [2011/11/17 12:46] – created 522760 | eg-253:networkq:522760 [2011/11/17 12:58] (current) – 522760 | ||
---|---|---|---|
Line 283: | Line 283: | ||
**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 | ||
+ | |||
| | ||
Line 292: | Line 300: | ||
**Answer**: | **Answer**: | ||
- | | + | |
- | | + | # and how to activate them. For more information, |
- | | + | |
+ | | ||
+ | |||
+ | # The loopback network interface | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | # The primary network interface | ||
+ | auto eth0 | ||
+ | #iface eth0 inet dhcp | ||
+ | iface eth0 inet static | ||
+ | address 192.168.1.4 | ||
+ | | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 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 del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.3 | ||
+ | |||
+ | |||
+ | # Interface in saturn.net is much simpler | ||
+ | auto eth1 | ||
+ | #iface eth1 inet dhcp | ||
+ | iface eth1 inet static | ||
+ | address 192.168.3.1 | ||
+ | netmask 255.255.255.0 | ||
+ | network 192.168.3.0 | ||
+ | gateway 192.168.1.4 | ||
+ | |||
+ | # Uncomment following to enable 3rd interface | ||
+ | #auto eth1 | ||
+ | #iface eth1 inet dhcp | ||
Line 412: | Line 452: | ||
</ | </ | ||
- | God knows. It clearly didn't work. | + | The box will not allow ping's to respond, there fore after the first hop there is no response and so no results. |
===== Extension Questions ===== | ===== Extension Questions ===== |
eg-253/networkq/522760.1321533980.txt.gz · Last modified: 2011/11/17 12:46 by 522760