LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-27-2008, 07:29 AM   #1
mapryan
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).

Cheers

Mike
 
Old 12-04-2008, 11:22 AM   #2
mapryan
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
POST_UP_SCRIPT="enable-primary"

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

Mike
 
  


Reply


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

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

All times are GMT -5. The time now is 02:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration