[Dnsmasq-discuss] dnsmasq with dhcpv6 and dhcp-host option

Sheng Yang sheng at yasker.org
Tue Jan 29 03:00:32 GMT 2013


On Sun, Jan 27, 2013 at 9:39 AM, Gene Czarcinski <gene at czarc.net> wrote:
> On 01/14/2013 01:35 PM, Sheng Yang wrote:
>
> On Mon, Jan 14, 2013 at 9:49 AM, Sheng Yang <sheng at yasker.org> wrote:
>>
>> Hi Simon,
>>
>> Thank you for help! It's the problem!
>>
>> However, after I correct this one, dnsmasq still failed to hand out IP
>> address, using dhcp-host entry.
>>
>> The config here:
>> dhcp-range=fc00:1234:5678:1234::1,static
>>
>> dhcp-host=00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a,fred,[fc00:1234:5678:1234::144],test,infinte
>> enable-ra
>>
>
> Thank you! I found the problem. dhcp-host should be:
>
> dhcp-host=id:00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a,fred,[fc00:1234:5678:1234::144],test,infinte
>
> missing the id option...
>
> And if your client such as dhclient starts from scratch such as might happen
> after installing a new system, you will find that the id will be different
> ... related but different .. and both will be related to the MAC address but
> not in a predictable way.

I suppose you're talking about DUID-LLT, which based on link level
address(MAC) and timestamp.

If you use dhclient > 4.2, you should able to use dhclient -D option,
to choose DUID-LL rather than LLT, which can be decided by MAC alone.

Though I haven't found a system shipped with dhclient > 4.2, except
Ubuntu 12.10...

See http://tools.ietf.org/html/rfc3315#page-22

--Sheng
>
> I have also tried using the host name for DHCPv6 fixed IPv6 address and that
> does not work any better.  Once you get them working, they will continue to
> work until something changes and you have to manually sync them again.
> Frustrating.
>
> Gene
>
> _______________________________________________
> 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