<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Simon,</div><div><br></div><div>Thanks for your quick response. I will test it and get back to you if I have any questions...</div><div><br></div><div>thanks,</div><div>Suresh</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 14 May 2015 21:38:29 +0100<br>
From: Simon Kelley <<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>><br>
To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Subject: Re: [Dnsmasq-discuss] DHCPv6 client DUID<br>
Message-ID: <<a href="mailto:555507C5.9060205@thekelleys.org.uk">555507C5.9060205@thekelleys.org.uk</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
On 14/05/15 19:43, Suresh Ramamurthy wrote:<br>
> Hi<br>
><br>
> I am trying support IPv6 in our product.<br>
><br>
> We are using dnsmasq and we wanted to use Stateful DHCPv6. In order to do<br>
> it, I would create a mapping between DUID and IPv6 address in dhcphosts.txt<br>
> on the server that runs dnsmasq. So that when dhcpv6 client request an IP,<br>
> dnsmasq can return the static IP. i tried this in my setup and things<br>
> worked perfectly.<br>
><br>
> But, the problem is DUID does not get generated until the VM/host is up.<br>
> So, only choice is to read the DUID once the VM/host is up and then create<br>
> the mapping in dhcphosts.txt file. But, this would delay VM/host getting an<br>
> IP address.<br>
><br>
> So, is there is any other way to get the DUID before Vm/host is up or is it<br>
> ok to regenerate it so that we can prepopulate the mapping in dhcphosts.txt<br>
> file.<br>
><br>
> Is there any other way to support stateful dhcp.<br>
<br>
<br>
This is almost a DHCPv6 FAQ. The designers of DHCPv6 ignored a common<br>
use-case of host provisioning when they replaced the MAC address with<br>
the DUID.<br>
<br>
The current version of dnsmasq jumps through some nasty hoops to find<br>
the MAC  address of DHCPv6 clients, and therefore allows you to identify<br>
them by MAC address, just like DHCPv4 clients; no nasty DUIDs needed.<br>
<br>
<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
><br>
> thanks<br>
> Suresh<br>
><br>
></blockquote></div></div></div>