<div dir="ltr">Thanks all. I'm just trying to figure out if the "shared network" option will automatically use our second pool when the first one gets full. But, I think Bob has answered that question. If what he is saying is correct, then my question is answered. </div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 3:36 PM, Patrick Trapp <span dir="ltr"><<a href="mailto:ptrapp@nex-tech.com" target="_blank">ptrapp@nex-tech.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_-6213394948514579981WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">All things being equal, I don’t know how it handles this. In our network, each pool in the shared network is assigned based on class matching (or not matching).
 In our case, each class matches a different type of device which gets a different configuration in addition to receiving an address from a different pool.
<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">I’m not sure, looking at your configuration here, why you need a shared network. What are you trying to accomplish?
<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">In our case, we have multiple networks that are all reaching the DHCP server via a particular network. In order for ISC DHCP to accept a request from network
 Z when the request came through network X, we define shared networks so that the server accepts the request as valid. Otherwise, it rejects the request. You don’t seem to have that type of scenario in your example.<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">What problem are you trying to fix with a shared network?<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"><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"> dhcp-users [mailto:<a href="mailto:dhcp-users-bounces@lists.isc.org" target="_blank">dhcp-users-bounces@<wbr>lists.isc.org</a>]
<b>On Behalf Of </b>project722<br>
<b>Sent:</b> Monday, October 9, 2017 3:10 PM<br>
<b>To:</b> Users of ISC DHCP <<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>><br>
<b>Subject:</b> shared subnet declaration behavior between 2 pools<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hello. im curious as to how dhcpd determines what pool to pull a lease from in a shared subnet declaration. for ex on our server we have:<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">shared-network "Market 1" {<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        option domain-name "<a href="http://example.com" target="_blank">example.com</a>";<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                subnet 192.168.1.0 netmask 255.255.255.0 {<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                option broadcast-address 192.168.1.255;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                option routers 192.168.1.1;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                pool {<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>
<div>
<p class="MsoNormal">                       failover peer "dhcp-failover";<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                       range 192.168.1.10 192.168.1.254;<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>
<div>
<p class="MsoNormal">        subnet 192.168.2.0 netmask 255.255.255.0 {<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                option broadcast-address 192.168.2.255;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                option routers 192.168.2.1;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                pool {<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        failover peer "dhcp-failover";<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">                        range 192.168.2.10 192.168.2.254;<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>
<div>
<p class="MsoNormal">               }<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">}<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I would suspect that the broadcasts that come through these routers/gateways determine the pool that dhcp assigns a lease from. So, if a client requests is seen by the sever comes from 192.168.1.1 it will get a lease out of that pool, and
 if it sees that the client requests cvomes from 192.168.2.1 it will get a lease from that pool. Is my understanding correct on this? If that is correct, then what happens when the 192.168.1.0 network gets full? Does dhcpd have some type of algo that allows
 it to assign a lease from the 192.168.2.0 pool in order to prevent an out of leases condition?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>

<br>______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br></blockquote></div><br></div>