Link to home
Start Free TrialLog in
Avatar of PaGe
PaGe

asked on

IP bridges made of linux machines

Hi,

I've just bumped into a problem, which is that I have two PCs of linux
installed on them and both have 2 ethernet cards.
They are meant to work as physical bridges between two local nets.
One is set up as 10.120.0.9 for eth0 and 10.200.22.9 for eth1 while
the other has 10.200.20.9. for eth0 and 10.200.21.9 for eth1.

They are connected on their eth1 interfaces with a cross-link cable.

I would like make a double gateway of them so that all traffic could
pass on from the 10.200.0.0/16 network to 10.120.0.0/16 network and vice
versa.

Could anyone help me in the question how to configure these two machines
as gateways and IP forwarders?

Thanks in advance!
PaGe
ASKER CERTIFIED SOLUTION
Avatar of ripvannwinkler
ripvannwinkler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
On both machines ensure, that IP_Forwarding is enabled. If not type :

echo 1 > /proc/sys/net/ipv4/ip_forward

To make it started on boot-time, add the above line to /etc/rc.d/rc.local file.

Check that the routing is correct.
Avatar of CleanupPing
CleanupPing

PaGe:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.