Date: Tue, 15 Mar 2016 17:56:32 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Guy Harrison <gfh@swampdog.co.uk> Cc: "freebsd-questions\@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: dhcpd, iscsi and a raspberry pi Message-ID: <44egbbiewf.fsf@be-well.ilk.org> In-Reply-To: <201603152131.23144.gfh@swampdog.co.uk> (Guy Harrison's message of "Tue, 15 Mar 2016 21:31:22 %2B0000") 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Guy Harrison <gfh@swampdog.co.uk> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44egbbiewf.fsf>