<div dir="ltr">Hi Troy<div><br></div><div>I can't help you here, but we use a similar approach and that works pretty well for us:</div><div><font face="monospace">class "CUSTOMER001_CPE_DHCP" { </font></div><div><font face="monospace"> match if ( substring ( option agent.circuit-id, 0, 30 ) = "someAwesome String 2 m-a-t-c-h" ); </font></div><div><font face="monospace"> spawn with option agent.circuit-id; lease limit 1;</font></div><div><font face="monospace">}</font><br></div><div><br></div><div><div>And I never saw nor see the issue you are describing. This setup is working fine, although router changes may bite us, because they are not so easy doable</div><div>But our lease time is set to 1h</div><div></div></div><div><br></div><div>This is currently on dhcp-4.3.6-P1 and we have that setup since 4.2 (maybe 4.1, can't remember). the standby machine runs 4.4.1 (no failover involved here)</div><div><br></div><div>/BR</div><div>Philippe</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 30 Oct 2020 at 15:33, Troy Ayers <<a href="mailto:troya@wcta.net">troya@wcta.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<div>We limit each customer, which is uniquely identified with a combination of circuit ID, and remote id, to two IP addresses. <span style="font-size:12pt">Like so:</span></div>
<div><br>
</div>
<div>class "customer" {spawn with concat(option agent.remote-id," interface ",binary-to-ascii(10,8,".",substring(option agent.circuit-id,0,2)));</div>
<div>lease limit 2;}<br>
</div>
<p><br>
</p>
<p>This is reproducible with dhcp 442. There are no other spawn classes. Lease times are 24 hours.<br>
</p>
<p><br>
</p>
<p>Customer has router A, using one IP with mac 11:11:11:11:11:11<br>
</p>
<p>Router A gets disconnected and replaced with Router B.<br>
</p>
<p>Router B gets an IP. This is the 2nd IP with mac 22:22:22:22:22:22<br>
</p>
<p>Router B updates firmware, and reboots. <br>
</p>
<div><br>
</div>
<div>Then we get this over and over...<br>
</div>
<div>DHCPDISCOVER from <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">
22:22:22:22:2</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">2:22</span> via 10.x.x.x: no available billing: lease limit reached in all matching classes (last: 'customer')<br>
</div>
<p><br>
</p>
<p>The clients MAC did not change.<br>
</p>
<p>The clients billing sub-class (concatenated remote id, circuit id) did not change.<br>
</p>
<p><br>
</p>
<p>I've examined the leases file while this is occurring. There is:<br>
</p>
<p>billing subclass "customer" "ShelfXYZ interface 0.0"; </p>
<p>One for Router A's MAC and one for <span style="font-size:12pt">Router B's MAC address</span><span style="font-size:12pt">.</span></p>
<p><br>
</p>
<p>When we run into this, we have to allow their billing subclass to have a lease limit of 3, temporarily.<br>
</p>
<p><br>
</p>
<p>Re-examining the leases file after allowing a "3rd IP", shows that the client gets the same 2nd IP on the Router B, and the leases file shows the same two billing sub-classes & same MAC addresses.<br>
</p>
<p><br>
</p>
<p>I've tried ignore-client-uids, to no effect. <br>
</p>
<p><br>
</p>
<p>What can I do to allow this Router B, without temporarily allowing a lease limit of "3" ?<br>
</p>
<p><br>
</p>
<p>Also, this behavior is not always reproducible, this is what is especially baffling to me.<br>
</p>
<p><br>
</p>
<p>-Troy<br>
</p>
<div id="gmail-m_3603106065279540953Signature">
<div name="divtagdefaultwrapper">
<div name="divtagdefaultwrapper" style="margin:0px">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;margin:0px">
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">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/listinfo/dhcp-users</a><br>
</blockquote></div>