Date: Fri, 4 Sep 2015 16:39:22 +0300 From: Sergey Kandaurov <pluknet@gmail.com> To: John Baldwin <jhb@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org>, Adrian Chadd <adrian.chadd@gmail.com>, "Ranjan1018 ." <214748mv@gmail.com>, Gleb Smirnoff <glebius@freebsd.org> Subject: Re: Upgrading to r297291 LAGG(4) stops working. Message-ID: <CAE-mSO%2BG4CB-Qnvs3mnQBOtgcorQcjY2P_b2RJucFVSwSJX8tw@mail.gmail.com> In-Reply-To: <4074787.MD5UFHZJLz@ralph.baldwin.cx> References: <CACyC=qZm74oBjtsUPu4C2hB_C24eeRXUasNqSxzioAzNyjVGdA@mail.gmail.com> <CACyC=qZaR%2BsjF3ppBfM8HTJg_W9tGQh546eRDp8MuF77g7OVbA@mail.gmail.com> <CAJ-Vmokr6E17VpZzd47ZB7PWyqRAvweNi%2BRnko45GHyQP9YYHA@mail.gmail.com> <4074787.MD5UFHZJLz@ralph.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1 September 2015 at 04:47, John Baldwin <jhb@freebsd.org> 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 @@
<para>Replace <replaceable>bge0</replaceable> to match the
system's Ethernet interface name. The
<literal>ether</literal> line will contain the
- <acronym>MAC</acronym> address of the specified interface.
- Now, change the <acronym>MAC</acronym> address of the
- underlying wireless interface:</para>
+ <acronym>MAC</acronym> address of the specified
+ interface.</para>
- <screen>&prompt.root; <userinput>ifconfig
<replaceable>iwn0</replaceable> ether
<replaceable>00:21:70:da:ae:37</replaceable></userinput></screen>
-
<para>Bring the wireless interface up, but do not set an
<acronym>IP</acronym> address:</para>
<screen>&prompt.root; <userinput>ifconfig
<replaceable>wlan0</replaceable> create wlandev
<replaceable>iwn0</replaceable> ssid
<replaceable>my_router</replaceable> up</userinput></screen>
+ <para>Now, change the <acronym>MAC</acronym> address of the
+ underlying wireless interface:</para>
+
+ <screen>&prompt.root; <userinput>ifconfig
<replaceable>wlan0</replaceable> ether
<replaceable>00:21:70:da:ae:37</replaceable></userinput></screen>
+
<para>Make sure the <replaceable>bge0</replaceable> interface
is up, then create the &man.lagg.4; interface with
<replaceable>bge0</replaceable> as master with failover to
@@ -3740,9 +3742,9 @@
<filename>/etc/rc.conf</filename>:</para>
<programlisting>ifconfig_bge0="up"
-ifconfig_<replaceable>iwn0</replaceable>="<replaceable>ether
00:21:70:da:ae:37</replaceable>"
wlans_<replaceable>iwn0</replaceable>="wlan0"
ifconfig_wlan0="WPA"
+ifconfig_wlan0_alias0="ether 00:21:70:da:ae:3"
cloned_interfaces="<literal>lagg<replaceable>0</replaceable></literal>"
ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="laggproto
failover laggport bge0 laggport wlan0 DHCP"</programlisting>
</example>
--
wbr,
pluknet
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSO%2BG4CB-Qnvs3mnQBOtgcorQcjY2P_b2RJucFVSwSJX8tw>
