Re: [Dnsmasq-discuss] Dnsmasq-discuss Digest, Vol 120, Issue 14

2015-05-15 Thread Suresh Ramamurthy
Hi Simon,

Thanks for your quick response. I will test it and get back to you if I
have any questions...

thanks,
Suresh


>
> --
>
> Message: 5
> Date: Thu, 14 May 2015 21:38:29 +0100
> From: Simon Kelley 
> To: dnsmasq-discuss@lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] DHCPv6 client DUID
> Message-ID: <07c5.9060...@thekelleys.org.uk>
> Content-Type: text/plain; charset=windows-1252
>
> 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@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] DHCPv6 client DUID

2015-05-14 Thread Suresh Ramamurthy
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.

thanks
Suresh
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss