LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-26-2008, 09:02 AM   #1
bllewellyn
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Bonding only works when ethernet cards are in promisc


Hi. I've been having trouble getting two gigabit NICs (r8169) bonded in "active-backup" mode.

After many hours of trial and error, I've noticed that everything works perfectly provided that I put the individual NICs into promisc mode. I discovered this because every time I did a tcpdump on the backup NIC, my pings would start to work.

In a nutshell:

Linux 2.6 kernel (OpenSuSE 10.3)
Both eth0 and eth1 are realtek 8169S
bond0 is setup with "mode=active-backup miimon=100 updelay=500 primary=eth0"

So basically I boot up the machine, bond0 comes up fine and gets an IP from my DD-WRT router. I ping the router, and it works fine. I pull the cable on eth0, and it stops responding. I background the ping, run "ifconfig eth1 promisc" and the pings resume.

Has anyone else ever experienced this, or have any idea what's going on? I can't find anything online that says you need to place the cards into promisc mode to make bonding happen. I did find many references online to people having problems using 8169S cards for bonding.

Thanks!

--Brad

Last edited by bllewellyn; 03-26-2008 at 09:03 AM.
 
Old 03-27-2008, 06:33 PM   #2
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
Taken from kernel-src/Documentation/networking/bonding.txt
Quote:
For the active-backup, balance-tlb and balance-alb modes, the
promiscuous mode setting is propagated only to the active slave.
Are you sure the bond is recognizing that the connection had been lost from the active device?

 
Old 03-29-2008, 01:34 PM   #3
bllewellyn
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Got it working...

Looks like the problem was with the r8169 driver, and had nothing to do with my bonding configuration. I detached eth1 from bond0, assigned a new MAC to the card and tried to ping my router. 100% loss. As soon as I put it into promiscuous mode, it started working.

So I guess the old driver didn't set the card up properly with the new MAC. I downloaded and compiled kernel 2.6.24 (was using 2.6.22), rebooted, and it worked perfectly.

I know there's at least one guy out there on the net who scrapped his cards and bought new ones...hopefully someone will come across this post and it will save them time.

--Brad
 
Old 03-30-2008, 04:07 PM   #4
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
Good to hear you got it working

 
  


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
Infiniband Bonding and Ethernet Bonding edcrozer Linux - Networking 0 11-07-2007 03:57 PM
Help with ethernet bonding on Slackware shubb Linux - Networking 0 12-02-2005 03:03 PM
channel bonding wlan cards mungler Linux - Wireless Networking 0 09-13-2005 04:32 AM
Ethernet channel bonding satimis Linux - Networking 3 05-19-2004 10:16 AM
Ethernet bonding trycoon Linux - Networking 7 07-23-2002 10:05 AM

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

All times are GMT -5. The time now is 04:14 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