From nobody Tue Jun 17 14:52:34 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 4bM8wy3j4Gz5yQsr; Tue, 17 Jun 2025 14:52:34 +0000 (UTC) (envelope-from ivy@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM8wy2nsZz3PXx; Tue, 17 Jun 2025 14:52:34 +0000 (UTC) (envelope-from ivy@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750171954; 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=agn3ZJ7umf3tvbDGdcP+28zrl0oQgsN3ogFZNpnTIpg=; b=O9HT33E83Dlr+itWTlXGF03guWN1cugS7bRdbf0DWurTpGAqUZcs/cAjoBpc5DWYjTIIvU Rlea2EFeHtUDmaaokijsFki5szM0CLUChML4Fq4ocxqCAN4yUAes4v8Dioy8rGPjne9krG qJKHGU6j3ZtBkSYutt885Lyb0uzC7nWRmltTuQRbzeTkePx48SdxNvMbuXYXBq6IXetcSe rYbMdxPcieGTazj5qXcTtNwJAjkyv5bcaQ4me5cfWUIrmqjqIA3p/UhOaOxhR1XmruQmtM GBjec9b4KMdjd9YPBkLMn/t6OMaFxC7trE+/BtqyWPF4Sg6p41MlS9667PQAMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750171954; 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=agn3ZJ7umf3tvbDGdcP+28zrl0oQgsN3ogFZNpnTIpg=; b=XbsKEi2uKWxBUCwBodI+65ck8vi8ZryiacBwHEMKLoSvU6d+Sl1qlt0j+Tja7wA13ek552 4NPAhHjYQVJglcIq14xB1ErHuQI5rM8pvKhSvGZf6k7ONbpvYJUCcf3XJMVwsQmsucIlXs xw/oo3gdBU2P2KCnKgpAfmZftWRK7rP4UU1+uC1OiPhtg0Ov8KgFwj9rSzeMfn5Km6PeH6 NqjcveOxBVMG9s+yyxnWQmDIIgV+H5zf+EoeFkaHiP4KFrUKaKEseeKn+EgXi5vYk9KZMz QcdT/1i9mOMIYyBWLd7jBIP7/W3C7GiofrqS+S1uNc4d46EoLKP2dSfaQShtTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750171954; a=rsa-sha256; cv=none; b=UbkReY6GMSe00brE6yY3iX9NCqSi5oYQwuwccO1TuS/OGMXrClQ7ZbzunzzR12mwKlDfVL bV3hXUginzerq9g+9hBjFfFe3QeweaINPIrnfdu1+FBWrtNoUQLFEJC7c8pnPzUT+f/K8P KcsPKuSmAEOeb24xe2nIqkm0ettbFIRmcg4Ukcc0ZQ61xufMw5vViTA35rm3CSsm9Y6KCM ZHhktacxb88wv/AZRNqFJoE+AMH/NVK2bM8k0iek070T7FoqOX/dFUZzKPFF3F7JRHAZx6 1rDzpffkojchBBqFfFHEYZY4V8YtlocLXHdYWHgpIMVdLZqDqMCy+KjCv4S9pg== Received: by freefall.freebsd.org (Postfix, from userid 1532) id 5531E14BAE; Tue, 17 Jun 2025 14:52:34 +0000 (UTC) Date: Tue, 17 Jun 2025 15:52:34 +0100 From: Lexi Winter To: FreeBSD User Cc: FreeBSD CURRENT , net@freebsd.org Subject: Re: if_bridge(): IPv6 EUI-64 seemingly not working Message-ID: Mail-Followup-To: FreeBSD User , FreeBSD CURRENT , net@freebsd.org 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; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UTexeVv8VMUjII3E" Content-Disposition: inline In-Reply-To: <20250612073301.60bfc7ce@freyja> --UTexeVv8VMUjII3E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 0x6 i was able to reproduce this: # 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 some observations: - i don't think this is caused directly by the member_ifaddrs changes. - 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 - 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. --UTexeVv8VMUjII3E Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaFGBLgAKCRD1nT63mIK/ YLI8AP9hncM2JjVsP1PQd6aF/Vwp7llsEY13rvKeGa5mU4GEbgEAousgOHpwivk3 ObaAsb+xCgwoB8XOU1ELsocfRObGSgo= =eyiL -----END PGP SIGNATURE----- --UTexeVv8VMUjII3E--