[Dnsmasq-discuss] Can't figure out how to assign static IPv6 addresses to clients

Simon Kelley simon at thekelleys.org.uk
Tue Oct 2 22:09:56 BST 2012


On 02/10/12 21:53, e9hack wrote:
> Am 02.10.2012 21:52, schrieb Simon Kelley:
>> On 02/10/12 14:56, Dan Williams wrote:
>>> So you really want to reconfigure either dnsmasq or radvd to set the
>>> "M" (Managed) flag, which will tell the clients to get their address
>>> from DHCPv6, not generate one from the RA prefix option.
>>
>> Dan is right, and the way to do this in dnsmasq is to define a dhcp-range, and set the
>> global enable-ra flag. That will send RA (for the default route) with the M flag set (no
>> SLAAC address). If you want SLAAC addresses _as_well_ as DHCPv6 assigned ones, add the
>> "slaac" keyword to the dhcp-range. That clears the M flag.
>
> That's wrong. The M flag is for DHCPv6 only. It says nothing about SLAAC. SLAAC is
> available, if a prefix is advertise.
>

I'm going from memory of experiments months ago, but I'm sure that the 
Linux kernel IPv6 autoconfiguration code, at least, does not assign 
SLAAC addresses if it gets RAs with the M bit set.

Simon.



More information about the Dnsmasq-discuss mailing list