<html><head></head><body>Sweet! Didn't know it could work that easy. <br>
<br>
Guess I should that stock in multiport network cards :-)<br><br><div class="gmail_quote">On January 23, 2015 10:29:04 AM EST, Michael Still <stillwaxin@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">You don't need to do anything fancy here. This functionality is built into isc-dhcpd. Just tell your routers in each subnet to relay dhcp to your dhcp server ip and put this kinda stuff in your config:<div><div>group foo {</div><div> option domain-name "<a href="http://mydomain.name">mydomain.name</a>";</div><div> option domain-name-servers myrecursivednsserver1, myrecursivednsserver2;</div><div> option ntp-servers myntpserver1, myntpserver2;</div><div> default-lease-time 3600;</div><div> max-lease-time 3600;</div><div><br /></div><div> shared-network network1 { <--- VLANX</div><div> subnet 172.16.0.0 netmask 255.255.255.192 {<br /></div><div> range 172.16.0.10 172.16.0.20;</div><div> option routers 172..16.0.1;</div><div> option subnet-mask 255.255.255.192;</div><div> }</div><div> }</div><div><br /></div><div> shared-network network2 { <--- VLANY</div><div> subnet 192.168.0.0 netmask 255.255.255
.192
{</div><div> range 192.168.0.10 192.168.0.20;</div><div> option option-150 myvoipboxip;</div><div> option routers 192.168.0.1;</div><div> option subnet-mask 255.255.255.192;</div><div> }</div><div> }</div></div><div><br /></div><div>Every router will source a *new* packet using the interface IP from the subnet it *received* the dhcp request on so the dhcp server knows which pool to use to issue IPs to the clients. I ran a global network with 2x dhcp servers this way.</div><div><br /></div></div><div class="gmail_extra"><br /><div class="gmail_quote">On Thu, Jan 22, 2015 at 11:57 PM, Robert L. Harris <span dir="ltr"><<a href="mailto:robert.l.harris@gmail.com" target="_blank">robert.l.harris@gmail.com</a>></span> wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> That looks like what I'm looking for. <div class="HOEnZb"><div class="h5"><br /><br /><div class="gmail_quote
">On
Thu Jan 22 2015 at 9:26:43 PM James Sumners <<a href="mailto:james.sumners@gmail.com" target="_blank">james.sumners@gmail.com</a>> wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It's something you would take care of at the switch level if you don't want to have an interface per vlan on your DHCP server -- <a href="https://lists.isc.org/pipermail/dhcp-users/2006-August/001509.html" target="_blank">https://lists.isc.org/pipermail/dhcp-users/2006-August/001509.html</a></div><div class="gmail_extra"><br /><div class="gmail_quote">On Thu, Jan 22, 2015 at 7:37 PM, Robert L. Harris <span dir="ltr"><<a href="mailto:robert.l.harris@gmail.com" target="_blank">robert.l.harris@gmail.com</a>></span> wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, so if I have 2 subnets:<br /><br />172.20.1/24 on vlan 21<div>172.20.2/24
on
vlan 22</div><div><br /></div><div>If a host plugs into a port assigned to vlan 22, how do I make sure dhcpd gives out the right address? That's the part of the designation I'm missing.</div><div><br /></div><div>Robert</div><div><br /></div><br /><div class="gmail_quote"><div><div>On Thu Jan 22 2015 at 5:17:25 PM James Sumners <<a href="mailto:james.sumners@gmail.com" target="_blank">james.sumners@gmail.com</a>> wrote:<br /></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>You just have to define the subnets in the config and put each subnet's pool within its respective block. No need for aliased IPs. <span></span><br /><br />On Thursday, January 22, 2015, Robert L. Harris <<a href="mailto:robert.l.harris@gmail.com" target="_blank">robert.l.harris@gmail.com</a>> wrote:<br /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><
br
/><div>Anyone have a dhcpd serving multiple subnets to multiple vlans from a single server on a trunk they can share configs? I don't want to spawn a bunch of servers and if I can do it with a single interface that would be ideal. If I have to go with eth0.0, eth0.1, etc that's a good second choice. </div><div><br /></div><div>Robert</div><div><br /></div>
</blockquote><br /><br />-- <br /><div dir="ltr"><div><div dir="ltr"><div>James Sumners<br /><a href="http://james.sumners.info/" target="_blank">http://james.sumners.info/</a> (technical profile)</div><div><a href="http://jrfom.com/" target="_blank">http://jrfom.com/</a> (personal site)</div><div><a href="http://haplo.bandcamp.com/" target="_blank">http://haplo.bandcamp.com/</a> (band page)</div></div></div></div><br /></div></div>
______________________________<u></u>_________________<br />
Ale mailing list<br />
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br />
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br />
See JOBS, ANNOUNCE and SCHOOLS lists at<br />
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br />
</blockquote></div>
<br />_______________________________________________<br />
Ale mailing list<br />
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br />
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br />
See JOBS, ANNOUNCE and SCHOOLS lists at<br />
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br />
<br /></blockquote></div><br /><br clear="all" /><div><br /></div>-- <br /><div><div dir="ltr"><div><div dir="ltr"><div>James Sumners<br /><a href="http://james.sumners.info/" target="_blank">http://james.sumners.info/</a> (technical profile)</div><div><a href="http://jrfom.com/" target="_blank">http://jrfom.com/</a> (personal site)</div><div><a href="http://haplo.bandcamp.com/" target="_blank">http://haplo.bandcamp.com/</a> (band page)</div></div></div></div></div>
</div>
______________________________<u></u>_________________<br />
Ale mailing list<br />
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br />
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br />
See JOBS, ANNOUNCE and SCHOOLS lists at<br />
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br />
</blockquote></div>
</div></div><br />_______________________________________________<br />
Ale mailing list<br />
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br />
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br />
See JOBS, ANNOUNCE and SCHOOLS lists at<br />
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br />
<br /></blockquote></div><br /><br clear="all" /><div><br /></div>-- <br /><div class="gmail_signature">[<a href="mailto:stillwaxin@gmail.com" target="_blank">stillwaxin@gmail.com</a> ~]$ cat .signature<br />cat: .signature: No such file or directory<br />[<a href="mailto:stillwaxin@gmail.com" target="_blank">stillwaxin@gmail.com</a> ~]$<br /></div>
</div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Ale mailing list<br />Ale@ale.org<br /><a href="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</a><br />See JOBS, ANNOUNCE and SCHOOLS lists at<br /><a href="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</a><br /></pre></blockquote></div><br>
--<br>
Jim Kinney<br>
Linux Systems Analyst<br>
Physicist/Brewer<br>
<a href="http://jimkinney.us">http://jimkinney.us</a></body></html>