[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5325.1239113639@death.nxdomain.ibm.com>
Date: Tue, 07 Apr 2009 07:13:59 -0700
From: Jay Vosburgh <fubar@...ibm.com>
To: Or Gerlitz <ogerlitz@...taire.com>
cc: netdev@...r.kernel.org
Subject: Re: more findings/questions on vlans/bonds
Or Gerlitz <ogerlitz@...taire.com> wrote:
[...]
>I hope that you can help clarify what's the correct/supported method
>to work with vlans and bonds, with 2.6.29 I see that one can either
>
>[I pasted in the fixed text here]
> - vlan a bond (bond0.4001 over bond0 over eth0/1)
> - bond vlans (e.g bond0 over eth0/1.4001 over eth0/1)
I'll have to look into this, but my recollection is that you
should be able to do either of the above. I haven't tested the second
flavor lately, but I believe it should work. It's arguably only better
than the first alternative if, for some reason, the user wants to either
load balance or fail over across multiple VLANs, but (if all slaves are
on the same VLAN) the two above scenarios should be functionally
equivalent.
>I played a bit with bonding vlans (2.6.29 active-backup mode) and it
>doesn't seem to work - specifically, I noted that bonding doesn't issue
>fail-over after I changed the current slave link status to down ("ifconfig
>eth0.4001 down"). I suspect that the carrier based link monitoring scheme
>is broken wrt to vlan devices - e.g I found that at least from sysfs
>perspective the vlan device carrier isn't available:
>
>$ cat /sys/class/net/eth0.4001/carrier
>cat: /sys/class/net/eth0.4001/carrier: Invalid argument
>
>I also played with a post 2.6.29 cut of Linus tree, and I couldn't bond vlans.
>I thought that the reason may be that a vlan device has already master -
>but I found out that its wrong and vlans don't have the IFF_SLAVE bit set
>in their flags bit mask. So this may be either something wrong on my side
>or a bug introduced after 2.6.29 or just something which isn't supported,
>e.g following my findings with 2.6.29 above...
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@...ibm.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists