[Dnsmasq-discuss] DHCPv6 client DUID

Simon Kelley simon at thekelleys.org.uk
Thu May 14 21:38:29 BST 2015


On 14/05/15 19:43, Suresh Ramamurthy wrote:
> Hi
> 
> I am trying support IPv6 in our product.
> 
> We are using dnsmasq and we wanted to use Stateful DHCPv6. In order to do
> it, I would create a mapping between DUID and IPv6 address in dhcphosts.txt
> on the server that runs dnsmasq. So that when dhcpv6 client request an IP,
> dnsmasq can return the static IP. i tried this in my setup and things
> worked perfectly.
> 
> But, the problem is DUID does not get generated until the VM/host is up.
> So, only choice is to read the DUID once the VM/host is up and then create
> the mapping in dhcphosts.txt file. But, this would delay VM/host getting an
> IP address.
> 
> So, is there is any other way to get the DUID before Vm/host is up or is it
> ok to regenerate it so that we can prepopulate the mapping in dhcphosts.txt
> file.
> 
> Is there any other way to support stateful dhcp.


This is almost a DHCPv6 FAQ. The designers of DHCPv6 ignored a common
use-case of host provisioning when they replaced the MAC address with
the DUID.

The current version of dnsmasq jumps through some nasty hoops to find
the MAC  address of DHCPv6 clients, and therefore allows you to identify
them by MAC address, just like DHCPv4 clients; no nasty DUIDs needed.



Cheers,

Simon.

> 
> thanks
> Suresh
> 
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 




More information about the Dnsmasq-discuss mailing list