Web lists-archives.com

Re: strange DHCP behaviour




On 24/10/2018 12:54, mick crane wrote:
> On 2018-10-24 11:39, tony wrote:
>> On 24/10/2018 12:11, mick crane wrote:
>>> On 2018-10-24 09:40, tony wrote:
>>>
>>>> I've flushed the lease several times (The dhclient -r command mentioned
>>>> above does that), and physically deleted the lease files.  No good!
>>>>
>>>
>>> Isn't that on the laptop and you need to get rid of the entry on the
>>> server ?
>>>
>>> mick
>>>
>>>
>> Well, it's the client that's requesting it; the server's just complying.
>>
> 
> why would client request a fixed ipaddress from dhcp server ?
> sure it's the server you need to flush.
> I could have a look on mine to see how in terminal but I want to make
> some sausage rolls.
> 

I have no idea, but it complies with the documentation. The client
should request a renewal of its existing lease, which the server will
acknowledge with DHCPACK if OK or a DHCPNAK if not. If the latter, then
the client should do a DHCPDISCOVER.

this is confirmed by the server log:
------------------------------------------------------------------
Oct 24 12:52:04 router-pi dhcpd[1068]: DHCPREQUEST for 192.168.1.254
from 0c:60:76:6c:e6:6f (tony-lt) via eth0
Oct 24 12:52:04 router-pi dhcpd[1068]: DHCPACK on 192.168.1.254 to
0c:60:76:6c:e6:6f via eth0
Oct 24 12:52:24 router-pi dhcpd[1068]: DHCPREQUEST for 192.168.1.244
from f4:81:39:82:53:c4 via eth0
Oct 24 12:52:24 router-pi dhcpd[1068]: DHCPACK on 192.168.1.244 to
f4:81:39:82:53:c4 via eth0
Oct 24 12:52:32 router-pi dhcpd[1068]: DHCPREQUEST for 192.168.1.254
from 0c:60:76:6c:e6:6f via eth0
Oct 24 12:52:32 router-pi dhcpd[1068]: DHCPACK on 192.168.1.254 to
0c:60:76:6c:e6:6f (tony-lt) via eth0
Oct 24 12:52:41 router-pi dhcpd[1068]: reuse_lease: lease age 9 (secs)
under 25% threshold, reply with unaltered, existing lease for 192.168.1.254
Oct 24 12:52:41 router-pi dhcpd[1068]: DHCPREQUEST for 192.168.1.254
from 0c:60:76:6c:e6:6f (tony-lt) via eth0
Oct 24 12:52:41 router-pi dhcpd[1068]: DHCPACK on 192.168.1.254 to
0c:60:76:6c:e6:6f (tony-lt) via eth0
------------------------------------------------------------------

Enjoy your sausage rolls!

Cheers, Tony