LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-05-2008, 06:19 PM   #1
richinsc
Member
 
Registered: Mar 2007
Location: Utah
Distribution: Ubuntu Linux (20.04)
Posts: 224

Rep: Reputation: 32
Question on Automatic Failover/Failback on Linux


I wanted to know if there is a way to have dual interfaces on a server do failover and failback for the interfaces. In the example below I am trying to make a network as redundant as possible. If I have a server that has two interfaces I want to make sure that it will still be accessible should one of the core switches die. The OS is Debian. Bridging, Teaming, and Multicast Routing won't work because the interfaces are connected to to completely different switches. I am also trying to figure out how to do this since I am trying to keep from installing a load balancing gateway but if possible, need both interfaces to have the same ip, but only one may be active at a time. I don't need the server itself to do load balancing, how ever it would be a nice add on.

Code:
*---------------*
*    Router	* ------------------------------------------------------
*---------------*		|					|
				|					|
				|					|
			    *-------*				    *------*
			    *	FW1 *------------Failover-----------*  FW2 *
			    *-------*				    *------*
				|					|
				|					|
				|					|
				|					|
			+---------------+			+---------------+
			+   Core SW1	+			+   Core SW2	+
			+---------------+			+---------------+
				\					/
				 \				       /
				  \				      /
				   \				     /
				    \				    /
				     \			 	   /
				      \				  /
				       \			 /
					\			/
					 \		       /
					  \		      /
					   \		     /
					    \		    /
					     \		   /
					      \		  /
					       \	 /
						\	/
					     	eth0  eth1
					   +----------------+
					   +	Server1     +
					   +----------------+
 
Old 12-05-2008, 08:03 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
It can be done with bonding. You want "High Availability" bonding with multiple switches.

http://www.linuxfoundation.org/en/Net:Bonding
 
Old 12-06-2008, 04:36 PM   #3
richinsc
Member
 
Registered: Mar 2007
Location: Utah
Distribution: Ubuntu Linux (20.04)
Posts: 224

Original Poster
Rep: Reputation: 32
Well after a day of trying and also realizing that my network won't allow for the setup above. I decided to setup boding to just one switch. But after configuring boding successfully I am unable in Debian Etch AMD64 able to get mode to change from balance-rr(0) to 802.3ad(4). I have tried setting to mode=4 and no success. I have also tired to put configuration in following paths and it still defaults back to balance-rr.

Configured in

/etc/modprobe.d/aliases
/etc/modprobe.d/bond0
/etc/modprobe.d/aliases-bond
/etc/modutils/aliases
/etc/modutils/arch/i386
/etc/modutils/arch/x86_64

in /etc/modules I added "bonding" to file

and then in each of the files above I tried putting following

Code:
alias bond0 bonding
options bonding mode=4 arp_interval=60 arp_ip_target=xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx
this is what shows up in /proc/net/bonding/bond0

Code:
Ethernet Channel Bonding Driver: v3.0.3 (March 23, 2006)

Bonding Mode: load balancing (round-robin)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling failback on NIC Bonding mapryan Linux - Networking 1 12-04-2008 11:22 AM
Linux servers to failover for redundancy mawk1000 Linux - Server 1 06-09-2008 10:13 AM
linux mail server failover dianarani Linux - Server 5 04-30-2008 12:37 PM
Linux Failover !!!!! Iptables_NEWBIE Linux - Security 8 08-16-2005 02:34 AM
How to set up DHCP failover on Linux 3.0 shahirsha Linux - Networking 2 01-31-2005 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration