From owner-freebsd-current@FreeBSD.ORG Thu Aug 28 16:12:58 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 490591065675; Thu, 28 Aug 2008 16:12:58 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id EFBE28FC1A; Thu, 28 Aug 2008 16:12:57 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m7SFti4x050425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Aug 2008 08:55:44 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48B6CA80.50606@freebsd.org> Date: Thu, 28 Aug 2008 08:55:44 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Andrew Thompson References: <20080828151006.GE98483@citylink.fud.org.nz> In-Reply-To: <20080828151006.GE98483@citylink.fud.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: Daniel Eischen , current@freebsd.org Subject: Re: How to use lagg and wlan together X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 16:12:58 -0000 Andrew Thompson wrote: > On Tue, Aug 26, 2008 at 11:41:20AM -0400, Daniel Eischen wrote: > >> I'm trying to get a lagg interface with failover to work with bfe0 >> and wlan0. The master port is bfe0, with failover to wlan0. The >> wlan0 interface is ath0. >> >> I can get both wlan0 and bfe0 to work independently without being >> lagg devices, but only bfe0 works when wlan0 and bfe0 are in a >> lagg interface. In other words, when I pull the plug on bfe0, it >> does not failover to wlan0. >> >> The system is a 1 month old -current (i386) that has been pretty >> stable and I'm using something like this in /etc/rc.conf: >> >> wlans_ath0=wlan0 >> ifconfig_wlan0="ssid my_ssid \ >> wepkey 1:0xblah1 wepkey 2:0xblah2 \ >> wepkey 3:0xblah3 wepkey 4:0xblah4 \ >> weptxkey 1 authmode shared" >> ifconfig_bfe0="up" >> cloned_interfaces="lagg0" >> ifconfig_lagg0="laggproto failover laggport bfe0 laggport wlan0" >> ifconfig_lagg0_alias0="inet 10.0.0.7 netmask 0xffffff00" >> >> $ ifconfig -a >> ath0: flags=8802 metric 0 mtu 2290 >> ether 00:11:f5:9d:54:f5 >> > ^^^^^^^^^^^^^^^^^^^^^^^ > >> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g >> status: associated >> bfe0: flags=8843 metric 0 mtu 1500 >> options=8 >> ether 00:14:22:ae:bc:98 >> media: Ethernet autoselect (100baseTX ) >> status: active >> lagg: laggdev lagg0 >> lo0: flags=8049 metric 0 mtu 16384 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 >> inet6 ::1 prefixlen 128 >> inet 127.0.0.1 netmask 0xff000000 >> lagg0: flags=8843 metric 0 mtu 1500 >> ether 00:14:22:ae:bc:98 >> > ^^^^^^^^^^^^^^^^^^^^^^^ > >> inet 10.0.0.7 netmask 0xffffff00 broadcast 10.0.0.255 >> media: Ethernet autoselect >> status: active >> laggproto failover >> laggport: wlan0 flags=0<> >> laggport: bfe0 flags=5 >> wlan0: flags=8843 metric 0 mtu 1500 >> ether 00:14:22:ae:bc:98 >> > ^^^^^^^^^^^^^^^^^^^^^^^ > > I wonder if it becuase the lagg driver sets the mac address of all its > interfaces to the same value, this has not been propagated back up to > the ath0 interface. > > I wonder if this is the right way to do things. > > You can't have the wlan mac address that different from the underlying device (it can only differ in the high byte if the bssid mask is setup in the h/w). Propagating the mac address to the chip would work. Sam