From owner-freebsd-net@FreeBSD.ORG Fri Aug 31 11:29:54 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 123751065670 for ; Fri, 31 Aug 2012 11:29:54 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id DAFBA8FC12 for ; Fri, 31 Aug 2012 11:29:53 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so4725948pbb.13 for ; Fri, 31 Aug 2012 04:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zHlpMXGpfQDbUUoRVardx3exUtebc/IPAi7+vviZoAY=; b=ohTG/jOx3xEPHUIrBX5kPUFVst/72FIGuhA7DJYb6z6UydajhWyXClTdkdBZnm9Yin hMNRkg4gA/aomdiiI/nqvG40Fa9agwG3V75G9F6+dSJc/qsh0UVmtT0d+uRYFklP9wGl dIkbbrrXrNf9xlTZUXIHvLhTRLRHmoroHAwinmeus4IcB9VR4yX0lATeR5tyVDnZTRy3 ptZ9tDz9cbPCNYJV1xnP6jyHjHUrDmnicJuCI56Q5VC3VyGeEYYf/PloQ3WmxHBmTZ2j oDlugBy2DuoanvnI2DsPxES80l7hxxodKsR0JBydBVCqIOZhHFRnRjjmuB9HhwtxRVcn Vy+A== MIME-Version: 1.0 Received: by 10.68.129.131 with SMTP id nw3mr17059520pbb.43.1346412593387; Fri, 31 Aug 2012 04:29:53 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Fri, 31 Aug 2012 04:29:53 -0700 (PDT) In-Reply-To: <20120831104532.GA1758@-> References: <20120830215147.GA2383@-> <20120831104532.GA1758@-> Date: Fri, 31 Aug 2012 04:29:53 -0700 X-Google-Sender-Auth: sniAQ-nNEOiKUPgF7rIeQnkUHIc Message-ID: From: Adrian Chadd To: kaltheat@googlemail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: net@freebsd.org Subject: Re: lagg failover issue X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2012 11:29:54 -0000 guys, You can't override set the outbound MAC address of a wireless station. It associates with the MAC address of the card/vap/device. The AP _will_ store that MAC address in its node table. When sending frames from a STA, the only available details are: * source address - STA MAC * destination BSS - the destination BSS MAC address, ie which AP to send to * destination address - the destnation MAC only in WDS (4-address) setups is there a fourth address, which is the "actual original source MAC address". In this instance, the STA is actually tunnelling traffic from other source MACs. I don't know who started that lagg hack, but let me just be really really clear - if you try sending the source frames out a wifi interface with a source MAC that isn't the STA mac, it won't work. By design. If it does work - it's a fluke and it's not portable. What you really want is for the same IP to exist but only both interfaces and have the source interface/MAC seamlessly change. There've been proposals in the past for the STA side code to "proxy STA" a bunch of other MACs behind it - using 3 address frames( ie, not WDS) but keeping state as to which IP traffic is going to which MAC address. No, net80211 in our tree doesn't have that support. I hope that puts this all to rest. Adrian On 31 August 2012 03:45, wrote: > On Thu, Aug 30, 2012 at 11:51:47PM +0200, kaltheat@googlemail.com wrote: >> Hi, >> >> I'm using following devices: >> >> bge0 - NetLink BCM57780 Gigabit Ethernet PCIe >> ndis0 - BCM43225 802.11b/g/n >> >> As far as I've tested it, each of them work fine for itself. >> >> I want to aggregate them using lagg in failover mode as explained here[1][2]. >> But when I remove the wire (wireless connection is established), I can't put >> any traffic through lagg0. >> >> What might be the problem? Can you give me some hints on how to debug this >> lagg-issue further? >> >> Regards, >> kaltheat >> >> [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html >> Example 32-3. Failover Mode Between Wired and Wireless Interfaces >> [2] http://www.freebsd.org/cgi/man.cgi?query=lagg#EXAMPLES >> Second example >> >> > > Hi, > > I can provide some additional informations: > > I read somewhere that it might be a problem to change the ethernet address of a > ndis-interface. On the accesspoint I saw that although I changed the ethernet > address of the wireless nic to that one of the wired nic (checked with ifconfig) > connection was tried to be established with the native mac of the wireless nic. > Now I'm using the native mac of the wireless nic on the wired nic to avoid this > problem. > This didn't solve the lagg issue. > > While I was pinging a client reachable through wired and wireless lan I observed > traffic on the three interfaces (bge0, wlan0, lagg0). With cable connected I saw > ping traffic (in & out) on lagg0 and bge0. When removing cable after a small > break I only saw outgoing packages on lagg0. IP and ethernet addresses of outgoing > packages were the same in each case. > > > Regards, > kaltheat > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"