From owner-freebsd-arm@freebsd.org Fri Nov 11 11:54:25 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28C83C3B70C for ; Fri, 11 Nov 2016 11:54:25 +0000 (UTC) (envelope-from John.Kitz@xs4all.nl) Received: from lb3-smtp-cloud2.xs4all.net (lb3-smtp-cloud2.xs4all.net [194.109.24.29]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "*.xs4all.nl", Issuer "GlobalSign Domain Validation CA - SHA256 - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B686312F7 for ; Fri, 11 Nov 2016 11:54:23 +0000 (UTC) (envelope-from John.Kitz@xs4all.nl) Received: from picard ([82.95.89.208]) by smtp-cloud2.xs4all.net with ESMTP id 6bt91u00R4VixDu01btB3o; Fri, 11 Nov 2016 12:53:11 +0100 Reply-To: From: "John W. Kitz" To: References: <000001d23a85$47646970$d62d3c50$@Kitz@xs4all.nl> <000001d23ad6$fce27e80$f6a77b80$@Kitz@xs4all.nl> In-Reply-To: Subject: RE: How to change MAC address on RPI-B? Date: Fri, 11 Nov 2016 12:53:13 +0100 Message-ID: <000601d23c12$2fa70ac0$8ef52040$@Kitz@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdI7dZodVLbUwpF4QDG03tEj8dOMUgAmPAeg Content-Language: en-us X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 11:54:25 -0000 Reiner, I've tried both, but not at the same time. To override the burned-in MAC at bootime doesn't work on FreeBSD. It works on Linux, but only the promiscuous mode works as aspected with the FreeBSD RPi build. > JKi: Doesn't that depend on the sequence of events at boot time? I don't think so. The serial number is hard-coded on the RPi. As I know, you could change it, but with a parameter in CONFIG.TXT it doesn't work. That's also the reason, why I like to change it. I have used a RPI with a faulty power connector and suddenly the MAC address was changing after reboot (this happens only once). JKi: Again since I don't have a Pi at my disposal and since I don't have any prior experience with one, I'm not in a position to argue this. But are you implying that if one has two or more Pi's attached to one network(segment) there is a, albeit slim, chance that a situation would occur in which two or more of these Pi's would end up having the same MAC address resulting in duplicate MAC addresses on the same LAN? Obviously Pi's are a cheap platform, not designed for professional use, but this would seem very awkward and unlikely to me. In addition you mentioned in one of your emails that the Organizationally Unique Identifier (OUI) or in short vendor portion of the MAC address used by a Pi is b8:27:eb providing for MAC addresses ranging from b8-27-eb-00-00-00 up to and including b8-27-eb-FF-FF-FF. Yet you mention, or at least that is my understanding of what you wrote, that Pi's use some algorithm to determine the last portion of the MAC address based on the Pi's serial number, which doesn't always yield the same result on one and the same Pi? > JKi: I'm curious, are you just in the process of confirming that it > can be done or do you actually have some purpose for this and if yes, what is it? I've look into the FDT file with dtc and found the following string: mac-address = [00 00 00 00 00 00]; So, I guess it should be possible to change it. I tried it and the the auto configuration of the MAC remains. Maybe I've done something wrong. https://wiki.freebsd.org/FlattenedDeviceTree#How_to_convert_a_platform_to_FD T JKi: As mentioned before I don't have a Pi at my disposal and I don't have any prior experience with one, so I have nothing to add to this last portion of your post. Regards, Jk.