<div dir="ltr">John,<div><br></div><div>Doesn't the prefix need to be assigned to br0, and not to eth0, so that the constructor and delegations work correctly?</div><div><br></div><div>-Aaron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 3:33 PM, John Knight <span dir="ltr"><<a href="mailto:John.Knight@belkin.com" target="_blank">John.Knight@belkin.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-4601615061750803429WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks John for the info on the RA interval.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">My main problem however is that dnsmasq is not advertising the RA.  I think I don’t understand how the constructor works.  In my case, the WAN interface receives
 the RA from the upstream router.  I then want to use this same prefix of the WAN interface and have dnsmasq send to LAN interface.  How do I do this?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If I specify constructor:eth0, it does indeed find the prefix used to create IPv6 Global address on WAN interface… but dnsmasq then assumes I want to do RA
 advertisements on eth0!  Which I do not… I want dnsmasq to use the same prefix on the LAN interface (br0).  So this seems to be wrong:<u></u><u></u></span></p>
<p class="m_-4601615061750803429Standard">enable-ra<u></u><u></u></p>
<p class="m_-4601615061750803429Standard">dhcp-range=net:br0,::1,::400,<wbr>constructor:eth0,ra-names,64,<wbr>12h<u></u><u></u></p>
<p class="m_-4601615061750803429Standard">ra-param=br0,60<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">And results in the following logged messages:<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">ar  2 12:10:40 dnsmasq-dhcp[6026]: DHCPv6, IP range ::1 -- ::400, lease time 12h, template for eth0                   
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">Mar  2 12:10:40 dnsmasq-dhcp[6026]: DHCPv4-derived IPv6 names on eth0                          <wbr>                        
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">Mar  2 12:10:40 dnsmasq-dhcp[6026]: router advertisement on eth0                          <wbr>                             
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">Mar  2 12:10:40 dnsmasq-dhcp[6026]: DHCPv6, IP range 2001:db8:100:5555::1 -- 2001:db8:100:5555::400, lease time 12h, con<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">Mar  2 12:10:40 dnsmasq-dhcp[6026]: DHCPv4-derived IPv6 names on 2001:db8:100:5555::, constructed for eth0             
<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:11.0pt;font-family:"Courier New"">Mar  2 12:10:40 dnsmasq-dhcp[6026]: router advertisement on 2001:db8:100:5555::, constructed for eth0                  
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New"">Mar  2 12:10:40 dnsmasq-dhcp[6026]: IPv6 router advertisement enabled  
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New""><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If I specify constructor:br0, then it does not find the prefix as there is prefix on the LAN interface.  It seems that dnsmasq assumes that there is already
 a prefix applied to the LAN interface.  The question I have then, is how does the LAN interface get configured?  The RA is only seen on the WAN interface… how is SLACC applied to the br0 interface?  I am trying to understand how this is supposed to work.  I
 presume that once the LAN interface is configured and I use the constructor:br0 in my configuration, then I am guessing I will start seeing the RA being advertised. Am I right?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Comments anyone?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">John<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> John Newlin [mailto:<a href="mailto:jnewlin@google.com" target="_blank">jnewlin@google.com</a>]
<br>
<b>Sent:</b> Tuesday, March 07, 2017 12:37 PM<br>
<b>To:</b> John Knight<br>
<b>Cc:</b> <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<b>Subject:</b> Re: [Dnsmasq-discuss] Cannot get IPv6 RA to occur<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I think you need an:<u></u><u></u></p>
<div>
<p class="MsoNormal">ra-param=${internal_iterface},<wbr>60<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The 60 is send an RA every 60 seconds.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Mar 7, 2017 at 11:57 AM, John Knight <<a href="mailto:John.Knight@belkin.com" target="_blank">John.Knight@belkin.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am trying to get dnsmasq to send out IPv6 RAs to my LAN interface (br0), but can’t seem to get it to work.  I have tried various configurations I have found on the internet, but
 to no avail.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am using dnsmasq 2.76.  My router has WAN interface (eth0) that has an IPv6 global address that was configured via PD from RAs received from upstream router.  I am trying to use
 dnsmasq to service the LAN clients on br0, and to do this I want to enable dnsmasq router advertisements (RA).<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Here is my current attempt at configuration:<u></u><u></u></p>
<p class="MsoNormal">dhcp-range=::a,constructor:<wbr>br0,ra-names,1d<u></u><u></u></p>
<p class="MsoNormal">enable-ra<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I have also tried this:<u></u><u></u></p>
<p class="MsoNormal">dhcp-range=tag:br0,::1,::FFFF:<wbr>FFFF:FFFF:FFFF,constructor:<wbr>br0,ra-names,1h<u></u><u></u></p>
<p class="MsoNormal">enable-ra<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">And many other variants of the above.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The dnsmasq.log file shows the following:<u></u><u></u></p>
<p class="MsoNormal">DHCPv4-derived IPv6 names on br0<u></u><u></u></p>
<p class="MsoNormal">Router advertisement on br0<u></u><u></u></p>
<p class="MsoNormal">IPv6 router advertisement enabled<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">However, my LAN client attached to br0 does not receive an RA.  It never establishes a global IPv6 address.  I have also verified this using “tcpdump –I br0 | grep advert”.  I see
 no advertisements on the br0 interface.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">This does raise a few questions for me:<u></u><u></u></p>
<p class="m_-4601615061750803429m-2977904366325911911msolistparagraph" style="margin-left:.75in">1)<span style="font-size:7.0pt">     
</span>How does dnsmasq learn of the prefix to use for the RA?  I want it to use the prefix received on the WAN interface (eth0) for the RA on the LAN interface (br0).  It is not clear to me how to configure this.<u></u><u></u></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal">You have to request this from the upstream dhcpv6 server, it's called prefix delegation.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="m_-4601615061750803429m-2977904366325911911msolistparagraph" style="margin-left:.75in">2)<span style="font-size:7.0pt">     
</span>The dnsmasq log file indicates “Router advertisement on br0”.  Does this mean that it sent out the Router advertisement on br0?  I thought so, but alas, I do not see the RA on br0.<u></u><u></u></p>
<p class="m_-4601615061750803429m-2977904366325911911msolistparagraph" style="margin-left:.75in">3)<span style="font-size:7.0pt">     
</span>With radvd, there are controls to determine the frequency of advertisements.  Are there any controls for dnsmasq?  What is the default frequency of RA advertisement?<u></u><u></u></p>
<p class="m_-4601615061750803429m-2977904366325911911msolistparagraph" style="margin-left:.75in">4)<span style="font-size:7.0pt">     
</span>I only have the man page for dnsmasq.  Is there a User guide with more details on using dnsmasq?<u></u><u></u></p>
<p class="m_-4601615061750803429m-2977904366325911911msolistparagraph" style="margin-left:.75in">5)<span style="font-size:7.0pt">     
</span>I am currently using radvd in the router, and I am thinking if I can get this to work, I will stop using radvd.  Are there any compelling reasons to use dnsmasq RA over radvd?<u></u><u></u></p>
<p class="m_-4601615061750803429m-2977904366325911911msolistparagraph" style="margin-left:.75in">6)<span style="font-size:7.0pt">     
</span>What is the preferred/expected syntax for the dhcp-range?  I have seen a number of different variations and find it very confusing... even the two examples abover have different syntax.  Both seem to be accepted by dnsmasq.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I appreciate your help with this.  I hope to get this to work soon.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">John Knight<u></u><u></u></p>
<p class="MsoNormal"><a href="mailto:John.knight@belkin.com" target="_blank">John.knight@belkin.com</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">______________________________<wbr>______________________________<wbr>______ Confidential This e-mail and any files transmitted with it are the property of Belkin International, Inc. and/or its affiliates, are confidential, and are intended solely
 for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately
 from your computer. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. Pour la version française:
<a href="http://www.belkin.com/email-notice/French.html" target="_blank">
http://www.belkin.com/email-<wbr>notice/French.html</a> Für die deutsche Übersetzung: <a href="http://www.belkin.com/email-notice/German.html" target="_blank">
http://www.belkin.com/email-<wbr>notice/German.html</a> ______________________________<wbr>______________________________<wbr>______
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.<wbr>uk/mailman/listinfo/dnsmasq-<wbr>discuss</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div></div></div><div><div class="h5">
______________________________<wbr>______________________________<wbr>______ Confidential This e-mail and any files transmitted with it are the property of Belkin International, Inc. and/or its affiliates, are confidential, and are intended solely for the use of the
 individual or entity to whom this e-mail is addressed. If you are not one of the named recipients or otherwise have reason to believe that you have received this e-mail in error, please notify the sender and delete this message immediately from your computer.
 Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. Pour la version française: <a href="http://www.belkin.com/email-notice/French.html" target="_blank">http://www.belkin.com/email-<wbr>notice/French.html</a> Für die deutsche Übersetzung: <a href="http://www.belkin.com/email-notice/German.html" target="_blank">http://www.belkin.com/email-<wbr>notice/German.html</a>
 ______________________________<wbr>______________________________<wbr>______
</div></div></div>

<br>______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.<wbr>uk/mailman/listinfo/dnsmasq-<wbr>discuss</a><br>
<br></blockquote></div><br></div>