Redundant network handling in linux box

linux-networkingredundancy

I need your help very badly. I have give a solution for the requirement. I'm struggling for 5 days to get one. Requirement is to get a solution for redundant network in Linux systems.

We have different devices, clients and servers in the network. Each one can has two ethernet cards connected in them. I have to find a solution that in the linux system if one ethernet connection fails other should be used, like a ethernet redundant system.

For testing this one, we have made small lab setup.
We have 4systems in the lab, where eth0 of every system is connected to Switch-1 and eht1 of every system is connected to switch-2.
4Systems means two servers and two clients.

Think that I started communicating with client1 to server1(I really dont know which interface it is either eth0 and eth1), while communicating if I remove one ethernet cable from the client1 the communication should not fail and it should proceed from eth1 of client to any interface of eth0.

For this stuff I have used bonding, but it can be used only when all the devices are in the same network. Also in bonding both the interfaces will have same ip address, netmask and gateway but in my case each cable can be connected to different networks.

Please help me in getting a solution other than Bonding. I will provide the details if you dont understand. I need this very badly I don't have enough time also.
Also Please note that there is no physical or virtual connection between switches. So I couldn't do any routing between them.

Best Answer

read up on bonding. for simple failover, mode1 (active-backup) is good enough

EDIT: for multiple network access, you can either simply use multihoming (basically in linux that means giving two NICs two IP/Subnet configs) or go for "multi-ISP" solution: http://lartc.org/howto/lartc.rpdb.multiple-links.html
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.simple.html
http://linux-ip.net/html/adv-multi-internet.html

I am aware this is not a connection ot the internet, but there really is no difference.

Related Topic