From nobody Tue Jun 17 16:57:23 2025 X-Original-To: net@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 4bMCjj757Mz5VbY7; Tue, 17 Jun 2025 16:58:01 +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 4bMCjj4LySz4LnT; Tue, 17 Jun 2025 16:58:01 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; none Received: from hub2.goneo.de (hub2.goneo.de [85.220.129.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 1E133240A05; Tue, 17 Jun 2025 18:57:59 +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 852C2240165; Tue, 17 Jun 2025 18:57:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1750179477; 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=dOhiuC2xogvrMfuHxQO5c11jhl1SbxeTohw4FE1rhV8=; b=lemz/FeIGtHYfzKccB1AsL3HeO3KR5yKHIb5yZ2IYUR5rphtceMd8a1XiSPchEGoQo3CIZ 1Uq4HiPa1ggyM7aI6uNmZZyeQcpB39SWbMhcFErcMaZH24YyOcdIY+O64sC/XgULg3d5PL Bnk83Le1FiZNOwTB1p1C1zfjekoTD7OxOAVcYQc5keXU035KBWBudBA797hGxBlE5WTpnx ewtqimdothzlTn0iotGAF5tIvrpo68H2bC66FBSP2taeUOnk1+lnT6k1iJLpdsYGRXcpz1 yOcuX7uzMOhd5xYS3SNW0HeUvPeXIKM3+cCJp+W5IcyI00ncmCiCavC28PrZ2w== Received: from thor.sb211.local (dynamic-2a02-3100-2e61-4702-9121-a17e-f14b-6ada.310.pool.telefonica.de [IPv6:2a02:3100:2e61:4702:9121:a17e:f14b:6ada]) (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 2AD3F240116; Tue, 17 Jun 2025 18:57:57 +0200 (CEST) Date: Tue, 17 Jun 2025 18:57:23 +0200 From: A FreeBSD User To: Lexi Winter Cc: FreeBSD CURRENT , net@freebsd.org Subject: Re: if_bridge(): IPv6 EUI-64 seemingly not working Message-ID: <20250617185750.55eba7e8@thor.sb211.local> In-Reply-To: References: <20250611072836.2a0b026a@thor.sb211.local> <20250612073301.60bfc7ce@freyja> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/BAg8d4_h4kawfiMgnDe7x81"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: 8dd7b0 X-Rspamd-UID: 033f90 X-Rspamd-Queue-Id: 4bMCjj4LySz4LnT X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE] --Sig_/BAg8d4_h4kawfiMgnDe7x81 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Tage des Herren Tue, 17 Jun 2025 15:52:34 +0100 Lexi Winter schrieb: > FreeBSD User: > > net.link.bridge.inherit_mac: 1 > > [...] > >=20 > > ether 4c:52:62:2b:05:eb > > inet6 fe80::5a9c:fcff:fe00:393a%bridge0 prefixlen 64 scopeid 0x= 6 =20 >=20 > i was able to reproduce this: First of all, thank you very much for checking this. >=20 > # sysctl net.link.bridge.inherit_mac=3D1 > net.link.bridge.inherit_mac: 0 -> 1 > # ifconfig bridge1 create inet6 -ifdisabled auto_linklocal up > # ifconfig bridge1 | egrep 'ether|inet6' > ether 58:9c:fc:10:43:03 > inet6 fe80::5a9c:fcff:fe10:4303%bridge1 prefixlen 64 scopeid 0xa > # ifconfig epair create > epair2a > # ifconfig bridge1 addm epair2a > # ifconfig bridge1 | egrep 'ether|inet6' > ether 02:36:0f:34:6b:0a > inet6 fe80::5a9c:fcff:fe10:4303%bridge1 prefixlen 64 scopeid 0xa >=20 > some observations: >=20 > - i don't think this is caused directly by the member_ifaddrs changes. >=20 > - you can work around the problem by manually setting the bridge link > address when creating it instead of using inherit_mac, i.e.: > ifconfig bridge1 create link 02:00:00:00:00:01 >=20 > - i don't think this is a bug per se, it's more that we simply don't > update the IPv6 lladdr when an interface's MAC address changes. > but i've copied net@ in case anyone else has an opinion on this. I'd dare to disaggree, we have running several recent CURRENT and 14-STABLE= boxes (almost every 2nd day recompiled world/kernel) with very close configuration scheme= s (according to kernel config and NIC/bridge config as far it is possible to say so with re= spect to the different OS and different network addresses). On 14-STABLE with very simil= ar jail configuration I do NOT see this (mis)behaviour of if_bridge().=20 --=20 A FreeBSD user --Sig_/BAg8d4_h4kawfiMgnDe7x81 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCaFGejgAKCRCxzvs8Oqok rxQKAP4wu3mzc457wP1gM3wreYHJukfO0vQmIYu6aOG+aoGi0AEA/DuqcI1JeOMf WF6OYthKizsfniNAwd/lLahbg/75EwY= =6Xx8 -----END PGP SIGNATURE----- --Sig_/BAg8d4_h4kawfiMgnDe7x81--