<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 07/04/14 21.15, Simon Hobson wrote:<br>
    </div>
    <blockquote
      cite="mid:90AE772F-090F-4A4A-B844-3355843118B0@thehobsons.co.uk"
      type="cite">
      <pre wrap="">alessandro macuz <a class="moz-txt-link-rfc2396E" href="mailto:alessandro.macuz@gmail.com"><alessandro.macuz@gmail.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">I could deduce the gateway from the DHCP server IP address because normally they coincide but that would be my assumption.
</pre>
      </blockquote>
      <pre wrap="">
You've heard the expression that "assume" makes an "ass" out of "u" and "me", well your assumption is badly wrong. In home and small networks it is likely to be true (not mine though). But once you get to business networks then its more likely that the DHCP server is not at the same IP address as the router.</pre>
    </blockquote>
    In my home network, that is certainly also not true, the DHCP server
    resides on a linux server, that also hosts the DNS. Then I have 3
    different gateways, they each provide one IP4 public address.<br>
    <blockquote
      cite="mid:90AE772F-090F-4A4A-B844-3355843118B0@thehobsons.co.uk"
      type="cite">
      <pre wrap="">

However, I'm still not quite sure why you are doing things the long way round. What's specifically wrong with using the route that comes with the lease ? Or more to the point, what's wrong with dealing with it when you get it ? And BTW - have you considered the possibility of getting different answers to your two queries ?

For many clients (certainly the ISC one on Linux) you can supply your own script/modify the stock one. That means you can go and accept a lease, then use your own script to fiddle with the system. Or at least I thin that's the case.</pre>
    </blockquote>
    There are scripts you can tinker with (I have done it, it is not
    that difficult) and there are even hooks that you can use to attach
    your own SW to.<br>
    <blockquote
      cite="mid:90AE772F-090F-4A4A-B844-3355843118B0@thehobsons.co.uk"
      type="cite">
      <pre wrap="">

_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 
</pre>
  </body>
</html>