Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
if i have 2 nic cards configured on a linux box,will all the default traffic go thru eth0 until unless it fails? then if it does will it go through eth1?
no
such behavior is a bit hard to configurate...
actually, trafic look at "route" to know where it should go (type : route -n).
If your network card fail the trafic will fail, unless you set up a bridge, you are using a routing daemon or you have some fall-over (round and robin) firewall rules.
depend of what you are trying to do exactly... some basic easy failover would be to add an iptables rules to do round and robin. I think it could be reliable, even if half of the packet will be dropped is case of failure.
A rules like "iptables -A OUTPUT -s 0/0 -j DNAT --to-destination 192.168.0.2 --to-destination 192.168.0.3" could work I *think*.
And wza, I'm not an expert 'bout bridge and such thing but I think you can use some apps to make 2 machine to have the same IP and then to communicate only with mac adress, or something like that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.