<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 20, 2017 at 9:49 AM, Mark Spring <span dir="ltr"><<a href="mailto:mspring@nktelco.com" target="_blank">mspring@nktelco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Patrick,</div><div dir="auto"><br></div><div dir="auto">Cable labs spec mandates that they must hand out an IP before they come online. I've fought with them all I can, the new gear boots too quickly and the new modems boot too slow. I'm just trying to find a way to trigger from the NAK. Certainly not a isc issue, just trying to find a good trigger!</div><div dir="auto"><br></div><div dir="auto">Mark</div><br><div class="gmail_quote"><div>On Thu, Jul 20, 2017 at 9:46 AM Mark Spring <<a href="mailto:mspring@nktelco.com" target="_blank">mspring@nktelco.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Nope, this is normal. </div></div><div><div class="h5"><div><br><div class="gmail_quote"><div>On Thu, Jul 20, 2017 at 8:45 AM perl-list <<a href="mailto:perl-list@network1.net" target="_blank">perl-list@network1.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div>Mark,</div><div><br></div><div>That is completely normal.  The device 00:03:e6:6f:42:14 previously had an address of 192.168.100.20 and attempted to renew such address.  Apparently that address is not valid on the network your DHCP server is on.  So, a NAK was sent followed by a discover from the client.  The client and server then negotiated a 10.4.2.191 address.</div></div><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><br></div><div style="font-family:Andale Mono;font-size:10pt;color:#000000">What is the actual problem that you are having as I am not sure this has anything to do with it...<br><br><hr id="m_-6284999042334313170m_-356048392000292523m_-4655113904330375476zwchr"><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>"Mark Spring" <<a href="mailto:mspring@nktelco.com" target="_blank">mspring@nktelco.com</a>><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>Sent: </b>Thursday, July 20, 2017 8:31:30 AM<br><b>Subject: </b>Re: Script to run on DHCPNAK<br></blockquote></div><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"></blockquote></div></div></div></div><div><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div>isc, just one server  here is an example<br><div><div><i><span face="monospace, monospace" style="font-family:monospace,monospace">Jul 19 10:04:36 dhcp dhcpd: DHCPREQUEST for 192.168.100.20 from 00:03:e6:6f:42:14 via <a href="http://10.4.0.1" target="_blank">10.4.0.1</a>: wrong net</span></i></div><div><i><span face="monospace, monospace" style="font-family:monospace,monospace">Jul 19 10:04:36 dhcp dhcpd: DHCPNAK on 192.168.100.20 to 00:03:e6:6f:42:14 via 10.4.0.1</span></i></div><div><i><span face="monospace, monospace" style="font-family:monospace,monospace">Jul 19 10:04:39 dhcp dhcpd: DHCPDISCOVER from 00:03:e6:6f:42:14 via 10.4.0.1</span></i></div><div><i><span face="monospace, monospace" style="font-family:monospace,monospace">Jul 19 10:04:40 dhcp dhcpd: DHCPOFFER on 10.4.2.191 to 00:03:e6:6f:42:14 via 10.4.0.1</span></i></div><div><i><span face="monospace, monospace" style="font-family:monospace,monospace">Jul 19 10:04:40 dhcp dhcpd: DHCPREQUEST for 10.4.2.191 (192.168.100.3) from 00:03:e6:6f:42:14 via 10.4.0.</span></i></div><div><i><span face="monospace, monospace" style="font-family:monospace,monospace">Jul 19 10:04:40 dhcp dhcpd: DHCPACK on 10.4.2.191 to 00:03:e6:6f:42:14 via 10.4.0.1</span></i></div></div><br></div><div class="gmail_extra"><br clear="all"><div><div class="m_-6284999042334313170m_-356048392000292523m_-4655113904330375476gmail_signature"><div><div><div><br><div><div style="font-size:small">Mark Spring<br></div><span style="font-size:small">Information Systems Manager</span><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Jul 20, 2017 at 8:22 AM, perl-list <span><<a href="mailto:perl-list@network1.net" target="_blank">perl-list@network1.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><br>Are the NAK and ACK coming from the same server?  Can you post example log messages of the NAK and ACK and related communication?  I assume this is ISC DHCP that we are speaking of and not some proprietary DHCP server?</div><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><br><hr id="m_-6284999042334313170m_-356048392000292523m_-4655113904330375476m_7362953434195411861zwchr"><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><br></blockquote></div><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><span><div>I am having some issues with network gear, and while arguing with vendors about who's problem it really is..I noticed that my device receives a NAK before it receives the proper IP address from our server(when the gear comes back online). If I can track this down in the logs then I can look for the ACK that follows, login to the device and reboot it properly. <br><div><div><div class="m_-6284999042334313170m_-356048392000292523m_-4655113904330375476m_7362953434195411861gmail_signature"><div><div><div></div></div></div></div></div>
</div></div>

</span><br></blockquote></div></div></div></div></blockquote></div></div>


</blockquote></div></div></div></div><div><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div style="font-family:Andale Mono;font-size:10pt;color:#000000"><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">NKTelco</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">301 W. South St.</span><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">New Knoxville, OH 45871</span></div><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">Phone: 1-888-NKTELCO</span></div><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">Fax: <a href="tel:(419)%20753-2950" value="+14197532950" target="_blank">419-753-2950</a></span><div><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">This message and the file(s) attached are confidential and proprietary</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">information of NKTelco for the sole use of the intended recipient. Any </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">unauthorized review, distribution, disclosure, copying, use, or </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">dissemination, either whole or in part, is strictly prohibited. Do not </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">transmit these documents, in any form, to any third party without the </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">expressed written permission of NKTelco.</span></div></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div><div dir="ltr">-- <br></div><span class="im HOEnZb"><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br><div><div style="font-size:small">Mark Spring<br></div><span style="font-size:small">Information Systems Manager</span><br></div></div></div></div></div>

<br>
</span><div class="HOEnZb"><div class="h5"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">NKTelco</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">301 W. South St.</span><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">New Knoxville, OH 45871</span></div><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">Phone: 1-888-NKTELCO</span></div><div><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">Fax: <a href="tel:(419)%20753-2950" value="+14197532950" target="_blank">419-753-2950</a></span><div><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">This message and the file(s) attached are confidential and proprietary</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">information of NKTelco for the sole use of the intended recipient. Any </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">unauthorized review, distribution, disclosure, copying, use, or </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">dissemination, either whole or in part, is strictly prohibited. Do not </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">transmit these documents, in any form, to any third party without the </span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34);background-color:rgb(255,255,255)">expressed written permission of NKTelco.</span></div></div></div></div><br></blockquote><div><br></div><div>I don't see any "on nak" event, so you could look into:<br></div><div>- log to syslog, and see if syslog can trigger on a string, or if it can write logs without long buffering.<br></div><div>- set up an "on commit" event and try to match one of your devices getting a wrong address.  Have the event call an outside script to do the reboot.  You will want to start a separate process and return control to the DHCP server quickly, not have it wait for a reboot to finish.<br><br>-- <br></div><div>Bob Harold<br><br></div></div></div></div>