<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 14, 2013 at 9:49 AM, Sheng Yang <span dir="ltr"><<a href="mailto:sheng@yasker.org" target="_blank">sheng@yasker.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi Simon,</div><div><br></div><div>Thank you for help! It's the problem! </div>
<div><br></div><div>However, after I correct this one, dnsmasq still failed to hand out IP address, using dhcp-host entry.</div>
<div><br></div><div>The config here:</div><div><div class="im"><div style="font-family:arial,sans-serif;font-size:13px">dhcp-range=fc00:1234:5678:1234::1,static<br></div><div style="font-family:arial,sans-serif;font-size:13px">
dhcp-host=00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a,fred,[fc00:1234:5678:1234::144],test,infinte<br></div><div style="font-family:arial,sans-serif;font-size:13px">enable-ra</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div></div></div></div></blockquote><div><br></div><div style>Thank you! I found the problem. dhcp-host should be:</div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">dhcp-host=id:00:01:00:01:18:80:</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">df:3e:48:aa:8e:b2:d5:2a,fred,[</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">fc00:1234:5678:1234::144],</span><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">test,infinte</span><br>
</div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">missing the id option...</span></div>
<div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Thank you for help!</span></div>
<div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">--Sheng</span></div><div style>
 </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div class="im"><div style="font-family:arial,sans-serif;font-size:13px">
</div></div><div style="font-family:arial,sans-serif;font-size:13px">The log:</div></div><div><div><br></div><div>Jan 14 17:38:35 dnsmasq[2213]: started, version 2.62 cachesize 150</div><div>Jan 14 17:38:35 dnsmasq[2213]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack</div>

<div>Jan 14 17:38:35 dnsmasq-dhcp[2213]: IPv6 router advertisement enabled</div><div>Jan 14 17:38:35 dnsmasq-dhcp[2213]: DHCP, static leases only on fc00:1234:5678:1234::1, lease time 1h</div><div>Jan 14 17:38:35 dnsmasq[2213]: using local addresses only for domain cs1cloud.internal</div>

<div>Jan 14 17:38:35 dnsmasq[2213]: reading /etc/dnsmasq-resolv.conf</div><div>Jan 14 17:38:35 dnsmasq[2213]: using nameserver 8.8.8.8#53</div><div>Jan 14 17:38:35 dnsmasq[2213]: using local addresses only for domain cs1cloud.internal</div>

<div>Jan 14 17:38:35 dnsmasq[2213]: read /etc/hosts - 9 addresses</div><div>Jan 14 17:38:37 dnsmasq-dhcp[2213]: RTR-ADVERT(eth0) fc00:1234:5678:1234::</div></div><div>Jan 14 17:38:43 dnsmasq-dhcp[2213]: RTR-ADVERT(eth0) fc00:1234:5678:1234::</div>

<div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 10713471 available DHCPv6 subnet: fc00:1234:5678:1234::1/64</div><div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 10713471 DHCPCONFIRM(eth0) 00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a </div>

<div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 available DHCPv6 subnet: fc00:1234:5678:1234::1/64</div><div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 DHCPSOLICIT(eth0) 00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a </div>
<div>
Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 tags: eth0</div><div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 sent size: 14 option:  1 client-id  00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a</div><div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 sent size: 14 option:  2 server-id  00:01:00:01:18:82:53:de:06:3d:ba:00:00:2b</div>

<div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 sent size: 40 option:  3 ia-na  IAID=754974890 T1=0 T2=0</div><div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 nest size: 24 option: 13 status  2 No addresses available</div>

<div>Jan 14 17:38:44 dnsmasq-dhcp[2213]: 9785557 sent size: 16 option: 23 dns-server  fc00:1234:5678:1234:</div></div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 available DHCPv6 subnet: fc00:1234:5678:1234::1/64<br>
</div>
<div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 DHCPREQUEST(eth0) 00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a </div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 tags: eth0</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 sent size: 14 option:  1 client-id  00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a</div>

<div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 sent size: 14 option:  2 server-id  00:01:00:01:18:82:53:de:06:3d:ba:00:00:2b</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 sent size: 57 option:  3 ia-na  IAID=754974890 T1=0 T2=0</div>

<div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 nest size: 13 option: 13 status  4 Not on link</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 nest size: 24 option: 13 status  2 No addresses available</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 186834 sent size: 16 option: 23 dns-server  fc00:1234:5678:1234::1</div>

<div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 3317545 available DHCPv6 subnet: fc00:1234:5678:1234::1/64</div><div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 3317545 DHCPINFORMATION-REQUEST(eth0) 00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a <br>

</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 3317545 tags: eth0</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 3317545 sent size: 14 option:  1 client-id  00:01:00:01:18:80:df:3e:48:aa:8e:b2:d5:2a</div><div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 3317545 sent size: 14 option:  2 server-id  00:01:00:01:18:82:53:de:06:3d:ba:00:00:2b</div>

<div>Jan 14 17:38:45 dnsmasq-dhcp[2213]: 3317545 sent size: 16 option: 23 dns-server  fc00:1234:5678:1234::1</div><div>Jan 14 17:38:57 dnsmasq-dhcp[2213]: RTR-ADVERT(eth0) fc00:1234:5678:1234::</div><div>Jan 14 17:39:14 dnsmasq-dhcp[2213]: RTR-ADVERT(eth0) fc00:1234:5678:1234::</div>

</div><div><br></div><div>I would be appreciate if you can help!</div><div><br></div><div>Thank you!</div><span class=""><font color="#888888"><div><br></div><div>--Sheng</div></font></span></div><div class=""><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Jan 12, 2013 at 2:32 AM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div>On 12/01/13 06:04, Sheng Yang wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
Hi,<br>
<br>
I'd like to using DHCPv6, but I want to assign stateful address in order<br>
to know which client get which address.<br>
<br>
Here is my config for dnsmasq(version 2.63, from debian testing):<br>
<br>
domain=xxxx<br>
dhcp-range=fc00:1234:5678:<u></u>1234::1,static<br>
dhcp-host=00:01:00:01:18:80:<u></u>df:3e:48:aa:8e:b2:d5:2a,fred,[<u></u>fc00:1234:5678:1234::144],<u></u>test,infinte<br>
enable-ra<br>
interface=eth0<br>
listen-address=::1<br>
log-dhcp<br>
dhcp-option=option6:dns-<u></u>server,[::]<br>
<br>
But when client's dhcp6c ask for address, dnsmasq keeps giving this<br>
error message:<br>
<br>
Jan 12 05:54:33 dnsmasq-dhcp[5383]: no address range available for<br>
DHCPv6 request via eth0<br>
<br>
Here is the ip of eth0:<br>
<br>
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_<u></u>UP> mtu 1500 qdisc pfifo_fast<br>
state UP qlen 1000<br>
     link/ether 06:3d:ba:00:00:2b brd ff:ff:ff:ff:ff:ff<br></div>
     inet <a href="http://10.223.161.41/26" target="_blank">10.223.161.41/26</a> <<a href="http://10.223.161.41/26" target="_blank">http://10.223.161.41/26</a>> brd 10.223.161.63<div><br>
scope global eth0<br>
     inet6 fc00:1234:5678:1234::1/128 scope global<br>
</div></blockquote>
------------------------------<u></u>-----^^^^^<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
        valid_lft forever preferred_lft forever<br>
     inet6 fe80::43d:baff:fe00:2b/64 scope link<br>
        valid_lft forever preferred_lft forever<br>
<br>
</blockquote>
<br></div>
Here's the problem: the prefix length should not be 128, almost certainly it should be 64.<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.<u></u>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.<u></u>uk/mailman/listinfo/dnsmasq-<u></u>discuss</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>