Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2022 15:01:10 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Mario Lobo <lobo@bsd.com.br>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Failover Mode between ether/wlan panics
Message-ID:  <CAFDf7UJgo8_vn1D=P2E72XxenZsLmE_%2Bb8ygHEk_Y6M4yXEOzQ@mail.gmail.com>
In-Reply-To: <CA%2ByoEx-9HE4E%2B_h%2BADSSqU26EinydmYyyPcnn8daPQ%2BC6w1qYg@mail.gmail.com>
References:  <CAFDf7ULWLsHJVefkFn3P2GmcXhNv1aL%2BA4D2uYPQ7d5Tkn81SA@mail.gmail.com> <CA%2ByoEx-9HE4E%2B_h%2BADSSqU26EinydmYyyPcnn8daPQ%2BC6w1qYg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000041d0b705e52e6f2a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

Something is wrong about getting ether and wlan mac adresses.
dmesg shows the same address:
---
iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz, REV=3D0x351
iwlwifi0: base HW address: 6c:6a:77:df:09:21
(...)
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port
0x3000-0x30ff mem 0xb4204000-0xb4204fff,0xb4200000-0xb4203fff at device 0.0
on pci3
re0: Ethernet address: 6c:6a:77:df:09:21
---
and ifconfig shows:
---
re0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=3D8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC=
,LINKSTATE>
        ether 6c:6a:77:df:09:21
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        ether 6c:6a:77:df:09:21
        inet 192.168.1.74 netmask 0xffffff00 broadcast 192.168.1.255
        groups: wlan
        ssid MEO-3637C0 channel 1 (2412 MHz 11g) bssid 00:06:91:36:37:c0
        regdomain ETSI country PT authmode WPA2/802.11i privacy ON
        deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
        protmode CTS wme roaming MANUAL
        parent interface: iwlwifi0
        media: IEEE 802.11 Wireless Ethernet OFDM/24Mbps mode 11g
        status: associated
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
---

I disabled wireless at bios and same mac address for ethernet.
I don't see a possibility of both cards sharing same mac address...

Cheers

Mario Lobo <lobo@bsd.com.br> escreveu no dia segunda, 1/08/2022 =C3=A0(s) 1=
3:15:

>
> On Sun, Jul 31, 2022, 21:05 Nuno Teixeira <eduardo@freebsd.org> wrote:
>
>> Hello,
>>
>> I'm trying to setup a failover mode ethernet/wireless as shown in
>> https://docs.freebsd.org/en/books/handbook/book/#networking-lagg-wired-a=
nd-wireless
>> and I got a panic.
>>
>> /etc/rc.conf:
>> ---
>> ifconfig_re0=3D"ether <wlan0 mac address>"
>> wlans_iwlwifi0=3D"wlan0"
>> ifconfig_wlan0=3D"WPA"
>> create_args_wlan0=3D"country PT"
>> cloned_interfaces=3D"lagg0"
>> ifconfig_lagg0=3D"up laggproto failover laggport re0 laggport wlan0 DHCP=
"
>> ---
>>
>> Any ideas of what's wrong?
>> BTW, no kernel dump and I have dumpdev=3D"AUTO" in /etc/rc.conf...
>>
>> Thanks in advance,
>> Nuno Teixeira
>>
>
> Hi.
>
> For this to work, you'll have to clone your wifi MAC to your eth MAC.
>
>>

--00000000000041d0b705e52e6f2a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>Something is wrong about=
 getting ether and wlan mac adresses.</div><div>dmesg shows the same addres=
s:</div><div>---</div><div>iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz=
, REV=3D0x351<br>iwlwifi0: base HW address: 6c:6a:77:df:09:21</div><div>(..=
.)</div><div>re0: &lt;RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethe=
rnet&gt; port 0x3000-0x30ff mem 0xb4204000-0xb4204fff,0xb4200000-0xb4203fff=
 at device 0.0 on pci3<br>re0: Ethernet address: 6c:6a:77:df:09:21</div><di=
v>---</div><div>and ifconfig shows:</div><div>---</div><div>re0: flags=3D88=
02&lt;BROADCAST,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 options=3D8209b&lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN=
_HWCSUM,WOL_MAGIC,LINKSTATE&gt;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6c:6a:=
77:df:09:21<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: Ethernet autoselect (100b=
aseTX &lt;full-duplex&gt;)<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: active<br=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D29&lt;PERFORMNUD,IFDISABLED,AUTO=
_LINKLOCAL&gt;<br>lo0: flags=3D8049&lt;UP,LOOPBACK,RUNNING,MULTICAST&gt; me=
tric 0 mtu 16384<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D680003&lt;RXCSUM,=
TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6&gt;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0=
 inet6 ::1 prefixlen 128<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::1%lo0 p=
refixlen 64 scopeid 0x2<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netma=
sk 0xff000000<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: lo<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 nd6 options=3D21&lt;PERFORMNUD,AUTO_LINKLOCAL&gt;<br>wlan0: f=
lags=3D8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500=
<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6c:6a:77:df:09:21<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 inet 192.168.1.74 netmask 0xffffff00 broadcast 192.168.1.255<=
br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
ssid MEO-3637C0 channel 1 (2412 MHz 11g) bssid 00:06:91:36:37:c0<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 regdomain ETSI country PT authmode WPA2/802.11i privac=
y ON<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF AES-CCM 2:128-bit txpowe=
r 30 bmiss 7 scanvalid 60<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 protmode CTS wme r=
oaming MANUAL<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 parent interface: iwlwifi0<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: IEEE 802.11 Wireless Ethernet OFDM/24Mbp=
s mode 11g<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: associated<br>=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 nd6 options=3D29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&=
gt;</div><div>---</div><div><br></div><div>I disabled wireless at bios and =
same mac address for ethernet.</div><div>I don&#39;t see a possibility of b=
oth cards sharing same mac address...<br></div><div><br></div><div>Cheers<b=
r></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmai=
l_attr">Mario Lobo &lt;<a href=3D"mailto:lobo@bsd.com.br" target=3D"_blank"=
>lobo@bsd.com.br</a>&gt; escreveu no dia segunda, 1/08/2022 =C3=A0(s) 13:15=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"au=
to"><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_att=
r">On Sun, Jul 31, 2022, 21:05 Nuno Teixeira &lt;<a href=3D"mailto:eduardo@=
freebsd.org" target=3D"_blank">eduardo@freebsd.org</a>&gt; wrote:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hel=
lo,</div><div><br></div><div>I&#39;m trying to setup a failover mode ethern=
et/wireless as shown in <a href=3D"https://docs.freebsd.org/en/books/handbo=
ok/book/#networking-lagg-wired-and-wireless" rel=3D"noreferrer" target=3D"_=
blank">https://docs.freebsd.org/en/books/handbook/book/#networking-lagg-wir=
ed-and-wireless</a> and I got a panic.<br></div><div><br></div><div>/etc/rc=
.conf:</div><div>---</div><div>ifconfig_re0=3D&quot;ether &lt;wlan0 mac add=
ress&gt;&quot;<br>wlans_iwlwifi0=3D&quot;wlan0&quot;<br>ifconfig_wlan0=3D&q=
uot;WPA&quot;<br>create_args_wlan0=3D&quot;country PT&quot;<br>cloned_inter=
faces=3D&quot;lagg0&quot;<br>ifconfig_lagg0=3D&quot;up laggproto failover l=
aggport re0 laggport wlan0 DHCP&quot;</div><div>---</div><div><br></div><di=
v>Any ideas of what&#39;s wrong?</div><div>BTW, no kernel dump and I have d=
umpdev=3D&quot;AUTO&quot; in /etc/rc.conf...<br><br></div><div>Thanks in ad=
vance,</div><div>Nuno Teixeira<br></div></div></blockquote></div></div><div=
 dir=3D"auto"><br></div><div dir=3D"auto">Hi.</div><div dir=3D"auto"><br></=
div><div dir=3D"auto">For this to work, you&#39;ll have to clone your wifi =
MAC to your eth MAC.</div><div dir=3D"auto"><div class=3D"gmail_quote"><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div></div><=
/div>
</blockquote></div></div></div>
</blockquote></div>

--00000000000041d0b705e52e6f2a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UJgo8_vn1D=P2E72XxenZsLmE_%2Bb8ygHEk_Y6M4yXEOzQ>