pi$ ip addr show
If the above shows more than one ip bound to the same device it could be the same issue. If not then this post is useless!
Just in case.. what appeared to be happening was my old BSD dhcpd wasn't handling "clientid" correctly. The pi wasn't passing clientid on boot (1st ip assigned) but once it got booting off the network the pi dhcpcd sent another better formed (with clientid) request (2nd ip assigned). BSD saw both were the same mac address but treated them as distinct. After some time the 1st ip lease expired and there was nothing on the pi that knew to refresh it and BSD might reassign it elsewhere at any time.
An effective (but irritating) way of bypassing the problem was to stop the pi passing "clientid" at all..
Code: Select all
pi$ diff -u /etc/dhcpcd.conf.ORIGINAL /etc/dhcpcd.conf --- /etc/dhcpcd.conf.ORIGINAL 2016-06-15 05:30:26.000000000 +0100 +++ /etc/dhcpcd.conf 2016-06-15 05:30:38.000000000 +0100 @@ -8,7 +8,7 @@ hostname # Use the hardware address of the interface for the Client ID. -clientid +##clientid # or # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361. #duid