IP bridges made of linux machines

Posted on 2003-03-22
Medium Priority
Last Modified: 2010-03-18

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 for eth0 and for eth1 while
the other has for eth0 and 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 network to network and vice

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

Thanks in advance!
Question by:PaGe
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

ripvannwinkler earned 225 total points
ID: 8192666

The article above provides exactly the information you need.  Basically, you need to enable ip forwarding, or "routing" as its more commonly known.

Expert Comment

ID: 8195291
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.

Expert Comment

ID: 9077600
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 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question