Hi, Le Wed, 25 May 2016 19:17:31 +0530 Gopi Krishna M <gop...@msystechnologies.com> a écrit:
> Hi All, > > I have been using dnsmasq 2.70 vesrion as dhcp server for ipv4 and > ipv6. My lease file is not getting updated properly when > running dnsmasq. It is updating properly for ipv4 but not correct > for ipv6. > > #cat /etc/dnsmasq_new.leases > 2082886681 00:80:48:4b:83:12 192.168.10.161 host-mysy * > duid 00:01:00:01:43:b8:34:78:00:80:a3:a0:bb:38 > 2082843195 1212908306 *18:2001:2002:2003:: ** > 00:01:00:01:00:80:10:7e:ea:09 > > It is marked as above and its actual lease ip is > *2001:2002:2003::10a* but its not showing. Meanwhile even if we > connect multiple clients then the same *18:2001:2002:2003:: *is > getting repeated. Meanwhile it is not showing the > proper mac also. > > for your kind ref: > > config file > # cat /etc/dnsmasq_gateway.conf > interface=lan0 > except-interface=lo > bind-interfaces > dhcp-range=192.168.10.20, 192.168.10.254, 14h > dhcp-range=2001:2002:2003::105, 2001:2002:2003::110, 64, 14h > enable-ra > > Interface IP: 192.168.10.1 > IPv6: 2001:2002:2003::100 > > running as > > > *dnsmasq -C /etc/dnsmasq_gateway.conf -l /etc/dnsmasq_new.leases* > Please tell your suggestions. > > Note: Clients are getting IPv4 and IPv6 properly. Everything is fine > apart from updating the lease file. Compiled for ARM(linux 3.10) > > Thanks in advance. > > Regards, > Gopi krishna M (anyone feel free to correct me if I got the following wrong) You are using SLAAC for IPv6 configuration. In this mode, it is the client, not the DHCP server, which selects its own IPv6. Therefore there are no actual IPv6 leases: dnsmasq just informs the client about the /64 subnet under which the client, not dnsmasq, shall select its address; the client does not inform dnsmasq back. This is /probably/ why the actual address does not show up in the lease file. If you want dnsmasq to control which address the client receives (and possibly log this in the lease file) then you should use DHCPv6 rather than SLAAC. Amicalement, -- Albert. _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss