From nobody Thu Jun 5 21:11:08 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 4bCxvy1yj9z5yNtc for ; Thu, 05 Jun 2025 21:11:42 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp052.goneo.de [85.220.129.60]) (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 4bCxvw5brKz3syC; Thu, 05 Jun 2025 21:11:40 +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=p0xoBlle; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 85.220.129.60 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de; dmarc=none Received: from hub2.goneo.de (hub2.goneo.de [IPv6:2001:1640:5::8:53]) (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 D3B292405B9; Thu, 5 Jun 2025 23:11:38 +0200 (CEST) Received: from hub2.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 hub2.goneo.de (Postfix) with ESMTPS id 00E9E240239; Thu, 5 Jun 2025 23:11:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1749157897; 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=1NGh4AzOT0DVZW9vf5OL1mIAo/QlrXi/50RLbHNj860=; b=p0xoBlleJKhmNYr3yrb9Mm66DI7+DJyIOZzLfCOMhEWGUx+1ekOSsCEc7/ckoaL99kADox aAxB5ph3laysfeg30GhuPt5x/+T1UQRWG67pt+H8mCWiJ6M5xfMlczQ8UFPeWCTIhcVlMv qAbqScd/Sd9cLhEX1wJ6srcj5WJ5hD9FUie+It+vbzfOw9SEp/32E6r/ElARi+2cFvLqtX kK8CQBebuAe37OFy9RNM3o5M0twjLLbbLMYzeQb8lpxFBnhpTJH/OEwgCLhwbSpQVkORMW rqK6gh8ni6YubFF7yIicn0mJZ62lwwWSp0pUa4Xm16dcIK/ZWvS1W148zkm8UA== Received: from thor.sb211.local (dynamic-2a02-3100-2235-4d02-a5ac-ff87-0aec-1470.310.pool.telefonica.de [IPv6:2a02:3100:2235:4d02:a5ac:ff87:aec:1470]) (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 hub2.goneo.de (Postfix) with ESMTPSA id 7C7B02402EF; Thu, 5 Jun 2025 23:11:36 +0200 (CEST) Date: Thu, 5 Jun 2025 23:11:08 +0200 From: A FreeBSD User To: Lexi Winter Cc: "Patrick M. Hausen" , Kristof Provost , Marek Zarychta , Alexander Leidinger , rgrimes@freebsd.org, FreeBSD CURRENT Subject: Re: CURRENT: can not add device to bridge: ifconfig: BRDGADD igb0: Invalid argument Message-ID: <20250605231047.18882177@thor.sb211.local> In-Reply-To: References: <20250518180658.2e58d55a@thor.sb211.local> <192c8e37-4a85-4916-9986-0a556333a527@plan-b.pwste.edu.pl> <20250518182404.3a760da9@thor.sb211.local> <1ca30cdfb783848eafce24b77f10c0a5@Leidinger.net> <310d460a-d372-47c8-8275-2908bb8417ad@plan-b.pwste.edu.pl> <7A4E0DDE-77F7-4CDC-8C52-BE938298E105@FreeBSD.org> <20250520112428.3de8301e@thor.sb211.local> 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_/WyeTbJ3iKOgPKNsfF4x_Jy5"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: 699e39 X-Rspamd-UID: 90aaa6 X-Spamd-Result: default: False [-0.17 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; NEURAL_SPAM_SHORT(0.88)[0.876]; NEURAL_SPAM_LONG(0.66)[0.660]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:85.220.129.0/25]; RCVD_IN_DNSWL_LOW(-0.10)[85.220.129.60:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4bCxvw5brKz3syC X-Spamd-Bar: / --Sig_/WyeTbJ3iKOgPKNsfF4x_Jy5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Tage des Herren Tue, 20 May 2025 23:30:24 +0100 Lexi Winter schrieb: > A FreeBSD User: > > I need a IPv6 prefix on bridge0. With the "wrong/faulty" concept I > > simply used=20 > >=20 > > rtsold_flags=3D"-iu igb0" > >=20 > > within /etc/rc.conf. Changing this line to > > rtsold_flags=3D"-iu bridge0" while bridge0 is up and running doesn't wo= rk, neither does > > "rtsol bridge0" show any results. =20 >=20 > unfortunately, i cannot reproduce this. I can - as long I use the recent rc scripts of the system! >=20 > test1# ifconfig bridge0 create > test1# ifconfig bridge0 inet6 -ifdisabled auto_linklocal accept_rtadv add= m epair2b up > test1# rtsol bridge0 > test1# ifconfig bridge0 > bridge0: flags=3D1008843= metric 0 mtu 1500 > options=3D0 > ether ea:1f:5d:1b:70:9d > inet6 fe80::e81f:5dff:fe1b:709d%bridge0/64 scopeid 0xc > inet6 2001:db8:100:0:e81f:5dff:fe1b:709d/64 autoconf pltime 604800 vltim= e 2592000 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: epair2b flags=3D143 > ifmaxaddr 0 port 11 priority 128 path cost 2000 > groups: bridge > nd6 options=3D23 > test1# Performing things manually on CLI works as expected, but there are some odd= s when using rc.conf for persistent configuration. But I managed! Avoiding dedicated "ifconfig_bridgeXXXX=3Daddm igb0 ..." cloned_interfaces=3D"bridge0 bridge1 tap0" autobridge_bridge0=3D"igb0" autobridge_bridge1=3D"igb1" ifconfig_bridge0=3D"inet ..." ifconfig_bridge0_ipv6=3D"inet6 ..." ifconfig_igb0=3D"up" ifconfig_igb1=3D"up" >=20 > note that there is an existing, unrelated bug[0] where the bridge will > not correctly set auto_linklocal and accept_rtadv by default, so you > need to do this explicitly. >=20 > if that isn't the issue, can you please show the output of=20 > % ifconfig bridge0 > prior to running rtsol? >=20 > also, i understand from your other post that you need a specific > MAC address on the bridge to get the right SLAAC IP address. > in that case, you will need to either change the lladdr of the > bridge, or set net.link.bridge.inherit_mac=3D1 to make the bridge > inherit the address of the first member. And here I face a problem (from a simple user/administrators point of view): Using autobridge_XXX as mentioned above. Setting net.link.bridge.inherit_mac=3D1 (also in /etc/sysctl.conf). The bri= dge's MAC is then set to the last element in the list (tap2 in the example following) autobridge_bridge0=3D"igb0 tap0 tap1 tap2" which is not mentioned anywhere. Having finally managed to set the correct MAC address of the bridge ("ether= ...."), the host portion of the IPv6 address fetched via rtsol DOES NOT contain th= e correct MAC address (at least in my case). autobridge_bridge0=3D"igb0" with et.link.bridge.inherit_mac=3D1 set the bri= dge should inherit the physical NICs MAC (which the bridge does), but after the jail rc startup sc= ripts starting adding the epairX interfaces, the bridge then fetches an IPv6 host address = which does not contain the MAC address! This is weird. A bug or something I missed? >=20 > [0] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254445 --=20 A FreeBSD user --Sig_/WyeTbJ3iKOgPKNsfF4x_Jy5 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCaEIIBwAKCRCxzvs8Oqok r1iEAQCXh/XESfz5cMova59wonnwnDyxJIyaJPSrwjcL/Tnd9QD7BbzrQZm2we/i iIAbuYxQ9+tIwt6q+nBatcsVOy3siQY= =SvVd -----END PGP SIGNATURE----- --Sig_/WyeTbJ3iKOgPKNsfF4x_Jy5--