Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2016 19:46:26 +0000
From:      John Howie <john@thehowies.com>
To:        Arthur Chance <freebsd@qeng-ho.org>, Guy Harrison <gfh@swampdog.co.uk>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: dhcpd, iscsi and a raspberry pi
Message-ID:  <4D586A3A-9972-427D-B32D-90806B0C0AB7@thehowies.com>
In-Reply-To: <56E84CA8.4080603@qeng-ho.org>
References:  <201603151632.14124.gfh@swampdog.co.uk> <56E84BE3.7010009@qeng-ho.org> <56E84CA8.4080603@qeng-ho.org>

index | next in thread | previous in thread | raw e-mail

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.

Regards,

John





On 3/15/16, 10:55 AM, "owner-freebsd-questions@freebsd.org on behalf of Arthur Chance" <owner-freebsd-questions@freebsd.org on behalf of freebsd@qeng-ho.org> wrote:

>On 15/03/2016 17:52, Arthur Chance wrote:
>> On 15/03/2016 16:32, Guy Harrison wrote:
>>>
>>> HI Folks,
>>>
>>> I just wanted to check I'm getting correct behaviour 'cos I'm no expert on 
>>> these things!
>>>
>>> I've built an iscsi enabled kernel for the raspberry pi (aka debian jessie)
>> 
>> You're asking about Debian, a Linux distro, on a FreeBSD mailing list.
>> Not quite as bad as asking about Windows on a Mac OS list, but you'd be
>> much better off find a Debian mailing list to ask on. Try looking here
>> 
>> https://www.debian.org/MailingLists/
>
>Ack, shouldn't be so hasty, just spotted your uname -a below. That 8.2
>is way out of date though. I'll let someone better versed in dhcpd
>handle the rest.
>
>>> and the initrd is obtaining a first IP address then when the kernel proper 
>>> boots a second IP address is obtained. Both are bound to eth0.
>>>
>>> [admin@sdvmf64dns ~/etc]$ dhcpd --version
>>> isc-dhcpd-V3.1.2p1
>>>
>>> [admin@sdvmf64dns ~]$ uname -a
>>> FreeBSD sdvmf64dns.swampdog 8.2-RELEASE-p4 FreeBSD 8.2-RELEASE-p4 #1: Thu 
>>> Oct 27 14:26:36 BST 2011     
>>> root@sdvmf64dns.swampdog:/usr/obj/usr/src/sys/GENERIC  amd64
>>>
>>> The problem is the second IP address is "known" in that 'nslookup' knows the 
>>> pi name and so forth..
>>>
>>> lease 192.168.1.45 {
>>>   starts 4 2016/03/10 14:55:05;
>>>   ends 4 2016/03/10 15:05:05;
>>>   cltt 4 2016/03/10 14:55:05;
>>>   binding state active;
>>>   next binding state free;
>>>   hardware ethernet b8:27:eb:0f:32:64;
>>>   uid "\001\270'\353\0172d";
>>>   set ddns-rev-name = "45.1.168.192.in-addr.arpa";
>>>   set ddns-txt = "318788caec8944734a9e0c2fe418c9db6f";
>>>   set ddns-fwd-name = "pi05.swampdog";
>>>   client-hostname "pi05";
>>> }
>>>
>>> ..whereas the first IP..
>>>
>>> lease 192.168.1.53 {
>>>   starts 3 2016/03/09 14:09:27;
>>>   ends 3 2016/03/09 14:19:27;
>>>   tstp 3 2016/03/09 14:19:27;
>>>   cltt 3 2016/03/09 14:09:27;
>>>   binding state free;
>>>   hardware ethernet b8:27:eb:0f:32:64;
>>> }
>>>
>>> ..only appears the once, on boot. This is the IP address by which the iscsi 
>>> target knows the pi and it expires!
>>>
>>> I was expecting the first *.53 IP to be inherited by the kernel rather than 
>>> it go obtain the second *.45 IP address. Is correct?
>>>
>>> If so, what do I need to be doing to get that to happen?
>>>
>>> I've googled this to death and not encountered this precise problem.
>>>
>>> TIA
>>> Guy
>>>
>>>
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>>>
>> 
>> 
>
>
>-- 
>Moore's Law of Mad Science: Every eighteen months, the minimum IQ
>necessary to destroy the world drops by one point.
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D586A3A-9972-427D-B32D-90806B0C0AB7>