Bridge two subnets under Linux
Posted on 2001-06-19
Hey there, i would like to know how do i bridge two subnets under Linux. Here is what i want to do:
192.168.0.x <--machine with 2 NICs--> 192.168.1.x
I want that 192.168.1.23 can ping 192.168.0.5 and vice-versa. Right now, i'm doing NAT from 192.168.1.x ---> 192.168.0.x. But with this setup, the 192.168.0 subnets can't access 192.168.1..
I tried to do echo 1 > /proc/sys/ipv4/ip_forward, but it seem to do nothing :-)
Here is my actual setup:
firewall (Doing NAT with iptables)
| subnet 192.168.0.x
Internet Server (Doing NAT with ipchains)
| subnet 192.168.1.x
| subnet 192.168.2.x
Xterminals (about 40 machines)
Ok, ok, i know, it's lame, but i'm out of switch!
Thanks for you help