From owner-freebsd-arm@freebsd.org Tue Nov 8 21:48:41 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 19D5EC37E0B for ; Tue, 8 Nov 2016 21:48:41 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D32C2876 for ; Tue, 8 Nov 2016 21:48:40 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from fwd21.aul.t-online.de (fwd21.aul.t-online.de [172.20.27.66]) by mailout08.t-online.de (Postfix) with SMTP id 939AA41D008D; Tue, 8 Nov 2016 22:48:31 +0100 (CET) Received: from [192.168.10.43] (SaTXqqZHwhC5NnaWNcPiaZUNoM+efrpD+0vfLTL6FDjNY2S8wh7k28gNst+TiBkZGv@[86.56.56.128]) by fwd21.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1c4EFp-2nv9qy0; Tue, 8 Nov 2016 22:48:29 +0100 Subject: Re: How to change MAC address on RPI-B? To: Hans Petter Selasky , freebsd-arm References: <950d3edd-6b54-4935-ffec-bfcfbd257bb7@t-online.de> From: diffusae Message-ID: <42c16f3e-0419-c23a-adf4-a32d436651ea@t-online.de> Date: Tue, 8 Nov 2016 22:48:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-ID: SaTXqqZHwhC5NnaWNcPiaZUNoM+efrpD+0vfLTL6FDjNY2S8wh7k28gNst+TiBkZGv X-TOI-MSGID: 8024220e-0db5-4b6d-b543-c9158ee77b76 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: Tue, 08 Nov 2016 21:48:41 -0000 Hi, thanks a lot for your reply. I'm not sure, if it's possible to change it in RPI FDT file, but I will give a try: https://www.raspberrypi.org/forums/viewtopic.php?f=72&t=143011 The MAC address isn't stored anywhere. It is generated from a combination of the MAC range (b8:27:eb) and the last three bytes of the serial number. Best regards, On 08.11.2016 22:35, Hans Petter Selasky wrote: > On 11/08/16 22:12, diffusae wrote: >> Hello! >> >> Does anyboy know how to change the MAC address on a Raspberry Pi with >> FreeBSD 11.0-STABLE? >> >> I've tried it this way in /etc/start_if.ue0: >> >> ifconfig ue0 down delete >> ifconfig ue0 promisc >> ifconfig ue0 ether 00:FF:CC:00:11:11 >> >> But it's only possible to do it in promicous mode of the device. >> Without there is no more network connection after applying these >> settings. >> >> It could be properly a bug due to the USB network driver. >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=168268 >> >> Maybe there is another way, how with the Linux kernel command line or an >> config option, like this: smsc95xx.macaddr=00:FF:CC:00:11:11. > > Hi, > > The sys/dev/usb/net/if_smsc.c driver needs a patch to set the mac > address runtime. I think you can change the mac address in the RPI FDT > file and it will pick it up. > > --HPS > >