<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<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.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></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?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></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?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></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:dhcp-users-bounces@lists.isc.org]
<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 <dhcp-users@lists.isc.org><br>
<b>Subject:</b> shared subnet declaration behavior between 2 pools<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">shared-network "Market 1" {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">        option domain-name "<a href="http://example.com">example.com</a>";<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                subnet 192.168.1.0 netmask 255.255.255.0 {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                option broadcast-address 192.168.1.255;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                option routers 192.168.1.1;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                pool {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                     <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                     <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                       failover peer "dhcp-failover";<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                       range 192.168.1.10 192.168.1.254;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                     <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">        }<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">        subnet 192.168.2.0 netmask 255.255.255.0 {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                option broadcast-address 192.168.2.255;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                option routers 192.168.2.1;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                pool {<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                        <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                        failover peer "dhcp-failover";<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                        range 192.168.2.10 192.168.2.254;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                        <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">                        <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">               }<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>