From owner-freebsd-questions@freebsd.org Tue Mar 15 21:56:40 2016 Return-Path: Delivered-To: freebsd-questions@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 A6E36AD2546 for ; Tue, 15 Mar 2016 21:56:40 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 86CC0CF2 for ; Tue, 15 Mar 2016 21:56:40 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id EB5A033C28; Tue, 15 Mar 2016 17:56:32 -0400 (EDT) From: Lowell Gilbert To: Guy Harrison Cc: "freebsd-questions\@freebsd.org" Subject: Re: dhcpd, iscsi and a raspberry pi References: <201603151632.14124.gfh@swampdog.co.uk> <56E84CA8.4080603@qeng-ho.org> <4D586A3A-9972-427D-B32D-90806B0C0AB7@thehowies.com> <201603152131.23144.gfh@swampdog.co.uk> Date: Tue, 15 Mar 2016 17:56:32 -0400 In-Reply-To: <201603152131.23144.gfh@swampdog.co.uk> (Guy Harrison's message of "Tue, 15 Mar 2016 21:31:22 +0000") Message-ID: <44egbbiewf.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2016 21:56:40 -0000 Guy Harrison writes: > Hi John, > > On Tuesday 15 March 2016 19:46:26 John Howie wrote: >> Hi Guy, >> >> When the Raspberry Pi boots it will use DHCP several times. The first is >> in UBOOT, and twice when the kernel boots (based on my own observations, >> and configuration). Using Windows Server DHCP Server, I was able to use >> the MAC address to guarantee that the Pi got the same IP address each >> time. Your mileage with ISC-DHCPD may vary. I am no expert with that DHCP >> server so can offer no advice on how to make it work in a similar fashion >> to Windows Server. > > I can achieve a similar result to yourself by editing dhcpd.conf to insert > the MAC.. > > host pi05 { > hardware ethernet b8:27:eb:0f:32:64; > fixed-address pi05.swampdog; > } > > ..and inserting A/PTR forward and reverse records for 'named' so at least > that prevents the dual IP allocation. > > There's always a catch: the background on this is I can't have the pi > hostname tried to the hardware - it needs to follow the sdcard around > iyswim. U-Boot stores the MAC address in its environment. For the (proprietary) boards I work on, I had to patch the U-Boot version of the appropriate Ethernet driver so that it would read the Ethernet address out of an EPROM. > I guess the question now is - how can I achieve the same result but without > needing the above in dhcpd.conf? I thought dhcpd would use MAC address if the client didn't provide anything else. I'll check if I get a chance.