[Dnsmasq-discuss] Dnsmasq not advertising IPv6 Prefix

Alan MacLeod alan at eng.com
Sun Aug 3 22:21:56 BST 2014


Well, that was easy - upgraded to 2.71 and its working - thanks for the
fast response!


On Sun, 2014-08-03 at 21:44 +0100, Simon Kelley wrote:
> On 03/08/14 17:00, Alan MacLeod wrote:
> > Hi,
> > 
> > I am using the using dnsmasq to replaced bind9, isc dhcp, and radvd for
> > my home network.  My router is a Debian Wheezy gateway, running the
> > distribution provided dnsmasq 2.62 with compile time options IPv6
> > GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack.
> > 
> > The problem I have is that dnsmasq does not appear to send IPv6 RAs.
> > 
> > My configuration (this is all of it) is
> > 
> > domain-needed
> > resolv-file=/etc/dnsmasq.resolv.conf
> > interface=eth0
> > addn-hosts=/etc/dnsmasq.hosts
> > expand-hosts
> > domain=mydomain
> > dhcp-range=192.168.1.40,192.168.1.79,255.255.255.0,4h
> > dhcp-range=::,constructor:eth0,ra-stateless
> > dhcp-option=option:domain-search,mydomain
> > dhcp-option=option6:domain-search,mmydomain
> > dhcp-option=option:ntp-server,0.0.0.0
> > dhcp-option=option6:ntp-server,[::]
> > 
> > my dnsmasq.resolv.conf is 
> > nameserver 2620:0:ccc::2
> > nameserver 2620:0:ccd::2
> > domainname mydomain
> > search mydomain
> > 
> > where mydomain in both config files is my actual domain.
> > 
> > /etc/dnsmasq.hosts has a mix of SLAAC addresses for my hosts and IPv4
> > address for fixed addressed devices - I assume I could replace most of
> > this file with ra-names?
> > 
> > The problem appears to be that dnsmasq is not sending RAs.  The LAN
> > interface has a manually configured IPv6 address, its configured by a
> > script based on the prefix assignment from my ISP and the host portion
> > is set to ::1.  I read in the man pages that dnsmasq will only do RAs on
> > manually configured interfaces, and I wonder if there is a parameter I
> > am missing which means dnsmasq is ignoring the address.
> > 
> > syslog has the following
> > 
> > Aug  3 11:25:00 gateway dnsmasq[4200]: started, version 2.62 cachesize
> > 150
> > Aug  3 11:25:00 gateway dnsmasq[4200]: compile time options: IPv6
> > GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack
> > Aug  3 11:25:00 gateway dnsmasq-dhcp[4200]: IPv6 router advertisement
> > enabled
> > Aug  3 11:25:00 gateway dnsmasq-dhcp[4200]: DHCP, IP range 192.168.1.40
> > -- 192.168.1.79, lease time 4h
> > Aug  3 11:25:00 gateway dnsmasq[4200]: reading /etc/dnsmasq.resolv.conf
> > Aug  3 11:25:00 gateway dnsmasq[4200]: using nameserver 2620:0:ccd::2#53
> > Aug  3 11:25:00 gateway dnsmasq[4200]: using nameserver 2620:0:ccc::2#53
> > Aug  3 11:25:00 gateway dnsmasq[4200]: read /etc/hosts - 6 addresses
> > Aug  3 11:25:00 gateway dnsmasq[4200]: read /etc/dnsmasq.hosts - 8
> > addresses
> > 
> > 
> > When I re-enable radvd everything comes works, when radvd is off, the
> > hosts lose their SLAAC IPv6 addresses and revert to just IPv4.
> > 
> > Is there anything I am obviously doing wrong - any pointers would be
> > appreciated.
> > 
> 
> > 
> You're using "constructed dhcp ranges" in your configuration, which was
> first added in dnsmasq 2.66, but you're running dnsmasq 2.62.
> 
> 2.62 is very old for anything to do with IPv6, I strongly suggest
> upgrading to something more recent, and preferably the last release, 2.71.
> 
> 
> Cheers,
> 
> Simon.
> 
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list