From nobody Wed Jun 18 08:03:01 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 4bMbpB1lyhz5yPVc; Wed, 18 Jun 2025 08:03:14 +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 4bMbp96pGgz3Wst; Wed, 18 Jun 2025 08:03:13 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; none Received: from hub1.goneo.de (hub1.goneo.de [85.220.129.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 413E8240AA2; Wed, 18 Jun 2025 10:03:12 +0200 (CEST) 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 63FF72405D8; Wed, 18 Jun 2025 10:03:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1750233790; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6dD7otCl9bUdKRuVxpIDsrD/KJakI2k6mYqlgXjEW/c=; b=Q1+dcqHuM7AFHLbuCSQcSUokdxENExj9j7rB8WsRF7XE1P6IJRoAk3ft3NsZi+sZOUQCZF WxE8x6u9bqJAIqauFbGrC9tEH7adoNbtQCVqpVneEhPLjoT/L2HpQuGPiBPiI+DxUIF711 /a3LMVDGODM2fFrxofXPHUoX3FdhlFmCy6BjWts1wjVHWdF7CE5zZwxFQRVb+q5/TlgGcw iWWyFOD/raLePm0NkEY1bl7RAs/BJfCfcy9f23g3DhY28s1HESo3bQngKyHJNCCedmGjNv f2o1ViOqAoIBkBSRZRY6ZkeKHsZ6nWHmTct77y9DowGs2mla+3lqreNR2ho7qA== Received: from freyja (p4fc0a637.dip0.t-ipconnect.de [79.192.166.55]) (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 0CAEE240562; Wed, 18 Jun 2025 10:03:10 +0200 (CEST) Date: Wed, 18 Jun 2025 10:03:01 +0200 From: FreeBSD User To: Lexi Winter Cc: FreeBSD CURRENT , net@freebsd.org Subject: Re: if_bridge(): IPv6 EUI-64 seemingly not working Message-ID: <20250618100301.57af0cd1@freyja> In-Reply-To: References: <20250611072836.2a0b026a@thor.sb211.local> <20250612073301.60bfc7ce@freyja> Organization: Heimstatt X-Mailer: Claws Mail 4.3.0 (GTK 3.24.49; amd64-portbld-freebsd14.3) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-UID: f40a13 X-Rspamd-UID: 951b29 X-Rspamd-Queue-Id: 4bMbp96pGgz3Wst 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] On Tue, 17 Jun 2025 15:52:34 +0100 Lexi Winter wrote: > FreeBSD User: > > net.link.bridge.inherit_mac: 1 > > [...] > > > > 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=1 > 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 Confirmed: this workaround, in rc.conf represented via create_args_brisgeX="ether XX:XX:XX:XX:XX:XX" sets linklocal adress according the inherited/forced MAC address and later on via rtsol set the EUI64 host portion correct as desired (on CURRENT, not workaround needed on recent 14-STABLE, as reported). > > - 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.