From owner-freebsd-current@freebsd.org Fri Sep 4 13:39:23 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E8509C9F67 for ; Fri, 4 Sep 2015 13:39:23 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qk0-x242.google.com (mail-qk0-x242.google.com [IPv6:2607:f8b0:400d:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B9AD1E9B; Fri, 4 Sep 2015 13:39:23 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by qkex127 with SMTP id x127so922354qke.0; Fri, 04 Sep 2015 06:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=JVZTIkVwBuVy4b7983nJIbPncUrd48pzj2jG17X6w2o=; b=wUKDplwA3qs+M0FnGcV6ZjW6Zv9jdLb2KR8eRmgTh2o6Zo/KXwbNw72I3PLa52MSd3 6P+LtfuEgKsPUpy8P28+sS5n3hTM0RiWZ3STWWGMlFn8R2TDrAys1GF7++Yjs9sET4UF o/+j9UN1HqelmLyB3rndSvGQ4sA78xVHi5oLprLbNU4AFwlff7f07SwpaBJZmwMKz1FI 3UGpEHroGpAq+FU9FltFNtABiThuf96mrj7GG9zcy3w0uqdV5O2ONGdgoilLAjUefNBF ZIsZTq6xI/IkzgoEMu1VnJItq9cTOHLDx7sQhiNEwlohjUhiA+O3VeGtMp3QitXAO3KD /Nig== MIME-Version: 1.0 X-Received: by 10.55.33.74 with SMTP id h71mr5185150qkh.71.1441373962108; Fri, 04 Sep 2015 06:39:22 -0700 (PDT) Received: by 10.140.44.73 with HTTP; Fri, 4 Sep 2015 06:39:22 -0700 (PDT) In-Reply-To: <4074787.MD5UFHZJLz@ralph.baldwin.cx> References: <4074787.MD5UFHZJLz@ralph.baldwin.cx> Date: Fri, 4 Sep 2015 16:39:22 +0300 Message-ID: Subject: Re: Upgrading to r297291 LAGG(4) stops working. From: Sergey Kandaurov To: John Baldwin Cc: FreeBSD Current , Adrian Chadd , "Ranjan1018 ." <214748mv@gmail.com>, Gleb Smirnoff Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Fri, 04 Sep 2015 13:39:23 -0000 On 1 September 2015 at 04:47, John Baldwin wrote: > On Monday, August 31, 2015 09:58:45 AM Adrian Chadd wrote: >> Hi, >> >> +glebius, as he recently messed around with the wifi stack and his >> changes may have broken how mac addresses are assigned to the >> hardware. > > Glebius did break this, though not because of what you say. It's broken > because the 'ifconfig_ath0' line that sets the mac address no longer > does anything because 'ath0' is no longer an interface (and so that > line is now ignored, plus it wouldn't work if it were passed to ifconfig > now anyway). > > At the very least the Handbook section on this needs to be updated to give > working instructions for both HEAD and stable branches. What about this change? It should work in both current and stable (not tested, though). Index: en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml =================================================================== --- en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml (revision 47311) +++ en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml (working copy) @@ -3697,17 +3697,19 @@ Replace bge0 to match the system's Ethernet interface name. The ether line will contain the - MAC address of the specified interface. - Now, change the MAC address of the - underlying wireless interface: + MAC address of the specified + interface. - &prompt.root; ifconfig iwn0 ether 00:21:70:da:ae:37 - Bring the wireless interface up, but do not set an IP address: &prompt.root; ifconfig wlan0 create wlandev iwn0 ssid my_router up + Now, change the MAC address of the + underlying wireless interface: + + &prompt.root; ifconfig wlan0 ether 00:21:70:da:ae:37 + Make sure the bge0 interface is up, then create the &man.lagg.4; interface with bge0 as master with failover to @@ -3740,9 +3742,9 @@ /etc/rc.conf: ifconfig_bge0="up" -ifconfig_iwn0="ether 00:21:70:da:ae:37" wlans_iwn0="wlan0" ifconfig_wlan0="WPA" +ifconfig_wlan0_alias0="ether 00:21:70:da:ae:3" cloned_interfaces="lagg0" ifconfig_lagg0="laggproto failover laggport bge0 laggport wlan0 DHCP" -- wbr, pluknet