Date: Wed, 20 Sep 2023 11:25:33 -0700 From: Mark Millard <marklmi@yahoo.com> To: "Patrick M. Hausen" <pmh@hausen.com> Cc: freebsd-arm@freebsd.org Subject: Re: Getting a stable MAC address for a RPI CM3+ with ue0 interface Message-ID: <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> In-Reply-To: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 20, 2023, at 10:53, Patrick M. Hausen <pmh@hausen.com> wrote: 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. >=20 > 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+: >=20 > 0xb827eb000000 | (<serial number> & 0xffffff) >=20 > Linux does this by default in every distribution I came accross. > Isn't this "the way" for RPIs? >=20 > The problem: whenever I try to set the MAC address via >=20 > /etc/start_if.ue0: >=20 > /sbin/ifconfig $1 line b8:27:eb:11:22:33 >=20 > 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. >=20 > 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. Quoting a post from a "Raspberry Pi Engineer & Forum Moderator" (PhilE) from https://forums.raspberrypi.com/viewtopic.php?t=3D327562 : QUOTE Re: /boot/cmdline.txt help Thu Jan 13, 2022 8:35 am And on all Pis you can use the config.txt setting "force_mac_address": force_mac_address=3Daa:bb:cc:dd:ee:ff END QUOTE That makes the live dtb match and is the earliest assignment available, before any external visability. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77E70D30-8E7D-42DC-A041-3A783E1C6908>