[Dnsmasq-discuss] No RA and no response to RTR-SOLICIT
Simon Kelley
simon at thekelleys.org.uk
Sun Jul 28 19:22:39 BST 2013
On 28/07/13 19:13, Enrico Tröger wrote:
> Hi,
>
> I want to use Dnsmasq to act as DHCPv6 server and to send router
> advertisments.
> My ISP provides me with a /64 IPv6 net over PPPoE.
>
> Normal DHCP works well but I can't get DHCPv6 working.
>
> I don't see any RTR-ADVERT messages in the logs nor do I see any
> response from Dnsmasq to RTR-SOLICIT requests (I do see the RTR-SOLICIT
> request itself in the logs).
>
> (Probably) Relevant config parts:
> interface=eth0
> except-interface=ppp0
> dhcp-range=2001:1234:1234:1234:10:0:1::,constructor:eth0,ra-names,slaac,64,48h
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This the problem. You need to decide if you're going to declare a fixed
prefix, or have dnsmasq advertise whatever prefixes are configured into
eth0.
The simplest to do, if eth0 is always going to be
2001:1234:1234:1234::4002/64, is
dhcp-range=2001:1234:1234:1234::,ra-names,slaac,64,48h
If the prefix on eth0 can change then, assuming the address of eth0
will always be xxxxxxxxxxxxxxxxx::4002, then you'd need
dhcp-range=::4002,constructor:eth0,ra-names,slaac,64,48h
Cheers,
Simon.
> enable-ra
>
>
> Startup log entries:
> dnsmasq[15373]: started, version 2.66 cachesize 4096
> dnsmasq[15373]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP
> DHCPv6 no-Lua TFTP conntrack ipset auth
> dnsmasq-dhcp[15373]: DHCP, IP range 10.0.1.4 -- 10.0.1.240, lease time 2d
> dnsmasq-dhcp[15373]: DHCPv4-derived IPv6 names on
> 2001:1234:1234:1234:10:0:1:0, template for eth0
> dnsmasq-dhcp[15373]: router advertisement on
> 2001:1234:1234:1234:10:0:1:0, template for eth0
> dnsmasq-dhcp[15373]: IPv6 router advertisement enabled
>
> I tried with to request a IP address with dhcpcd and Dnsmasq then logs
> the RTR-SOLICIT requests but doesn't seem to send an answer.
> Also, as I read on the net, I probably should see some router
> advertisements from time to time, but I don't see anything.
>
> On the host the IPv6 is configured as 2001:1234:1234:1234::4002/64 on
> eth0 which is the LAN interface. Does the routing table come into as
> well for Dnsmasq?
>
> I guess it's just a configuration problem but even after many searching
> in the net, I don't find what's wrong in my setup.
>
> I checked ip6tables but there are no relevant rules set up. And I also
> tried radvd and it worked but I'd prefer to use Dnsmasq as it is cool
> and already running :).
>
> I'm out of ideas and kindly ask for some pointers.
>
>
> Thanks,
> Enrico
>
>
>
> _______________________________________________
> 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