<font size=2 face="sans-serif">Hi Simon,</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your reply.</font>
<br>
<br><font size=2 face="sans-serif">You said </font><tt><font size=2>the
error may be caused by dnsmasq is not recognising the client, how to verify
it?</font></tt>
<br>
<br><tt><font size=2>After set--log-dhcp, it have the corresponding tag
called "know", you can see the below log:</font></tt>
<br>
<br>
<br><font size=2 face="Arial">Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8
dnsmasq-dhcp[3610]: 16372489 available DHCPv6 subnet: 2011:2011:0:f101::/64</font><font size=3 face="sans-serif">
</font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
client MAC address: fa:16:3e:99:c6:54</font><font size=3 face="sans-serif">
</font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
DHCPSOLICIT(tap1a82f5d5-e9) 00:01:00:01:1a:90:4c:42:fa:16:3e:99:c6:54</font><font size=3 face="sans-serif">
</font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
DHCPADVERTISE(tap1a82f5d5-e9) 00:01:00:01:1a:90:4c:42:fa:16:3e:99:c6:54
no addresses available</font><font size=3 face="sans-serif"> </font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
<b>tags: known, dhcpv6, tap1a82f5d5-e9</b></font><font size=3 face="sans-serif">
</font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
sent size: 14 option: 1 client-id 00:01:00:01:1a:90:4c:42:fa:16:3e:99:c6:54</font><font size=3 face="sans-serif">
</font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
sent size: 10 option: 2 server-id 00:03:00:01:00:0a:f7:1d:70:5c</font><font size=3 face="sans-serif">
</font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
sent size: 12 option: 3 ia-na IAID=1050265172 T1=4294967295
T2=4294967295</font><font size=3 face="sans-serif"> </font><font size=2 face="Arial"><br>
Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: 16372489
sent size: 24 option: 13 status 2 no addresses available</font><font size=3 face="sans-serif">
</font>
<br>
<br><tt><font size=2>About how to configuring host address in dnsmasq,
I use "--dhcp-hostsfile" to let dnsmasq to read the host
file, the content of the host file as below:</font></tt>
<br>
<br><font size=2 face="Arial">fa:16:3e:99:c6:54,host-2003-2033-0-f103--3.openstacklocal,2003:2033:0:f103::3</font>
<br>
<br><tt><font size=2>Looking forward to your reply, thanks!</font></tt>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Simon Kelley <simon@thekelleys.org.uk></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">dnsmasq-discuss@lists.thekelleys.org.uk,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">2014/02/14 22:50</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [Dnsmasq-discuss]
Dnsmasq 2.68 not assign IPv6 address, error -- no addresses available</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">dnsmasq-discuss-bounces@lists.thekelleys.org.uk</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On 14/02/14 08:46, Da Zhao Y Yu wrote:<br>
> More investigate about this issue:<br>
> <br>
> I found the dnsmasq dhcp client id is generated by client MAC address,
<br>
> but the dhcp server id is not generated by the binding tap <br>
> interface(*tap1a82f5d5-e9*) MAC address. Base on the server id ( <br>
> 00:03:00:01:00:0a:f7:1d:70:5c), I found it is generated by another
<br>
> network device, the MAC address(0a:f7:1d:70:5c) is matched with eth4
in <br>
> my env, and also eth4 device is in "inactive" status, I
do not know the <br>
> root cause.<br>
> <br>
> For IPv4, the client can got the IP address, just on IPv6 case, have
<br>
> such issues.<br>
> <br>
> <br>
> --------------------------------------------------<br>
> <br>
> <br>
> <br>
> From: Da Zhao Y Yu/China/IBM@IBMCN<br>
> To: Dnsmasq-discuss@lists.thekelleys.org.uk,<br>
> Date: 2014/02/14 12:04<br>
> Subject: Re: [Dnsmasq-discuss] Dnsmasq 2.68 not assign IPv6 address,
<br>
> error -- no addresses available<br>
> Sent by: dnsmasq-discuss-bounces@lists.thekelleys.org.uk<br>
> ------------------------------------------------------------------------<br>
> <br>
> <br>
> <br>
> After add '--log-dhcp' in dnsmasq, more log in /var/log/message, as
below:<br>
> <br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 available DHCPv6 subnet: 2011:2011:0:f101::/64<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 client MAC address: fa:16:3e:99:c6:54<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 DHCPSOLICIT(tap1a82f5d5-e9) <br>
> 00:01:00:01:1a:90:4c:42:fa:16:3e:99:c6:54<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 DHCPADVERTISE(tap1a82f5d5-e9) <br>
> 00:01:00:01:1a:90:4c:42:fa:16:3e:99:c6:54 no addresses available<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 tags: known, dhcpv6, tap1a82f5d5-e9<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 sent size: 14 option: 1 client-id <br>
> 00:01:00:01:1a:90:4c:42:fa:16:3e:99:c6:54<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 sent size: 10 option: 2 server-id 00:03:00:01:00:0a:f7:1d:70:5c<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 sent size: 12 option: 3 ia-na IAID=1050265172 T1=4294967295
<br>
> T2=4294967295<br>
> Feb 13 21:56:29 x3650m4-ir10-7915j2a-06nrrh8 dnsmasq-dhcp[3610]: <br>
> 16372489 sent size: 24 option: 13 status 2 no addresses available<br>
> <br>
> Any help would be appricated, thanks!!!<br>
> <br>
> <br>
> -------------------------------------------------<br>
> Cloud Solutions & OpenStack Development<br>
> China Systems & Technology Laboratory in Beijing<br>
> Email: dzyu@cn.ibm.com<br>
> Tel: (86)10-82450677<br>
> --------------------------------------------------<br>
> <br>
> <br>
> <br>
> From: Da Zhao Y Yu/China/IBM<br>
> To: Dnsmasq-discuss@lists.thekelleys.org.uk,<br>
> Date: 2014/02/13 18:23<br>
> Subject: Dnsmasq 2.68 not assign IPv6 address, error -- no addresses
<br>
> available<br>
> ------------------------------------------------------------------------<br>
> <br>
> <br>
> Hi all,<br>
> <br>
> Today I used dnsmasq 2.68 as dhcpv6 server to assign IP address to
vm <br>
> instance, and encountered the following issue:<br>
> <br>
> 1, The dnsmasq process as below:<br>
> <br>
> /usr/sbin/dnsmasq --no-hosts --no-resolv --strict-order <br>
> --bind-interfaces --interface=*tap1a82f5d5-e9* --except-interface=lo
<br>
> --pid-file=/var/lib/neutron/dhcp/a5d2bd6f-4509-483d-97df-66582e86b661/pid
--dhcp-hostsfile=/var/lib/neutron/dhcp/a5d2bd6f-4509-483d-97df-66582e86b661/host
<br>
> --dhcp-optsfile=/var/lib/neutron/dhcp/a5d2bd6f-4509-483d-97df-66582e86b661/opts
<br>
> --leasefile-ro --dhcp-range=set:tag0,2011:2011:0:f101::,static,86400s
<br>
> --dhcp-lease-max=16777216<br>
> <br>
> 2, In ubuntu vm instance, I use *dhclient -6* to send request, and
in <br>
> controller node, use* tcpdump -i tap1a82f5d5-e9* to monitor the result,
<br>
> as below:<br>
> <br>
> tcpdump: WARNING: tap1a82f5d5-e9: no IPv4 address assigned<br>
> tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode<br>
> listening on tap1a82f5d5-e9, link-type EN10MB (Ethernet), capture
size <br>
> 65535 bytes<br>
> 04:02:04.230789 IP6 fe80::f816:3eff:fe41:b297.dhcpv6-client > <br>
> ff02::1:2.dhcpv6-server: dhcp6 solicit<br>
> 04:02:04.232872 IP6 fe80::d046:83ff:fec3:cd10 > ff02::1:ff41:b297:
<br>
> ICMP6, neighbor solicitation, who has fe80::f816:3eff:fe41:b297, length
32<br>
> 04:02:04.233682 IP6 fe80::f816:3eff:fe41:b297 > <br>
> fe80::d046:83ff:fec3:cd10: ICMP6, neighbor advertisement, tgt is <br>
> fe80::f816:3eff:fe41:b297, length 32<br>
> 04:02:04.233702 IP6 fe80::d046:83ff:fec3:cd10 > <br>
> fe80::f816:3eff:fe41:b297: ICMP6, neighbor solicitation, who has <br>
> fe80::f816:3eff:fe41:b297, length 24<br>
> 04:02:04.234124 IP6 fe80::f816:3eff:fe41:b297 > <br>
> fe80::d046:83ff:fec3:cd10: ICMP6, neighbor advertisement, tgt is <br>
> fe80::f816:3eff:fe41:b297, length 24<br>
> 04:02:04.331231 IP6 fe80::d046:83ff:fec3:cd10.dhcpv6-server > <br>
> fe80::f816:3eff:fe41:b297.dhcpv6-client: dhcp6 advertise<br>
> 04:02:05.301072 IP6 fe80::f816:3eff:fe41:b297.dhcpv6-client > <br>
> ff02::1:2.dhcpv6-server: dhcp6 solicit<br>
> 04:02:05.301173 IP6 fe80::d046:83ff:fec3:cd10.dhcpv6-server > <br>
> fe80::f816:3eff:fe41:b297.dhcpv6-client: dhcp6 advertise<br>
> <br>
> It seems the network request have been sent from vm instance, and
dhcpv6 <br>
> server also got the message, but the vm instance still can not get
the <br>
> special IPv6 address, also from /var/log/message, I saw the dsnmasq
<br>
> error message:<br>
> <br>
> dnsmasq-dhcp[24313]: read <br>
> /var/lib/neutron/dhcp/a5d2bd6f-4509-483d-97df-66582e86b661/host<br>
> dnsmasq-dhcp[24313]: read <br>
> /var/lib/neutron/dhcp/a5d2bd6f-4509-483d-97df-66582e86b661/opts<br>
> dnsmasq-dhcp[24313]: DHCPSOLICIT(tap1a82f5d5-e9) <br>
> 00:01:00:01:1a:8f:54:b6:fa:16:3e:41:b2:97<br>
> dnsmasq-dhcp[24313]: DHCPADVERTISE(tap1a82f5d5-e9) <br>
> 00:01:00:01:1a:8f:54:b6:fa:16:3e:41:b2:97 no addresses available<br>
> dnsmasq-dhcp[24313]: DHCPSOLICIT(tap1a82f5d5-e9) <br>
> 00:01:00:01:1a:8f:54:b6:fa:16:3e:41:b2:97<br>
> dnsmasq-dhcp[24313]: DHCPADVERTISE(tap1a82f5d5-e9) <br>
> 00:01:00:01:1a:8f:54:b6:fa:16:3e:41:b2:97 no addresses available<br>
> <br>
> I do not know how to fix this issue, so can you give me some help
about <br>
> it, thanks!<br>
> <br>
> <br>
<br>
<br>
Your configuration has the dhcp-range configured as "static",
which<br>
tells dnsmasq to only give addresses to hosts which are configured with<br>
a static address. My guess is the "no addresses available" error
is<br>
because dnsmasq is not recognising the client.<br>
<br>
Set --log-dhcp and see if there's a tag called "known" in the
list of<br>
tags, and let us know how you're configuring host addresses in dnsmasq<br>
to do static address allocation.<br>
<br>
>I found the dnsmasq dhcp client id is generated by client MAC address,<br>
>but the dhcp server id is not generated by the binding tap<br>
>interface(tap1a82f5d5-e9) MAC address. Base on the server id (<br>
>00:03:00:01:00:0a:f7:1d:70:5c), I found it is generated by another<br>
>network device, the MAC address(0a:f7:1d:70:5c) is matched with eth4<br>
>in my env, and also eth4 device is in "inactive" status,
I do not know<br>
>the root cause.<br>
<br>
That's fine. The MAC address of any interface is allowed to be used,<br>
it's just to make sure the server-id is unique. Same for client-ids.<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
Dnsmasq-discuss@lists.thekelleys.org.uk<br>
</font></tt><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss"><tt><font size=2>http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>