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

Da Zhao Y Yu dzyu at cn.ibm.com
Thu May 16 12:24:31 BST 2013


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:10.0.3.2  Bcast:10.0.3.255  Mask:255.255.255.0
          inet6 addr: fe80::f0db:7eff:feb3:e806/64 Scope:Link
          inet6 addr: 2001:db8:dead:beef::2/64 Scope:Global
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          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(于大钊)
--------------------------------------------------
Active Energy Manager Development
China Systems & Technology Laboratory in Beijing
Email: dzyu at cn.ibm.com
Tel:   (86)10-82450677
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130516/c5061b6f/attachment.html>


More information about the Dnsmasq-discuss mailing list