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 04-14-2010, 11:59 PM   #16
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682

I think you should look at post #6. What you want to do is often accomplished using bonding. The bridge is configured as if it were a single interface and the switch prunes the additional interface. If the interface being used fails the second is the failover.
 
Old 04-15-2010, 09:24 AM   #17
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by jschiwal View Post
I think you should look at post #6. What you want to do is often accomplished using bonding. The bridge is configured as if it were a single interface and the switch prunes the additional interface. If the interface being used fails the second is the failover.
Bonding requires coordination with the upstream device (switch) to make it look like a single link. I have not yet found any such capability in my switch. Bonding is also generally done for increased bandwidth, which I don't need. I have gigabit now, and don't even need anywhere near 100 megabit.

I just want simple redundancy. And if things were to work in the way I think of as logical, this would be working redundancy with no special feature on the switch end. There's ONE bug I'm seeing which if solved might well make it all work, anyway. That bug is where packets arriving on the "other" interface don't get to the process (it's UDP for DNS). Everything is symmetrical except for the order of interfaces in the list of interfaces. Yet always one works and the other does not, with no relation to which might be plugged in or not.

If packets arriving on any interface always went to the listening process (UDP in this case), then a cable failure, even if it failed to be detected (e.g. the interface stays in RUNNING state even though data won't go through anymore), then eventually when ARP entries expire, they will be re-acquired only through the interface that is actually working. That should achieve redundancy without bonding.
 
Old 04-16-2010, 03:16 PM   #18
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Solved

The problem was that Ubuntu set the sysctl variable "rp_filter" to "1" AND the rp_filter implementation seems to have a timing bug relative to ARP entry expirations.

The fix/workaround is to set /proc/sys/net/ipv4/conf/*/rp_filter to the value "0". This is probably best done in file "/etc/sysctl.conf" with:
Code:
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0
Apparently, the ARP entries were expiring, and before new ones could be established via an attempt to send traffic to the IP address that had sent packets (as DNS queries), rp_filter kicked in and was discarding the packets. Apparently rp_filter utilizes the ARP table as well as the routing table to determine the reverse path to validate the packet source. Since the ARP entry had expired to go back to the source, it treated it as an invalid packet.

My network doesn't need this security feature, anyway, so it's easy for me to turn it off. Now I have fallback redundancy between two multihomed ethernet interfaces.
 
  


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
can't make ethernet on laptop work, wireless and usb work fine ubuntu 8.10 rz1988 Linux - Newbie 10 01-13-2009 02:21 PM
Zenwalk: need help enabling ports 25 & 110 to make thunderbird's webmail ext. work frazum Linux - Newbie 1 07-05-2007 10:16 AM
how do I make USB ports work so I can get my printer working? M$ISBS Linux - Newbie 22 07-19-2005 02:04 PM
"make" command won't work in Fedora...installing Nvidia Ethernet drv's help Ge|atinousFury Linux - Hardware 24 01-22-2004 04:42 PM
How to make build in Ethernet work on RED HAT 8 x2000koh Linux - Networking 4 06-19-2003 08:23 PM

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

All times are GMT -5. The time now is 03:29 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
Open Source Consulting | Domain Registration