[Dnsmasq-discuss] Specify IPv6 address failed in dnsmasq 2.66

Simon Kelley simon at thekelleys.org.uk
Mon May 20 15:17:04 BST 2013

On 16/05/13 12:24, Da Zhao Y Yu wrote:
> Hi,
> I have one trouble about dnsmasq server to assign one IPv6 address for
> deployed vm instance. I hope the dnsmasq server can assign one specific
> IPv6 address(in dhcp-range) to my deployed VM instance, but always failed,
> so who can give me one example about it, or give me some help about it,
> thanks very much!
> My env as below:
> In my host(dnsmasq server 2.66), I have one nic card info called "
> tap02f9640d-a7", and this info as below:
> tap02f9640d-a7 Link encap:Ethernet  HWaddr f2:db:7e:b3:e8:06
>            inet addr:  Bcast:  Mask:
>            inet6 addr: fe80::f0db:7eff:feb3:e806/64 Scope:Link
>            inet6 addr: 2001:db8:dead:beef::2/64 Scope:Global
>            RX packets:1599 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:880 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:0
>            RX bytes:216705 (216.7 KB)  TX bytes:137894 (137.8 KB)
> In /etc/dnsmasq.conf, I have added these options:
> dhcp-range=2001:db8:dead:beef::1, 2001:db8:dead:beef::1000, ra-names or
> dhcp-range=2001:db8:dead:beef::1,2001:db8:dead:beef::1000, slaac
> dhcp-host=openstack,[2001:db8:dead:beef::1]
> dhcp-sequential-ip
> enable-ra
> After this, I run dnsmasq server by "sudo /usr/sbin/dnsmasq -d
> --interface=tap02f9640d-a7 --conf-file=/etc/dnsmasq.conf", the instance
> will be allocated one IPv6 address (2001:db8:dead:beef:f816:3eff:fe19:963a
> ), but this IPv6 address is not in dhcp-range, the ipv6 address should be
> as like 2001:db8:dead:beef:[1-100], it also my hope.
> Simon, can you give me some help about it? thanks in advance.
> Thanks&  Best Regards
> Yu Da Zhao(于大钊)
> --------------------------------------------------

It looks like the client is getting an address using router
advertisements, not DHCPv6. Check the client configuration, and try to
enable DHCP for IPv6. Router advertisements only control the prefix, and
not the actual address allocated, that's selected by the client.



More information about the Dnsmasq-discuss mailing list