<br><br><div class="gmail_quote">On Tue, Jul 13, 2010 at 10:20 PM, <a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a> <span dir="ltr"><<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div class="im">On Tue, Jul 13, 2010 at 9:57 PM, Lord_Devi <span dir="ltr"><<a href="mailto:lorddevi@gmail.com" target="_blank">lorddevi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Tue, 2010-07-13 at 18:55 -0500, <a href="mailto:richardvoigt@gmail.com" target="_blank">richardvoigt@gmail.com</a> wrote:<br>
<br>
> If you visit <a href="http://www.thekelleys.org.uk/" target="_blank">http://www.thekelleys.org.uk/</a> you will see that dnsmasq<br>
> is not a relay, but there is a separate program dhcp-helper from the<br>
> same author to act as a relay.<br>
><br>
> dnsmasq's dhcp server supports issuing addresses both directly and<br>
> indirectly (via a relay). For direct dhcp, it will find the ip<br>
> address assigned to the interface where the request came in and give<br>
> out an address from a dhcp-pool in the same block (defined by the<br>
> subnet mask). For indirect dhcp, the relay tells dnsmasq the address<br>
> of the interface where the request was received, all you have to do is<br>
> configure a dhcp-pool in the same block as the relay's interface which<br>
> faces toward the clients.<br>
><br>
> Hope this helps.<br>
<br>
</div>Oh yes ok this does help a bit. I found a thread in the dnsmasq archives<br>
demonstrating how simple defining a seperate pool is in dnsmasq as well.<br>
However I could still find no working examples on how to configure that<br>
pool to distribute a DIFFERENT gateway than the first pool recieves. It<br>
seems to me that the trick might be in 'labeling' the two subnets.<br>
Something like the following:<br></blockquote><div><br></div></div><div>I guess I missed the part about needed different gateways. dnsmasq tends to do something sensible, direct leases get the IP address of the dnsmasq server while indirect leases get the relay agent as gateway. But in some environments that isn't adequate.</div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
dhcp-range=set:lan1,192.168.1.50,192.168.0.150<br>
<br>
and<br>
<br>
dhcp-range=set:lan2,192.168.2.50,192.168.0.150<br></blockquote><div><br></div></div><div>That's exactly right so far, be warned that for the "set:tagname" you need a very recent (>= 2.53) version of dnsmasq. 2.52 and earlier versions used "net:tagname".</div>
<div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Note the set:lan1 and set:lan2. And then perhaps later on in the same<br>
configuration something like the following:<br>
<br>
server=/lan1/<a href="http://192.168.1.1" target="_blank">192.168.1.1</a><br>
server=/lan2/<a href="http://192.168.2.1" target="_blank">192.168.2.1</a></blockquote><div><br></div></div><div>Here you'd use:</div><div><br></div><div>dhcp-option=tag:lan1,option:gateway,192.168.1.1</div><div>dhcp-option=tag:lan2,option:gateway,192.168.2.1</div>
</div></blockquote><div><br></div><div>oops, should be option:router There's even an example in the man page. <a href="http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html">http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote">
<div><br></div><div>and again, the syntax for 2.52 and earlier versions is "net:tagname". Yes that's the same syntax for both setting and tag and matching it -- that's why it got changed in version 2.53.</div>
<div class="im">
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
But still.. Just blindly attempting this is to see if it works is<br>
something I call the 'dart board method' throwing random commands or<br>
configuration statements at my daemons or utilities in desperate hope<br>
they will begin doing what I wish them to do. Because this is such an<br>
important project, I would still feel very relieved if someone could<br>
demonstrate for me exactly how this might look when done correctly.<br>
<br>
Thank you again for all your help,<br>
Casey Quibell <Lord_Devi><br>
<br>
</blockquote></div></div><br>
</blockquote></div><br>