From nobody Wed Sep 20 17:53:51 2023 X-Original-To: freebsd-arm@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 4RrR436HRXz4tyHR for ; Wed, 20 Sep 2023 17:54:11 +0000 (UTC) (envelope-from pmh@hausen.com) Received: from mail2.pluspunkthosting.de (mail2.pluspunkthosting.de [217.29.33.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrR423lBBz3GpR for ; Wed, 20 Sep 2023 17:54:10 +0000 (UTC) (envelope-from pmh@hausen.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of pmh@hausen.com designates 217.29.33.228 as permitted sender) smtp.mailfrom=pmh@hausen.com; dmarc=none Received: from smtpclient.apple (87.138.185.145) by mail2.pluspunkthosting.de (Axigen) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA id 29AE8C; Wed, 20 Sep 2023 19:54:02 +0200 From: "Patrick M. Hausen" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Getting a stable MAC address for a RPI CM3+ with ue0 interface Message-Id: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> Date: Wed, 20 Sep 2023 19:53:51 +0200 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.74 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_LONG(-0.94)[-0.940]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:mail2.pluspunkthosting.de]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; R_DKIM_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; BLOCKLISTDE_FAIL(0.00)[87.138.185.145:server fail,217.29.33.228:server fail]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[hausen.com]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4RrR423lBBz3GpR Hi folks, now that 14 is in beta and there are packages (yeah!) I try to reactivate my TuringPi 1 cluster. This little thing is 7 RPI CM3+ with a common power supply, one USB ethernet for each of them and a switch with a gigabit uplink to the outside world. I noticed that the MAC address changes with every reboot, which is more than slightly annoying. I'd like to have the standard RPI MAC address calculated like this for each of my CM3+: 0xb827eb000000 | ( & 0xffffff) Linux does this by default in every distribution I came accross. Isn't this "the way" for RPIs? The problem: whenever I try to set the MAC address via /etc/start_if.ue0: /sbin/ifconfig $1 line b8:27:eb:11:22:33 I lose network connectivity. I found some older discussion (for FreeBSD 11) suggesting to set promisc - that would match my observation that I see DHCP requests coming from the PI (with correct MAC address) and answers from my OPNsense, but the latter do not seem to reach the PI. What is the correct way to get any stable MAC address and why don't we do it like Linux does, which for once is perfectly sensible, IMHO. Kind regards, Patrick