From nobody Mon Dec 08 08:33:55 2025 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 4dPwJT3H2Zz6KBG2 for ; Mon, 08 Dec 2025 08:34:33 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp5.goneo.de [IPv6:2001:1640:5::8:30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dPwJS3ZNGz485k; Mon, 08 Dec 2025 08:34:32 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=AgfAonBK; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 2001:1640:5::8:30 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de Received: from hub1.goneo.de (hub1.goneo.de [IPv6:2001:1640:5::8:52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id AFB2F240911; Mon, 8 Dec 2025 09:34:24 +0100 (CET) Received: from hub1.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPS id 2417E240453; Mon, 8 Dec 2025 09:34:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1765182863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7spPg+MZQMUNB9nnUZ0cL2EsY7nFRyrMWZZlS69MmPQ=; b=AgfAonBKIq2u9SChEQ2aNXvUa18sK/99AdQXJo78nmPkO253b26SkR3uenSfPJX2jGaxZ2 8mX/MtB9A9+1tzeba7VPniGAqgNhgTADluJRA/0aQUh4k4/RAjWCSLYtf4XiLRFULP4NgO gcFxdwc2x5NYv8Eocu9ibvcXonyBBj3aoRcflOCsUFZEu7KA+ah3A6ORjcSSWhoA0o+BWg M3ORkWNABQgprqKnPfG+a9h7C+VjtMb+UdKImocvSYEQSa4Vchi41DRzsmAo7ffZDmI/GM lLXIax/21/JFI1tBFLC0ymJBF3O9UDGFSNVLfTwIdIUrmrmmkOaUx50hZCwM2Q== Received: from thor.sb211.local (dynamic-2a02-3100-197c-7402-021b-21ff-fe4e-8f4d.310.pool.telefonica.de [IPv6:2a02:3100:197c:7402:21b:21ff:fe4e:8f4d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub1.goneo.de (Postfix) with ESMTPSA id CF24A2402A4; Mon, 8 Dec 2025 09:34:22 +0100 (CET) Date: Mon, 8 Dec 2025 09:33:55 +0100 From: A FreeBSD User To: Ronald Klop Cc: FreeBSD CURRENT , Dag-Erling =?UTF-8?B?U23DuHJncmF2?= Subject: Re: 15-STABLE: dhclient fails on em0 (Lenovo T580) Message-ID: <20251208092705.617ddd01@thor.sb211.local> In-Reply-To: <1485528976.4376.1764845495552@localhost> References: <20251128082630.3dbea678@hermann> <20251128110534.3987f908@hermann> <86fr9yie5u.fsf@ltc.des.dev> <20251201132649.5aef71e8@thor.sb211.local> <86a500hdbu.fsf@ltc.des.dev> <20251203101500.36545493@hermann> <1585113262.3581.1764757070010@localhost> <20251203113526.398dfc6c@thor.sb211.local> <1485528976.4376.1764845495552@localhost> X-Mailer: Claws Mail 3.21.0 (GTK+ 2.24.33; amd64-portbld-freebsd16.0) 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 Content-Type: multipart/signed; boundary="Sig_/MSNdpLs507739eiH4TG9uIf"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: c8a7f3 X-Rspamd-UID: ffcd95 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.68 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.983]; R_SPF_ALLOW(-0.20)[+ip6:2001:1640:5::8:0/112]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; RCVD_IN_DNSWL_LOW(-0.10)[2001:1640:5::8:30:from]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:25394, ipnet:2001:1640::/32, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4dPwJS3ZNGz485k --Sig_/MSNdpLs507739eiH4TG9uIf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Tage des Herren Thu, 4 Dec 2025 11:51:35 +0100 (CET) Ronald Klop schrieb: Hello, > Hi, >=20 > You have dhcp6c configured on a lagg0 interface, and the lagg0 interface = is created, but not > configured anywhere in your configuration. But your problem is about IPv4= and not IPv6. So > it might not be related. But it makes me wonder about your config. that shouldn't have any impact on IPv4 on em0 and/or wlan0. lagg0 is unused and a remnant from a prior used configuration aggregating e= m0 and wlan0 using alternatively LAN and WiFi. This worked with if_iwm, but diesn't with if_iw= lwifi - or doesn't work with 15 at all. It is unuse, but present ...=20 >=20 > I can't find in your log messages that dhclient is ever started. Me neither. But setting SYNCDHCP with the desired NIC solves - for now - th= e problem. Alternatively, setting 'synchronous_dhclient=3D"YES" ' does the same. On the console, I see a lot of UP and DOWN of the NIC (especially em0 with = my home switch), I see this with several switches at work, too, but there are other switches w= hich do not flap like hell. Maybe this is something worth to note herein. Some switches may = have some issues with negotiating the correct uplink speed, but at that point I can not fath= om why also OpenWRT based APs show the very same symptomes sometimes. Maybe this observation sh= ows some deeper issues ... > Can you try to configure ifconfig_em0=3D"SYNCDHCP" instead of "DHCP"? Tha= t should start > dhclient earlier and wait for the IP and must give output of dhclient. Pl= ease reply with the > console log output of that boot run. >=20 > To me your configuration looks really messy, so I'm sorry that I can't re= ally help you any > further. I can't easily figure out what you configured and what is still = the default. My > advice would be to remove all the defaults from your /etc/rc.conf and onl= y keep lines that > actually configure something. Well, apity, but my rc.conf is a straight forward copy of defaults/rc.conf = with changes according to my necessities at the bureau/lab. I can not memorize all tags = withing rc.conf, so having them in straight and plain sight is sometimes very convenient to ada= pt to new situations. I do not know how you folks proceed in such situations, any ide= a making life easier is welcome. As mentioned prior in this thread, I do a regular "sdiff " even when changi= ng minor versions. >=20 > I hope you figure out the issue some day. Thank you very much, your help was/is much appreciated!=20 >=20 > Regards, > Ronald. Kind regards, oh >=20 >=20 > =20 > Van: A FreeBSD User > Datum: woensdag, 3 december 2025 11:34 > Aan: Ronald Klop > CC: FreeBSD CURRENT , "Dag-Erling Sm=C3=B8rg= rav" > Onderwerp: Re: 15-STABLE: dhclient fails on em0 (Lenovo T580) > >=20 > > Am Tage des Herren Wed, 3 Dec 2025 11:17:50 +0100 (CET) > > Ronald Klop schrieb: > > =20 > > > Hi, > > > > > > Did you copy /etc/defaults/rc.conf to /etc/rc.conf? =20 > >=20 > > Yes, I do, since I change things on an experimental basis quite often. > >=20 > > That never induced any issue in the last decades using this kind of app= roach. Each variable > > set in defaults/rc.conf should be cleanly overriden via rc.conf and rc.= conf.local, > > shouldn't it? The only possible issue I could imagine is the order vari= ables appear and > > being processed by rc.subr and siblings ... or am I wrong? > >=20 > > Kind regards, > > oh =20 > > > > > > AFAIK, the idea is to only override settings from /etc/defaults/rc.co= nf in /etc/rc.conf. > > > My rc.conf is usually just 10 or 20 lines. Some network config and en= abling some > > > services. Like what you have in /etc/rc.conf.local. > > > > > > Regards, > > > Ronald. > > > > > > =20 > > > Van: FreeBSD User > > > Datum: woensdag, 3 december 2025 10:15 > > > Aan: "Dag-Erling Sm=C3=B8rgrav" > > > CC: FreeBSD CURRENT > > > Onderwerp: Re: 15-STABLE: dhclient fails on em0 (Lenovo T580) =20 > > > > > > > > On Tue, 02 Dec 2025 20:51:33 +0100 > > > > Dag-Erling Sm=C3=B8rgrav wrote: > > > > =20 > > > > > A FreeBSD User writes: =20 > > > > > > Dag-Erling Sm=C3=B8rgrav writes: =20 > > > > > > > As a workaround, add this to /boot/loader.conf: > > > > > > > > > > > > > > net.inet.ip.fw.default_to_accept=3D"1" =20 > > > > > > the above "trick" doesn't help. =20 > > > > > > > > > > This is concerning. > > > > > > > > > > The fact that `dhclient em0` works after the firewall is up prove= s that > > > > > the firewall rules themselves are not the issue. I therefore ass= umed > > > > > that the problem was that dhclient was trying to acquire a lease = before > > > > > the firewall was configured. Switching default_to_accept on shou= ld have > > > > > made that possible. The fact that it doesn't means the firewall = isn't > > > > > to blame at all. Something else is causing dhclient not to run a= t boot. > > > > > > > > > > Could you please provide the output from the following command: > > > > > > > > > > grep -r '^[^#]' /etc/rc.conf* > > > > > > > > > > Could you please also provide a log of the boot messages, if poss= ible? > > > > > > > > > > DES =20 > > > > > > > > Having had a feeling that statically compiling in FIREWALL (ipw) su= pport into > > > > my kernel, I tested by excluding the appropritae lines and adding t= he > > > > /boot/loader.conf.local line again allow packets by default. Result= is the very > > > > same. > > > > > > > > Attached you'll find the requested files. > > > > > > > > A side note: I do etcupdate on a regular basis on all of the mainta= ined boxes. > > > > > > > > Kind regards, > > > > > > > > oh > > > > > > > > > > > > > > > > =20 > > > > > > =20 > >=20 > >=20 > >=20 > > --=20 > >=20 > > A FreeBSD user > >=20 > >=20 > >=20 > > =20 >=20 > =20 --=20 A FreeBSD user --Sig_/MSNdpLs507739eiH4TG9uIf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCaTaNjgAKCRCxzvs8Oqok r53MAP0a4diS7emXBc0cje/xEeKboWURwbtrPfRZCAKKmmygnQEA/sQoFsdXaRBH /cKGkA25a16HAA2UikvxxhlmPqg7Fwk= =wqQJ -----END PGP SIGNATURE----- --Sig_/MSNdpLs507739eiH4TG9uIf--