<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFCC">
<br>
<br>
<div class="moz-cite-prefix">On 04/03/2019 04.42, TomK wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c9442fb2-d24b-4ef2-53cc-e39261b7bc0f@mdevsys.com">On
3/3/2019 10:37 PM, TomK wrote:
<br>
<blockquote type="cite">Hello,
<br>
<br>
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:
<br>
</blockquote>
</blockquote>
One way I can think of is this:<br>
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.<br>
<blockquote type="cite"
cite="mid:c9442fb2-d24b-4ef2-53cc-e39261b7bc0f@mdevsys.com">
<blockquote type="cite">
<br>
supersede dhcp-lease-time 5;
<br>
supersede dhcp-rebinding-time 5;
<br>
supersede dhcp-renewal-time 5;
<br>
<br>
</blockquote>
> but this had only mixed results, returning unique IP's only
some of
<br>
> the time.
<br>
>
<br>
>
<br>
<blockquote type="cite">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?
<br>
<br>
<br>
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.
<br>
<br>
Currently the DHCPD server servers the same IP or one of two
IP's regardless of how many times dhclient -v is called.
<br>
<br>
</blockquote>
<br>
Pressed send too soon. Adjusted the first paragraph.
<br>
<br>
</blockquote>
<br>
</body>
</html>