Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2016 16:32:13 +0000
From:      Guy Harrison <gfh@swampdog.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   dhcpd, iscsi and a raspberry pi
Message-ID:  <201603151632.14124.gfh@swampdog.co.uk>

next in thread | raw e-mail | index | archive | help

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) 
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603151632.14124.gfh>