LinuxQuestions.org
Register a domain and help support LQ
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 07-15-2010, 08:33 AM   #1
jtollack
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
RHEL4 ES, Is there a way to Bond two NICs for Redundancy for upstream connectivity?


I have several servers that we have bonded some NICs for rundancy and they will of course switch from primary to secondary NIC if connection state is lost to the switches they are physically connected to, but is there any way to be able to sense upstream connectivity (off switch) for each NIC and failover even though the NIC itself has a connection state to the switch it is plugged into? We are using Dell managed switches on VLANs with trunking. Thanks for any input.
 
Old 07-16-2010, 01:06 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,509
Blog Entries: 35

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
1. Keep failsafe disabled.
2. Have a script pull data from an upstream server periodically.
3. If data is unavailable then connection must be severed so switch on the failsafe nic and disable the downed nic.
4. Detect when new nic has an IP (with a timeout for obtaining an IP). When it gets an IP then attempt to pull the upstream data.
5. Repeat the process if failed to pull upstream data or if obtaining IP timeout is reached until one of the nics have connectivity.

I don't have time right now but I'll attempt to hack a script together in XYZ language which would be capable of doing that. You can use a number of any languages such as perl, python, or even shell to accomplish that process though.
 
Old 07-18-2010, 12:20 PM   #3
jtollack
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Smile thanks

Thanks sag47,

I have some folks that could script this, I just thought there may be something within the driver module or possibly another package/protocol that was created for this very thing.

It seems this would not be an unusual requirement for redundancy.

JTollack
 
Old 07-18-2010, 01:20 PM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,509
Blog Entries: 35

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Well you may be right but I am not very familiar with the network stacks of Linux. I just attempted to give you a pseudo solution. If I can come up with, or find something better then I'll certainly post it here.
 
  


Reply

Tags
bonding


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
Outgoing Connectivity problems. Incoming connectivity fine Fionnbharr Linux - Newbie 1 10-02-2008 01:51 PM
bond 3 NICs into 1 produces a lot of tcpdump Winanjaya Linux - Networking 1 03-15-2007 10:59 AM
Linux setup as router / DHCP w/3+ NICs, separate but shared connectivity - question MetaTechi3 Linux - Networking 3 11-17-2006 12:41 PM
upstream problems nubela Linux - Networking 3 12-12-2004 09:38 PM
Upstream Shapping qtgeo *BSD 2 11-08-2004 02:53 PM


All times are GMT -5. The time now is 09:44 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration