Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I found that in the same network, Linux only use one interface ( most likely the last one ) eth1 for outbound/inbound traffics no matter what. if I unplug eth1's wire, eth0 won't work too. If eth1 is connected and eth0 is not then both reply. ( strange but that is how my linux box is working )
Does anyone have the same issue on how to make two interfaces
work in the same network?
Searching for an answer, i found many people wondering if this can be done and none of them find a solution. I want only to manage my interfaces acting independently.
In windows (and a lot of other OSs) you can bridge network connections.
So if I had a cable connection and a dsl connection I could bridge them to act as
one connection.
I just used cable and DSL for this example but it could be anything. I remember the old
days of bridging multiple modems to get the highest speed possible. Man was it slow.
I have tried bonding feature before i post my message but it behaves the same.
I also play around with the routing table and when i managed to add the eth0 to the routing table, then still acting the same but eth0 was my default ethernet.
Note that i want to connect the eth0 to a switch ( local PCs ) and the eth1 to another switch ( Server's and Routers ). I want to make my Linux box as a gateway between the two (same) networks ( Control the traffic.. etc )
Note that i can not change any of the existing network structure and i know that if i could manage to make the ethernets acting independent i could implement it.
I am working on linux server's more than 5 years now and i did not come accross to such a situation and i am wondering why linux by default have this option.
What do you mean by "( Control the traffic.. etc )"?
If I understand what you are looking for you should just need to set up forwarding between the networks with iptables and allow the box to work as an arp proxy (there are some control files in /proc to enable that).
Control the traffic between PCs and Server/Routers. Anyway, I just want to know if i can make the two interfaces act independently. I have this issue for more than two weeks and i could not find any answer using the internet.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.