On Fri, 05 Jan 2007 10:57:12 -0800, xix xeaon wrote:
> the linuxbox can ping the internet, 192.168.1.* and 192.168.2.* and all
> connected computers can ping all of the 3 linuxbox ip addresses and
> everybody in their network but no one in the other network and no one on
> the internet.
>
> so now I need some help on what to do so that both networks can
> communicate with each other and the internet.
Running the following commands should achieve what you need, namely
load the iptable_nat module, masquerade your eth2 interface via NAT, and
enable IP forwarding.
sudo modprobe iptable_nat
sudo iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward
More details at
https://help.ubuntu.com/community/In...nectionSharing
> everybody also gets the broadcast address 192.168.255.255
They shouldn't. There should be a broadcast address for each subnet:
192.168.1.0/24 broadcast address 192.168.1.255
192.168.2.0/24 broadcast address 192.168.2.255
--
--
Posted via a free Usenet account from
http://www.teranews.com