From nobody Mon Aug 01 16:30:51 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 4LxNrK098vz4Wych for ; Mon, 1 Aug 2022 16:29:53 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) (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 4LxNrH4kZbz3Vnt for ; Mon, 1 Aug 2022 16:29:51 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-oi1-x22d.google.com with SMTP id h125so13608702oif.8 for ; Mon, 01 Aug 2022 09:29:51 -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=iEchmNctKDDzeEVFbrq+qTpTX9a2SF9oeoTyPHI7Iec=; b=AtxoITL1wgYBwnjUcm7juV7PF7CeLLMrUXGhBZH/6kkCZsDYNxY1o+uYNXOqTXfrXp DzvlawrYE6xIfbmDND6Ttpzy2CgsaYwXxHp+wjca/GnnD2ygtKL0LWZPxvT1EpqtlV2h rKeYYKf8XpJckxshv/1kEHWeJoRTGsD+RLQLU= 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=iEchmNctKDDzeEVFbrq+qTpTX9a2SF9oeoTyPHI7Iec=; b=WJ8kKHSxjrCEPDZ0B/xFgzGrTEORWB1JK3iP9c2aYqZPSOeJPcQ7Um9iY893HpulsW RBFDiI95iKoV8Yh9pGAl75DccFagx19fwigkLH7Py8UrT/gnnKpYCJBwYtoetXwxT0J4 Ucz9JcV1/HV3zp7Opna6+ede7IOeEe2AgDfbbf3ovk+NCFhyfhljJLyPLfldFkmhItAn ixys5payWrRE7vwfykg5ummiH5TRjsF95WZF/0x8jx0VMn6uDlE05XWhUfQlCHKaG6RP UkJajgD0yRS49rl9lMoPJp42zfiiLCjdEwYWN5vWchuqj/JA3VUK0qlJi4Jj4EjqHpiM mP3Q== X-Gm-Message-State: AJIora9UYQZkTQ3sTxcDZh0ktatIwpF5ahRjnL+C+BDj+zkTSnFPRfqi krEYBRTisNun435PuxRxp8VnwjJHIjXU/D+7gYcxLhGcbqQ= X-Google-Smtp-Source: AGRyM1vqxx+hzpbsrQ+ub6r0Kpys4yluFpG2ajSxNET7l2veXyPwIay7PP3IFRR2fz6poLYcofukZ5QxNBONeSdF9Qw= X-Received: by 2002:a05:6808:220c:b0:33a:37f0:602e with SMTP id bd12-20020a056808220c00b0033a37f0602emr6296042oib.88.1659371390509; Mon, 01 Aug 2022 09:29:50 -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:30:51 -0300 Message-ID: Subject: Re: Failover Mode between ether/wlan panics To: Nuno Teixeira Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000483b1d05e5308285" X-Rspamd-Queue-Id: 4LxNrH4kZbz3Vnt X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsd.com.br header.s=capeta header.b=AtxoITL1; dmarc=none; spf=pass (mx1.freebsd.org: domain of lobo@bsd.com.br designates 2607:f8b0:4864:20::22d 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:2607:f8b0: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)[2607:f8b0:4864:20::22d: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:2607:f8b0::/32, 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 --000000000000483b1d05e5308285 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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


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: Detect= ed 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 add= ress: 6c:6a:77:df:09:21
---
and ifconfig shows:
---
re0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> metri= c 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 options=3D8209b<RXCSUM,TXCSU= M,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 me= dia: 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=3D2= 9<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=3D8049<UP,LO= OPBACK,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<PERFORMNU= D,AUTO_LINKLOCAL>
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX= ,MULTICAST> metric 0 mtu 1500
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6c:6a= :77:df:09:21
=C2=A0 =C2=A0 =C2=A0 =C2=A0 inet 192.168.1.74 netmask 0xfff= fff00 broadcast 192.168.1.255
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan=C2=A0 =C2=A0 =C2=A0 =C2=A0 ssid MEO-3637C0 channel 1 (2412 MHz 11g) bssi= d 00:06:91:36:37:c0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 regdomain ETSI country P= T authmode WPA2/802.11i privacy ON
=C2=A0 =C2=A0 =C2=A0 =C2=A0 deftxkey = 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: IEEE 8= 02.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<PERF= ORMNUD,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...
<= /div>

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,<= /div>

I'm trying to setup a failover mode ethernet/w= ireless as shown in https://docs.freebsd.org/en/books/handbook/book/#networking-l= agg-wired-and-wireless and I got a panic.

= /etc/rc.conf:
---
ifconfig_re0=3D"ether <wlan0 = mac address>"
wlans_iwlwifi0=3D"wlan0"
ifconfig_wla= n0=3D"WPA"
create_args_wlan0=3D"country PT"
clone= d_interfaces=3D"lagg0"
ifconfig_lagg0=3D"up laggproto fai= lover 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...

Thank= s in advance,
Nuno Teixeira

Hi.

For this to work, you'll have to clone you= r wifi MAC to your eth MAC.

Your lagg0 interface = is missing.
=
--000000000000483b1d05e5308285--