Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-27-2008, 08:29 AM   #1
LQ Newbie
Registered: Oct 2008
Location: London, UK
Distribution: SUSE
Posts: 19

Rep: Reputation: 0
Disabling failback on NIC Bonding

Hi All

I'm running SLES10.0 and have NIC bonding configured using eth0 and eth1 which is all working fine. However, my question relates to NIC failover and failback.

I have eth0 defined as the primary and when eth0 gets disconnected, the service fails over to eth1. When service is restored, it fails back to eth0.

What I'd like, is for the service to stay on eth1 (or whatever the slave is), until I decide to fail it back.

Is this possible? I've been thinking about options like creating a script to look out for a failover message and updating the /sys/class/net/bond0/bonding/primary file, but it'd be a lot nicer and simpler if there was some kind of variable I could set (or not set).


Old 12-04-2008, 12:22 PM   #2
LQ Newbie
Registered: Oct 2008
Location: London, UK
Distribution: SUSE
Posts: 19

Original Poster
Rep: Reputation: 0
To answer my own question, I got round this by adding the following line to the ifcfg-bond0 file

This script then issues the following command
ifenslave -c bond0 eth0

That way, I can be sure that when the interface comes up, I know where it's going to be. However, as there's no primary, it won't automatically failback from any failover situation



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Nic Bonding mstjohn1974 Slackware 9 06-15-2012 11:26 PM
NIC Bonding: Does not failover successfully. Only one NIC is active Akhran Debian 2 02-18-2011 08:26 PM
NIC Bonding on RHEL? carlosinfl Red Hat 1 09-17-2008 07:09 PM
NIC Bonding zimm247 Red Hat 1 06-28-2008 08:22 PM
NIC Bonding Problem jon3k Linux - Networking 4 08-31-2004 03:36 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:03 AM.

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