On 1 September 2015 at 04:47, John Baldwin <j...@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
     <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
     <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 @@

+ifconfig_wlan0_alias0="ether 00:21:70:da:ae:3"
failover laggport bge0 laggport wlan0 DHCP"</programlisting>

freebsd-current@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to