From nobody Mon Aug 01 16:55:49 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LxPQW53kqz4X39Z for ; Mon, 1 Aug 2022 16:56:03 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LxPQV4nyDz3YMj for ; Mon, 1 Aug 2022 16:56:02 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-10ea30a098bso9482678fac.8 for ; Mon, 01 Aug 2022 09:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=JwtuIoTySEuhnjk2rcmBJZBMIAZevuLTp+ZEW/kZ/Oc=; b=fc6Vv0IgFYGytTEb4/JPiNpTYG0VmZcGqIHxiOs0aYn+eB57+q9Z5DWzCktWWE9hBY uWIA8T4vSh/HFhLn1WYtQUYi7TFsI82gh9kWOD40WRVvhLTI7gWiu4/jDU0zuANQ7qj0 RmevUAbnS0QGHcpNYuQkisD/o8qUJmBTE3EoI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=JwtuIoTySEuhnjk2rcmBJZBMIAZevuLTp+ZEW/kZ/Oc=; b=Atu9OWibs71x6t4T94LLoATrmw8RrBQ6ppuvix7juuuf9dt2Dp7NEJ7/Gm2qAk2c6Y mvCCi7XpXlai2R2MILkl2tjYEGiqKXzzCaAR4E0b2/K3W7UVJKbLiriC8PGcuDGHuGiW juJMpE2dgwlWFxQNMoWiYTxd9gMe/hNrdDUwQG+sqAjjPWyn7YRCgUi3xx5HBdDm+5Vz 9YR3Lg3YmKJGmT7C5ymKHMyN0hhevL0NFf6LQlAqpjo2ycEvxklPhC2peaHy07gB52Sp gDpPqs6hBCcVmDWChmzcGc/hCt3wZ6y4F2Q6Q19l7MJfa4FqAEhnuGDP9O2fHMLEoBGX S8Yw== X-Gm-Message-State: AJIora+NatYKnP8VEpNC7Erm0X0B4nUJditblzs4v/LjR50hhqJp8YwX jZpoIMoAe96nm+N0B08irHB+nOE5OG87tqZUu8gkZlBcJLz/zg== X-Google-Smtp-Source: AGRyM1tAngfGaIsYy1s9yBZar7SsIoTvhFQfpsGJxoDMfleyhkHg1Be4E+JlcsK2n2eVFykqaV6B2ddhjHON3oflaOM= X-Received: by 2002:a05:6870:e390:b0:10e:893b:f1d9 with SMTP id x16-20020a056870e39000b0010e893bf1d9mr7350068oad.88.1659372961493; Mon, 01 Aug 2022 09:56:01 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Lobo Date: Mon, 1 Aug 2022 13:55:49 -0300 Message-ID: Subject: Re: Failover Mode between ether/wlan panics To: Nuno Teixeira Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000eb89ef05e530dfe3" X-Rspamd-Queue-Id: 4LxPQV4nyDz3YMj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsd.com.br header.s=capeta header.b=fc6Vv0Ig; dmarc=none; spf=pass (mx1.freebsd.org: domain of lobo@bsd.com.br designates 2001:4860:4864:20::34 as permitted sender) smtp.mailfrom=lobo@bsd.com.br X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[bsd.com.br:s=capeta]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::34:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[bsd.com.br:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[bsd.com.br]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000eb89ef05e530dfe3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 1, 2022 at 1:30 PM Mario Lobo wrote: > > > On Mon, Aug 1, 2022, 11:01 Nuno Teixeira 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: 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 metric 0 mtu 1500 >> >> options=3D8209b >> ether 6c:6a:77:df:09:21 >> media: Ethernet autoselect (100baseTX ) >> status: active >> nd6 options=3D29 >> lo0: flags=3D8049 metric 0 mtu 16384 >> options=3D680003 >> inet6 ::1 prefixlen 128 >> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >> inet 127.0.0.1 netmask 0xff000000 >> groups: lo >> nd6 options=3D21 >> wlan0: flags=3D8843 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 >> --- >> >> 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 escreveu no dia segunda, 1/08/2022 =C3=A0(s= ) >> 13:15: >> >>> >>> On Sun, Jul 31, 2022, 21:05 Nuno Teixeira 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 " >>>> 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 DH= CP" >>>> --- >>>> >>>> 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. > >> Here is my ifconfig: [~]>ifconfig re0: flags=3D8843 metric 0 mtu 1500 options=3D80088 ether f8:94:c2:26:f3:54 hwaddr fc:45:96:fb:3d:82 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D21 lo0: flags=3D8049 metric 0 mtu 16384 options=3D680003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=3D21 vboxnet0: flags=3D8802 metric 0 mtu 1500 ether 0a:00:27:00:00:00 media: Ethernet autoselect status: active nd6 options=3D21 wlan0: flags=3D8c43 metric = 0 mtu 1500 ether f8:94:c2:26:f3:54 groups: wlan ssid "" channel 1 (2412 MHz 11g) regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF powersavemode CAM powersavesleep 100 txpower 30 bmiss 10 scanvalid 60 protmode CTS wme roaming MANUAL parent interface: iwm0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier nd6 options=3D21 lagg0: flags=3D8843 metric 0 mtu 15= 00 ether f8:94:c2:26:f3:54 inet6 fe80::fa94:c2ff:fe26:f354%lagg0 prefixlen 64 scopeid 0x5 inet 10.17.12.215 netmask 0xffffff00 broadcast 10.17.12.255 laggproto failover lagghash l2,l3,l4 laggport: re0 flags=3D5 laggport: wlan0 flags=3D0<> groups: lagg media: Ethernet autoselect status: active nd6 options=3D21 And here is my rc.conf: ifconfig_wlan0=3D"mode autoselect WPA powersave up" wlans_iwm0=3D"wlan0" wpa_supplicant_enable=3D"YES" wpa_supplicant_program=3D"/usr/local/sbin/wpa_supplicant" wpa_supplicant_flags=3D"-dd" ifconfig_re0=3D"media 1000baseTX mediaopt full-duplex up" ifconfig_re0=3D"ether f8:94:c2:26:f3:54" ifconfig_lagg0=3D"up laggproto failover laggport re0 laggport wlan0 DHCP" cloned_interfaces=3D"lagg0" --=20 Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] --000000000000eb89ef05e530dfe3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, Aug 1, 2022 at 1:30 PM Mario Lobo <lobo@bsd.com.br> wrote:


On Mon, Aug 1, 20= 22, 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: Detec= ted 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 ad= dress: 6c:6a:77:df:09:21
---
and ifconfig shows:
<= div>---
re0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metr= ic 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D8209b<RXCSUM,TXCS= UM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 ether 6c:6a:77:df:09:21
=C2=A0 =C2=A0 =C2=A0 =C2=A0= media: Ethernet autoselect (100baseTX <full-duplex>)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 status: active
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options= =3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=3D8049<U= P,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
=C2=A0 =C2=A0 =C2=A0= =C2=A0 options=3D680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6= >
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 ::1 prefixlen 128
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask 0xff000000
=C2=A0 =C2=A0 =C2=A0= =C2=A0 groups: lo
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFO= RMNUD,AUTO_LINKLOCAL>
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIM= PLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6= c:6a:77:df:09:21
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 192.168.1.74 netmask 0= xffffff00 broadcast 192.168.1.255
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wl= an
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid MEO-3637C0 channel 1 (2412 MHz 11g) = bssid 00:06:91:36:37:c0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 regdomain ETSI count= ry PT authmode WPA2/802.11i privacy ON
=C2=A0 =C2=A0 =C2=A0 =C2=A0 deftx= key UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 protmode CTS wme roaming MANUAL
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 parent interface: iwlwifi0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: IEE= E 802.11 Wireless Ethernet OFDM/24Mbps mode 11g
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 status: associated
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D29<P= ERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
---

<= div>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, 2= 022, 21:05 Nuno Teixeira <eduardo@freebsd.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
Hell= o,

I'm trying to setup a failover mode etherne= t/wireless as shown in https://docs.freebsd.org/en/books/handbook/book/#networkin= g-lagg-wired-and-wireless and I got a panic.

/etc/rc.conf:
---
ifconfig_re0=3D"ether <wla= n0 mac address>"
wlans_iwlwifi0=3D"wlan0"
ifconfig_= wlan0=3D"WPA"
create_args_wlan0=3D"country PT"
cl= oned_interfaces=3D"lagg0"
ifconfig_lagg0=3D"up laggproto = failover laggport re0 laggport wlan0 DHCP"
---
Any ideas of what's wrong?
BTW, no kernel dump an= d I have dumpdev=3D"AUTO" in /etc/rc.conf...

Th= anks in advance,
Nuno Teixeira
=

Hi.

For this to work, you'll have to clone = your wifi MAC to your eth MAC.
<= /div>

Your lagg0 interfa= ce is missing.

Here is my ifconfig:
<= div>
[~]>ifconfig
re0: flags=3D8843<UP,BROADCAST,RU= NNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 options=3D80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 ether f8:94:c2:26:f3:54
=C2=A0 =C2=A0 =C2=A0 =C2=A0 hwaddr= fc:45:96:fb:3d:82
=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: Ethernet autoselec= t (1000baseT <full-duplex>)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: ac= tive
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LIN= KLOCAL>
lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric= 0 mtu 16384
=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D680003<RXCSUM,TXCS= UM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ine= t6 ::1 prefixlen 128
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::1%lo0 prefi= xlen 64 scopeid 0x2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 127.0.0.1 netmask 0= xff000000
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: lo
=C2=A0 =C2=A0 =C2=A0= =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL>
vboxnet0: flag= s=3D8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 ether 0a:00:27:00:00:00
=C2=A0 =C2=A0 =C2=A0 =C2=A0 me= dia: Ethernet autoselect
=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: active
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL&g= t;
wlan0: flags=3D8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST= > metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether f8:94:c2:26:f3:= 54
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 ssid "" channel 1 (2412 MHz 11g)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF powersavemode CAM powersavesleep= 100 txpower 30
=C2=A0 =C2=A0 =C2=A0 =C2=A0 bmiss 10 scanvalid 60 protmo= de CTS wme roaming MANUAL
=C2=A0 =C2=A0 =C2=A0 =C2=A0 parent interface: = iwm0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 media: IEEE 802.11 Wireless Ethernet au= toselect (autoselect)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 status: no carrier
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMNUD,AUTO_LINKLOCAL&g= t;
lagg0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> met= ric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether f8:94:c2:26:f3:54
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 inet6 fe80::fa94:c2ff:fe26:f354%lagg0 prefixlen= 64 scopeid 0x5
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 10.17.12.215 netmask 0x= ffffff00 broadcast 10.17.12.255
=C2=A0 =C2=A0 =C2=A0 =C2=A0 laggproto fa= ilover lagghash l2,l3,l4
=C2=A0 =C2=A0 =C2=A0 =C2=A0 laggport: re0 flags= =3D5<MASTER,ACTIVE>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 laggport: wlan0 fl= ags=3D0<>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: lagg
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 media: Ethernet autoselect
=C2=A0 =C2=A0 =C2=A0 =C2=A0= status: active
=C2=A0 =C2=A0 =C2=A0 =C2=A0 nd6 options=3D21<PERFORMN= UD,AUTO_LINKLOCAL>

And here is my rc.conf:
<= /div>

ifconfig_wlan0=3D"mode autoselect WPA powersa= ve up"
wlans_iwm0=3D"wlan0"
wpa_supplicant_enable=3D&q= uot;YES"
wpa_supplicant_program=3D"/usr/local/sbin/wpa_supplic= ant"
wpa_supplicant_flags=3D"-dd"
ifconfig_re0=3D"= ;media 1000baseTX mediaopt full-duplex up"
ifconfig_re0=3D"eth= er f8:94:c2:26:f3:54"
ifconfig_lagg0=3D"up laggproto failover = laggport re0 laggport wlan0 DHCP"
cloned_interfaces=3D"lagg0&q= uot;
--
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2= .2.8 [not Pro-Audio.... YET!!]
--000000000000eb89ef05e530dfe3--