From owner-freebsd-arm@freebsd.org Sat Nov 12 14:45:59 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 B11F1C3D1DA for ; Sat, 12 Nov 2016 14:45:59 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) (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 78173184D for ; Sat, 12 Nov 2016 14:45:59 +0000 (UTC) (envelope-from punasipuli@t-online.de) Received: from fwd03.aul.t-online.de (fwd03.aul.t-online.de [172.20.27.148]) by mailout02.t-online.de (Postfix) with SMTP id CBE3641A2436 for ; Sat, 12 Nov 2016 15:45:50 +0100 (CET) Received: from [192.168.10.43] (ZYfGOyZf8h80qHXqKJuHKGStUoRrU6X0N4jemgnxfd0Y4v6L33MjTUvtiWiV89kQ7Y@[86.56.56.128]) by fwd03.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1c5ZZ0-2b3QyO0; Sat, 12 Nov 2016 15:45:50 +0100 Subject: Re: How to change MAC address on RPI-B? References: <001301d23cd9$5775bf70$06613e50$@Kitz@xs4all.nl> To: freebsd-arm@freebsd.org From: diffusae Message-ID: Date: Sat, 12 Nov 2016 15:45:49 +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: <001301d23cd9$5775bf70$06613e50$@Kitz@xs4all.nl> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ID: ZYfGOyZf8h80qHXqKJuHKGStUoRrU6X0N4jemgnxfd0Y4v6L33MjTUvtiWiV89kQ7Y X-TOI-MSGID: 3b58be16-1611-4465-9214-7c7ca351b287 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: Sat, 12 Nov 2016 14:45:59 -0000 Hi John, thanks a lot for you reply On 12.11.2016 12:38, John W. Kitz wrote: > "I've tried it this way in /etc/start_if.ue0: /etc/start_if.ue0 will be launched before the interface is up, so ifconfig up is done by the boot process. The only message I get at boot in this stage is: ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address smsc0: chip 0xec00, rev. 0002 ue0: link state changed to DOWN ue0: link state changed to UP I also cannot change the MAC at runtime without loosing network connection. > Hence my question shouldn't you also use "ifconfig ue0 up" at the end in the > example you supplied (see above). There is no network connection, also if I supplied the ifconfig command on the CLI. > "How-To-Repeat: /etc/rc.conf > ifconfig_re0="inet 192.168.0.2/24" > ifconfig_re0_alias0="ether 00:02:1a:2b:3c:4d" That's another way you can set the MAC in /etc/rc.conf > Did you try this command-by-command through the CLI and have the output of > that? Yes, but I can't use alias or add parameter with the ether, lladdr or link options. Than it says: ifconfig: ether: bad value. But I've also tried this settings in /etc/rc.conf and it doesn't work. Regards, Reiner