Date: Mon, 1 Aug 2022 13:30:51 -0300 From: Mario Lobo <lobo@bsd.com.br> To: Nuno Teixeira <eduardo@freebsd.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: Failover Mode between ether/wlan panics Message-ID: <CA%2ByoEx8hh6%2By67S-5bwnOrh-aKDkHMakL%2BS2qrsD4vAycE3TeQ@mail.gmail.com> In-Reply-To: <CAFDf7UJgo8_vn1D=P2E72XxenZsLmE_%2Bb8ygHEk_Y6M4yXEOzQ@mail.gmail.com> References: <CAFDf7ULWLsHJVefkFn3P2GmcXhNv1aL%2BA4D2uYPQ7d5Tkn81SA@mail.gmail.com> <CA%2ByoEx-9HE4E%2B_h%2BADSSqU26EinydmYyyPcnn8daPQ%2BC6w1qYg@mail.gmail.com> <CAFDf7UJgo8_vn1D=P2E72XxenZsLmE_%2Bb8ygHEk_Y6M4yXEOzQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000483b1d05e5308285 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 1, 2022, 11:01 Nuno Teixeira <eduardo@freebsd.org> wrote: > 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_MAG= IC,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 = 1500 > 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) > 13: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-= and-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 DHC= P" >>> --- >>> >>> 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. >> > Your lagg0 interface is missing. > --000000000000483b1d05e5308285 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Mon, Aug 1, 2022, 11:01 Nuno Teixeira <<a href= =3D"mailto:eduardo@freebsd.org">eduardo@freebsd.org</a>> wrote:<br></div= ><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1= px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div><br></d= iv><div>Something is wrong about getting ether and wlan mac adresses.</div>= <div>dmesg shows the same address:</div><div>---</div><div>iwlwifi0: Detect= ed 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: <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<br>re0: Ethernet add= ress: 6c:6a:77:df:09:21</div><div>---</div><div>and ifconfig shows:</div><d= iv>---</div><div>re0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metri= c 0 mtu 1500<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D8209b<RXCSUM,TXCSU= M,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE><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 me= dia: Ethernet autoselect (100baseTX <full-duplex>)<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 status: active<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D2= 9<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL><br>lo0: flags=3D8049<UP,LO= OPBACK,RUNNING,MULTICAST> metric 0 mtu 16384<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>= <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 prefixlen 64 scopeid 0x2<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 inet 127.0.0.1 netmask 0xff000000<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 groups: lo<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNU= D,AUTO_LINKLOCAL><br>wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX= ,MULTICAST> 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 0xfff= fff00 broadcast 192.168.1.255<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan<b= r>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid MEO-3637C0 channel 1 (2412 MHz 11g) bssi= d 00:06:91:36:37:c0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 regdomain ETSI country P= T authmode WPA2/802.11i privacy ON<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey = UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 protmode CTS wme roaming MANUAL<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 parent interface: iwlwifi0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: IEEE 8= 02.11 Wireless Ethernet OFDM/24Mbps 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<PERF= ORMNUD,IFDISABLED,AUTO_LINKLOCAL></div><div>---</div><div><br></div><div= >I disabled wireless at bios and same mac address for ethernet.</div><div>I= don't see a possibility of both cards sharing same mac address...<br><= /div><div><br></div><div>Cheers<br></div></div><br><div class=3D"gmail_quot= e"><div dir=3D"ltr" class=3D"gmail_attr">Mario Lobo <<a href=3D"mailto:l= obo@bsd.com.br" target=3D"_blank" rel=3D"noreferrer">lobo@bsd.com.br</a>>= ; 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 sol= id rgb(204,204,204);padding-left:1ex"><div dir=3D"auto"><div><br><div class= =3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Jul 31, 2022= , 21:05 Nuno Teixeira <<a href=3D"mailto:eduardo@freebsd.org" target=3D"= _blank" rel=3D"noreferrer">eduardo@freebsd.org</a>> wrote:<br></div><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>Hello,<= /div><div><br></div><div>I'm trying to setup a failover mode ethernet/w= ireless as shown in <a href=3D"https://docs.freebsd.org/en/books/handbook/b= ook/#networking-lagg-wired-and-wireless" rel=3D"noreferrer noreferrer" targ= et=3D"_blank">https://docs.freebsd.org/en/books/handbook/book/#networking-l= agg-wired-and-wireless</a> and I got a panic.<br></div><div><br></div><div>= /etc/rc.conf:</div><div>---</div><div>ifconfig_re0=3D"ether <wlan0 = mac address>"<br>wlans_iwlwifi0=3D"wlan0"<br>ifconfig_wla= n0=3D"WPA"<br>create_args_wlan0=3D"country PT"<br>clone= d_interfaces=3D"lagg0"<br>ifconfig_lagg0=3D"up laggproto fai= lover laggport re0 laggport wlan0 DHCP"</div><div>---</div><div><br></= div><div>Any ideas of what's wrong?</div><div>BTW, no kernel dump and I= have dumpdev=3D"AUTO" in /etc/rc.conf...<br><br></div><div>Thank= s in advance,</div><div>Nuno Teixeira<br></div></div></blockquote></div></d= iv><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'll have to clone you= r wifi MAC to your eth MAC.</div></div></blockquote></div></blockquote></di= v></div><div dir=3D"auto"><br></div><div dir=3D"auto">Your lagg0 interface = is missing.</div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote c= lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;= padding-left:1ex"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex"><div dir=3D"auto"><div dir=3D"auto"><div class=3D"gmail= _quote"><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></div></div> </blockquote></div></div></div> </blockquote></div> </blockquote></div></div></div> --000000000000483b1d05e5308285--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx8hh6%2By67S-5bwnOrh-aKDkHMakL%2BS2qrsD4vAycE3TeQ>