<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=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \,serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;
        color:black;}
p.HTMLPreformatted, li.HTMLPreformatted, div.HTMLPreformatted
        {mso-style-name:"HTML Preformatted";
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 bgcolor=white lang=FR-CA link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>Glad I could help!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>Denis<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR style='color:windowtext'>De :</span></b><span lang=FR style='color:windowtext'> dhcp-users-bounces@lists.isc.org [mailto:dhcp-users-bounces@lists.isc.org] <b>De la part de</b> Rob Morin<br><b>Envoyé :</b> 10 février 2016 08:07<br><b>À :</b> Users of ISC DHCP <dhcp-users@lists.isc.org><br><b>Objet :</b> Re: ISC-dhcp subnet limit?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Hey Denis, just wanted to let you know that all is well with that new dhcp server now. Running 4.3.3-p1<br><br>I increased the lease_hash number and added the debug stuff.. Also i increased some system defaults to the below..<br><br>net.core.rmem_max=33554432<br>net.core.wmem_max=33554432<br>net.core.rmem_default=33554432<br>net.core.wmem_default=33554432<br>net.ipv4.udp_rmem_min=16384         <br>net.ipv4.udp_wmem_min=16384<br>net.core.netdev_max_backlog=2000<br><br>Memory use increased a bit , but still have 2.5 gigs left, and its not swapping<br><br>Throw in the ramdisk, and hopefully i will be good for a while...<br><br>Once i get up the new secondary server we will go back to the normal failover config.<br><br>Thanks again for all your help!<br><br><br><o:p></o:p></span></p><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Rob Morin<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Montreal, Canada<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'> <o:p></o:p></span></pre><div><p class=MsoNormal><span lang=EN-US>On 2016-02-04 2:50 PM, Denis Laventure wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>It should be ok like that I think.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Denis</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR style='color:windowtext'>De :</span></b><span lang=FR style='color:windowtext'> <a href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a> [<a href="mailto:dhcp-users-bounces@lists.isc.org">mailto:dhcp-users-bounces@lists.isc.org</a>] <b>De la part de</b> Rob Morin<br><b>Envoyé :</b> 4 février 2016 14:04<br><b>À :</b> Users of ISC DHCP <a href="mailto:dhcp-users@lists.isc.org"><dhcp-users@lists.isc.org></a><br><b>Objet :</b> Re: ISC-dhcp subnet limit?</span><span lang=EN-US><o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks for the quick reply Denis..<br><br>So i found a number which seems to be ok, I have 8 gigs of ram on that dhcp server... at its current full tilt it uses 4<br><br>Feb  4 13:59:05 localhost dhcpd: Lease IP hash:  Contents/Size (%): 1664250/1800017 (92%). Min/max: 0/2<br>Feb  4 13:59:05 localhost dhcpd: Lease UID hash: Contents/Size (%): 0/1800017 (0%). Min/max: 0/0<br>Feb  4 13:59:05 localhost dhcpd: Lease HW hash:  Contents/Size (%): 0/1800017 (0%). Min/max: 0/0<br><br>What do you think?<br><br><br><br><br><o:p></o:p></span></p><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Rob Morin<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Montreal, Canada<o:p></o:p></span></pre><div><p class=MsoNormal><span lang=EN-US>On 2016-02-04 1:50 PM, Denis Laventure wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Rob, </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I don’t remember having any problem with someone not getting a lease. If that was the case, the stock apt-get version would have done the same thing with the default value anyway.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I think you should have a number under 100% so yeah I would up that number (find a prime number above 1664250). A value that high will probably impact the memory used by the daemon.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Denis</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR style='color:windowtext'>De :</span></b><span lang=FR style='color:windowtext'> <a href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a> [<a href="mailto:dhcp-users-bounces@lists.isc.org">mailto:dhcp-users-bounces@lists.isc.org</a>] <b>De la part de</b> Rob Morin<br><b>Envoyé :</b> 4 février 2016 13:44<br><b>À :</b> Users of ISC DHCP <a href="mailto:dhcp-users@lists.isc.org"><dhcp-users@lists.isc.org></a><br><b>Objet :</b> Re: ISC-dhcp subnet limit?</span><span lang=EN-US><o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Would a too low lease_hash prevent users from getting a lease or IP at a certain point? I had this issue last night where i was running on stock apt-get install and after we moved one more controller to that server , people started not being able to get leases....<br><br>With the increase of lease_has after a restart i get this <br><br>Feb  4 13:41:49 localhost dhcpd: Lease IP hash:  Contents/Size (%): 1664250/400009 (416%). Min/max: 3/5<br>Feb  4 13:41:49 localhost dhcpd: Lease UID hash: Contents/Size (%): 0/400009 (0%). Min/max: 0/0<br>Feb  4 13:41:49 localhost dhcpd: Lease HW hash:  Contents/Size (%): 0/400009 (0%). Min/max: 0/0<br>Feb  4 13:41:49 localhost dhcpd: Server starting service.<br><br>So i should up it until i have space?? <o:p></o:p></span></p><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Rob Morin<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Gestionnaire des systèmes | Senior Systems Administrator<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Tel: 514 385-4448 #174                         <o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DATAVALET.COM<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>5275, chemin Queen-Mary, Montréal (Québec) H3W 1Y3 Canada<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'> <o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>CE COURRIEL AINSI QUE CES DOCUMENTS JOINTS peuvent contenir des renseignements confidentiels et privilégiés. Si vous n’êtes pas le destinataire désigné, veuillez nous en informer immédiatement et effacer toute copie. Merci.<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>THIS EMAIL AND THE DOCUMENTS ATTACHED may contain privileged or confidential information. If the reader of this message is not the intended recipient, please notify the sender immediately and delete the original message. Thank you.<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'> <o:p></o:p></span></pre><div><p class=MsoNormal><span lang=EN-US>On 2016-01-29 9:58 AM, Denis Laventure wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Rob, </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I can't help for issue on your interface problem but I think I can help with the performance.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I used to have performance problem with my failover setup and someone at ISC told me to change some value in the code to get debug information about memory usage.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Add this to the file "includes/dhcpd.h"</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#if !defined (REPORT_HASH_PERFORMANCE)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US># define REPORT_HASH_PERFORMANCE 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>#endif<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Compile and start the daemon and you should get something like this on screen and in the log:</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: DHCP name hash: Contents/Size (%): 106/401 (26%). Min/max: 0/2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: DHCP code hash: Contents/Size (%): 106/254 (41%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: NWIP name hash: Contents/Size (%): 11/17 (64%). Min/max: 0/2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: NWIP code hash: Contents/Size (%): 11/17 (64%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: FQDN name hash: Contents/Size (%): 8/13 (61%). Min/max: 0/2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: FQDN code hash: Contents/Size (%): 8/13 (61%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: VIVCO name hash: Contents/Size (%): 1/127 (0%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: VIVCO code hash: Contents/Size (%): 1/127 (0%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: VIVSO name hash: Contents/Size (%): 1/127 (0%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: VIVSO code hash: Contents/Size (%): 1/127 (0%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: ISC name hash: Contents/Size (%): 2/3 (66%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: ISC code hash: Contents/Size (%): 2/3 (66%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Relay Agent name hash: Contents/Size (%): 5/11 (45%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Relay Agent code hash: Contents/Size (%): 5/11 (45%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Server-Config Option name hash: Contents/Size (%): 67/136 (49%). Min/max: 0/4<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Server-Config Option code hash: Contents/Size (%): 67/136 (49%). Min/max: 0/1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: data: hardware: no raw packet or lease is available<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: data: hardware: no raw packet or lease is available<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: data: hardware: no raw packet or lease is available<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: data: hardware: no raw packet or lease is available<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: data: hardware: no raw packet or lease is available<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: data: hardware: no raw packet or lease is available<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Config file: /dhcpd/dhcpd.conf<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Database file: /dhcpd/dhcpd.leases<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: PID file: /var/run/dhcpd.pid<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Wrote 0 class decls to leases file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Wrote 0 deleted host decls to leases file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Wrote 0 new dynamic host decls to leases file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Wrote 48578 leases to leases file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Host HW hash:   Contents/Size (%): 1420/22501 (6%). Min/max: 0/4<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Host UID hash:  No table.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Lease IP hash:  Contents/Size (%): 70324/100003 (70%). Min/max: 0/5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Lease UID hash: Contents/Size (%): 8708/100003 (8%). Min/max: 0/3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcpd: Lease HW hash:  Contents/Size (%): 9036/100003 (9%). Min/max: 0/3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>"Lease IP hash" is where you should look.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>By default the server use a lease hash size value of 100003. I had over 350000 leases so I was exceeding that value and the server was very slow to start.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>To change the size you must edit the file "includes/dhcpd.h" and find LEASE_HASH_SIZE and replace the value. This value must be a prime number (I used 400009).</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>-# define LEASE_HASH_SIZE       100003<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>+# define LEASE_HASH_SIZE       400009<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Compile and start again. That was the answer for me. </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>One other thing with the failover setup, the peer will always be in recover state when starting for the duration of the "MCLT" (time in second) in your failover definition (1800 in your case), so it will be in recover start for 30 minutes. I use 300 (5 minutes).</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Le texte aurait été plus facile à écrire en français mais comme la liste est en anglais et que ça peut aider d'autres personnes alors je me suis forcé. En espérant que ce soit clair pour toi !</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Denis Laventure</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Université du Québec à Chicoutimi</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=FR>De :</span></b><span lang=FR> <a href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a> [<a href="mailto:dhcp-users-bounces@lists.isc.org">mailto:dhcp-users-bounces@lists.isc.org</a>] <b>De la part de</b> Rob Morin<br><b>Envoyé :</b> 27 janvier 2016 20:12<br><b>À :</b> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br><b>Objet :</b> ISC-dhcp subnet limit?</span><span lang=EN-US><o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Hello all, my first post here, so please be gentle </span><span lang=EN-US style='font-family:Wingdings'>J</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have inherited 2 dhcp servers, one primary(dhcp-1) & one secondary(dhcp-2) running isc-dhcpd-4.2.4 on Ubuntu 14.0(Trusty)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>We are having a few issues, and I cannot seem to figure out whats going on. I have a few questions, maybe someone can help me with.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US>Is there a max limit to how many subnets can be used in the pools? As currently we are using just over 6000 subnets<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US>Currently our secondary dhcp-server is always in recovery mode, not sure why?<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US>Does it matter if a DISCOVER comes in on eth1 but OFFER goes out on eth0?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>My primary server /etc/dhcpd.conf file<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>authoritative;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>log-facility local7;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>option domain-name "dyn";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>option domain-name-servers 172.30.64.210, 172.30.64.220;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>default-lease-time 1200; <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>max-lease-time 3600; # 1h<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>include "/etc/dhcp/dhcpd_pools.conf";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US># Include the primary configuration<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>include "/etc/dhcp/dhcpd_primary.conf";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>/etc/dhcp/dhcpd_primary has the following<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>                              ## PRIMARY<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>failover peer "tdl-dhcp-failover" {<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  primary; # declare this to be the primary server<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>               address 172.30.128.9;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>               port 647;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  peer address 172.30.128.10;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  peer port 647;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  max-response-delay 30;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  max-unacked-updates 10;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  load balance max seconds 3;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  mclt 1800;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>  split 128;<o:p></o:p></span></p><p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Exert from dhcpd_pools file, starts like this….<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>                              <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>subnet 10.32.0.0 netmask 255.255.255.0 {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  option routers 10.32.0.1;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  pool {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        failover peer "dhcp-failover";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        range 10.32.0.5 10.32.0.254;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  }<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>And finishes like this, with all the subnets in between…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>subnet 10.57.255.0 netmask 255.255.255.0 {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  option routers 10.57.255.1;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  pool {<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        failover peer "dhcp-failover";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        range 10.57.255.5 10.57.255.254;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  }<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Example Exert from logs on both serves of a client that could not get an IP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><br><span style='background:white'>from dhcp-1<span class=apple-converted-space> </span></span><br><span style='background:white'>Jan 27 18:30:31 dhcp-1 dhcpd: DHCPDISCOVER from fc:e9:98:bc:a8:7b (iPhone) via 10.50.170.1<span class=apple-converted-space> </span></span><br><span style='background:white'>Jan 27 18:30:31 dhcp-1 dhcpd: DHCPOFFER on 10.50.170.93 to fc:e9:98:bc:a8:7b (iPhone) via 10.50.170.1<span class=apple-converted-space> </span></span><br><br><span style='background:white'>from dhcp-2<span class=apple-converted-space> </span></span><br><span style='background:white'>Jan 27 18:53:55 dhcp-2 dhcpd: DHCPDISCOVER from fc:e9:98:bc:a8:7b via 10.50.170.1: peer holds all free leases<span class=apple-converted-space> </span></span><br><span style='background:white'>Jan 27 18:54:04 dhcp-2 dhcpd: DHCPDISCOVER from fc:e9:98:bc:a8:7b via 10.50.170.1: peer holds all free leases<span class=apple-converted-space> </span></span></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Never see the ACK.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Any suggestion would be greatly appreciated.. :<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Rob <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Montreal Canada<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman \,serif"'><br><br><br><br><br></span><span lang=EN-US><o:p></o:p></span></p><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>_______________________________________________<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>dhcp-users mailing list<o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><o:p></o:p></span></pre><pre><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><a href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a><o:p></o:p></span></pre></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman \,serif"'> </span><span lang=EN-US><o:p></o:p></span></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif'> </span><span lang=EN-US><o:p></o:p></span></p></div></body></html>