<div><br></div>Perhaps you clients are getting their addresses from router advertisement, and not DHCP. So disable RA first in dnsmasq (and make sure no router or other host is publishing one)<div><br></div><div>Syntax like this works, I used it:</div>
<div><div>dhcp-host=ubuntu12,[2001:ffff:666::1]</div><div><div><br></div><div>perhaps a v6 range needs to be specified:</div><div>dhcp-range=2001:ffff:666::1, 2001:ffff:666::4, 24h</div></div><div><br></div><div>make sure you're using a very recent version of dnsmasq.</div>
<div><br></div><div>"tcpdump ip6" can show what packets are on the wire too.</div><div><br></div><div>Sean</div><div><br></div><br><div class="gmail_quote">On 1 October 2012 01:38, Carlos Laviola <span dir="ltr"><<a href="mailto:carlos.laviola@gmail.com" target="_blank">carlos.laviola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I've recently switched to using only dnsmasq on openwrt since finding<br>
out that it could also hand out IPv6 addresses. This works, but the<br>
clients only get SLAAC addresses.<br>
<br>
Also, the manpage states:<br>
<br>
"A single dhcp-host may contain an IPv4 address or an IPv6 address, or<br>
both. IPv6 addresses must be bracketed by square brackets thus:<br>
--dhcp-host=laptop,[1234::56] Note that in IPv6 DHCP, the hardware<br>
address is not normally available, so a client must be identified by<br>
client-id (called client DUID in IPv6-land) or hostname."<br>
<br>
How do I find this client-id/DUID? Even with the "log-dhcp" directive,<br>
I don't see anything that looks like it.<br>
<br>
Here are my conffiles. openwrt auto-generates a /var/etc/dnsmasq.conf<br>
based on a file written in their own DSL (/etc/config/dhcp), which is<br>
it's split in two files.<br>
<br>
/var/etc/dnsmasq.conf:<br>
<br>
--<br>
conf-file=/etc/dnsmasq.conf<br>
dhcp-authoritative<br>
domain-needed<br>
no-resolv<br>
localise-queries<br>
read-ethers<br>
bogus-priv<br>
expand-hosts<br>
domain=<a href="http://home.laviola.org" target="_blank">home.laviola.org</a><br>
server=/<a href="http://home.laviola.org/" target="_blank">home.laviola.org/</a><br>
server=8.8.8.8<br>
server=8.8.4.4<br>
server=2001:4860:4860::8888<br>
server=2001:4860:4860::8844<br>
server=2620:0:ccc::2<br>
server=2620:0:ccd::2<br>
dhcp-leasefile=/tmp/dhcp.leases<br>
stop-dns-rebind<br>
rebind-localhost-ok<br>
<br>
<br>
<br>
<br>
dhcp-range=lan,192.168.1.100,192.168.1.249,255.255.255.0,12h<br>
no-dhcp-interface=pppoe-wan<br>
<br>
<br>
address=/<a href="http://ellis.home.laviola.org/192.168.1.1" target="_blank">ellis.home.laviola.org/192.168.1.1</a><br>
ptr-record=1.1.168.192.in-addr.arpa,<a href="http://ellis.home.laviola.org" target="_blank">ellis.home.laviola.org</a><br>
--<br>
<br>
/etc/dnsmasq.conf:<br>
<br>
--<br>
dhcp-range=2001:ffff:666::,slaac<br>
enable-ra<br>
dhcp-host=192.168.1.2,[2001:ffff:666::1],client1<br>
dhcp-host=192.168.1.3,[2001:ffff:666::2],client2<br>
dhcp-host=192.168.1.4,[2001:ffff:666::3],client3<br>
dhcp-host=192.168.1.5,[2001:ffff:666::4],client4<br>
log-dhcp<br>
--<br>
<br>
Thanks for your help!<br>
<br>
Best regards,<br>
Carlos<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br></div>