[Dnsmasq-discuss] Win7 does not lease an IPv6-Address

Simon Kelley simon at thekelleys.org.uk
Sun Feb 19 20:39:46 GMT 2012


On 19/02/12 13:39, Conrad Kostecki wrote:

>>  [...]
>>
> Hello Simon,
> so do I need to use radvd simultaneously with dnsmasq, in order to get
> stateful dhcpv6?

Yes, it seems you do.

> I've now enabled it and some sort of success. Both options
> (AdvManagedFlag, AdvOtherConfigFlag) are enabled.
> My Win7 gets an IPv6-Address and a DNS-Server for ipv6, but not an
> gateway. I guess, I need a correct option6 for gateway, but I don't know
> how to name it. Where can I find those option names, as I was using
> numbers for ipv4 (like 3 for gateway, or 40 for dns-domain-name).

My understanding is that the gateway comes from the router
advertisements, so it's a radvd thing. There is no DHCPv6 option for
default gateway.

I'm seriously considering adding RA functionality to dnsmasq: just
enough to allow DHCP to work. That should make this sort of thing easier.

You can get a list of all the DHCPv4 options that dnsmasq knows about with

dnsmasq -w dhcp

and the same for DHCPv6 options with

dnsmasq -w dhcp6

The numbers are not the same for DHCPv4 and DHCPv6

> 
> So far, i've only set:
> dhcp-option=option6:dns-server,[2a01:AAA:BBB:0::1],[2001:4860:4860::8888]
> dhcp-option=option6:ntp-server,[2a01:AAA:BBB:0::1]
> 
> I've also some troubles with setting static dhcpv6. For my
> understanding, I've so set set instead the mac address and duid, but it
> seems ignores for me with this line:
> dhcp-host=00:01:00:01:15:E9:74:8C:XX:XX:XX:XX:XX:XX,2a01:AAA:BBB:0::2,Valkyrie

You are giving a (very long) MAC address there, to set the DUID, you
need to precede it with "id:", so this should be

dhcp-host=id:00:01:00:01:15:E9:74:8C:XX:XX:XX:XX:XX:XX,2a01:AAA:BBB:0::2,Valkyrie
          ^^^

HTH


Simon.






More information about the Dnsmasq-discuss mailing list