From: Nikolay Aleksandrov <nikolay@redhat.com>
To: Santiago Garcia Mantinan <manty@manty.net>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: bonding + arp monitoring fails if interface is a vlan
Date: Tue, 20 Aug 2013 12:11:34 +0200 [thread overview]
Message-ID: <521340D6.5080108@redhat.com> (raw)
In-Reply-To: <CAJk_L2Ep-HoROtyThk26t8x3HQFy9+5-7k-e4G15Nm_F0KxV-A@mail.gmail.com>
On 08/20/2013 10:05 AM, Santiago Garcia Mantinan wrote:
> Hi!
>
> Sorry it took me so long to reply back. I've been doing more tests on
> xor mode and I see that arp monitoring is not working at all. I
> haven't found any doc that says which modes should be compatible with
> arp monitoring, maybe xor mode shouldn't be used at all.
>
> My last setup is a Linux with a couple of vlans both interfaces
> (eth2.1001 and eth2.1002) with IP 192.168.1.1 (no bonding at all) and
> another Linux machine with a 3.11-rc3 with Nicolay's arp fix for
> bonding and a bond configured like this:
>
> iface bond0 inet static
> address 192.168.1.2
> netmask 255.255.255.0
> bond-slaves eth0.1001 eth0.1002 eth1.1001 eth1.1002
> bond-mode balance-xor
> bond-arp_validate 0
> bond-arp_interval 2000
> bond-arp_ip_target 192.168.1.1
>
> A silly switch connects the couple of ethernets of the machine with
> the bond to the interface of the not bonded machine.
>
> What I saw was that the bonded machine didn't detect the ifconfig down
> of the interfaces of the not bonded machine at all. That drove me to
> the hypothesis that the bonded machine was considering its own traffic
> (there was no traffic but the arp requests of the bonding) as
> indication that the link was ok.
>
> To test the hypothesis, when the not bonded machine (192.168.1.1)
> which is the target for arp requests was unplugged and the bonding was
> seeing all interfaces up (not detecting that the other machine was not
> responding) I unplugged one of the bonded interfaces and all 4 slaves
> went to down, then if I replugged it all 4 would go up.
>
> Maybe this is something to be expected due to arp monitoring not
> working with balance-xor, but I haven't found any doc saying this.
>
> If you need the debug info for this I can send it, but the events show
> nothing, as there are no event saying that link is lost or anything
> :-(
>
> Regards.
>
Hi,
This setup works for me, what might be wrong with your setup is that you connect
all 4 ports to a "dumb" switch, and you have the same vlans over the real
devices that are connected so they see each other's packets and the port's
last_rx gets updated so they stay up.
I tried your setup with a "smart" switch so the ports couldn't see each other
and only the one that saw 192.168.1.1 was up, and the moment 192.168.1.1 went
down - the port went down in the bonding.
Cheers,
Nik
next prev parent reply other threads:[~2013-08-20 10:15 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 12:11 bonding + arp monitoring fails if interface is a vlan Santiago Garcia Mantinan
2013-08-01 13:00 ` Erik Hugne
2013-08-02 7:26 ` Santiago Garcia Mantinan
2013-08-02 9:33 ` Santiago Garcia Mantinan
2013-08-01 20:21 ` Veaceslav Falico
2013-08-02 7:30 ` Santiago Garcia Mantinan
2013-08-02 11:58 ` Nikolay Aleksandrov
2013-08-02 15:49 ` Jay Vosburgh
2013-08-02 16:13 ` Nikolay Aleksandrov
2013-08-04 10:45 ` Santiago Garcia Mantinan
2013-08-05 10:26 ` Santiago Garcia Mantinan
2013-08-05 10:26 ` Nikolay Aleksandrov
2013-08-07 7:26 ` Santiago Garcia Mantinan
2013-08-07 7:39 ` Nikolay Aleksandrov
2013-08-07 10:44 ` Santiago Garcia Mantinan
2013-08-20 8:05 ` Santiago Garcia Mantinan
2013-08-20 10:11 ` Nikolay Aleksandrov [this message]
2013-08-21 7:39 ` Santiago Garcia Mantinan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=521340D6.5080108@redhat.com \
--to=nikolay@redhat.com \
--cc=manty@manty.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.