DHCP + DNS

Sten Carlsen stenc at s-carlsen.dk
Mon Mar 4 08:51:36 UTC 2019



On 04/03/2019 04.42, TomK wrote:
> On 3/3/2019 10:37 PM, TomK wrote:
>> Hello,
>>
>> Is there a way to force remote DHCPD servers to assign a different IP
>> to a client with the same MAC everytime dhclient -v is called?  I've
>> tried to configure the following in /etc/dhcp/dhclient.conf file and
>> set the PATH_DHCLIENT_CONF=/etc/dhcp/dhclient.conf; in the current
>> shell in an attempt to induce assignment of unique IP's from the DHCP
>> server:
One way I can think of is this:
for each call to dhclient -v change the host-id before each call, in
this way the dhcp server will see the client as a different device and
assign a so far not used IP.
>>
>> supersede dhcp-lease-time 5;
>> supersede dhcp-rebinding-time 5;
>> supersede dhcp-renewal-time 5;
>>
> > but this had only mixed results, returning unique IP's only some of
> > the time.
> >
> >
>> Or for that matter, change settings on a DHCPD servers to ensure
>> everytime the same client VM requests an IP, it will be given a
>> different IP vs the previous one assigned?
>>
>>
>> I've a unique scenario where I would like to also check the local DNS
>> to determine if any offline hosts are already assigned to an IP and
>> need to cycle through a few to determine that.
>>
>> Currently the DHCPD server servers the same IP or one of two IP's
>> regardless of how many times dhclient -v is called.
>>
>
> Pressed send too soon.  Adjusted the first paragraph.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190304/e9212f40/attachment.html>


More information about the dhcp-users mailing list