• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

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
0
PaGe
Asked:
PaGe
1 Solution
 
ripvannwinklerCommented:
http://www.troubleshooters.com/linux/ip_fwd.htm

The article above provides exactly the information you need.  Basically, you need to enable ip forwarding, or "routing" as its more commonly known.
0
 
tkalchevCommented:
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.
0
 
CleanupPingCommented:
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.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now