<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    One thing that bugs me about Debian's dhclient (might be an Ubuntu
    thing) is that<br>
    if the server sends both option router (3) and option static-routes
    (33), the script<br>
    implements the static-routes but ignores router.  <br>
    <br>
    /sbin/dhclient-script:<br>
    <font color="#993300"><tt>            # if we have
        $new_rfc3442_classless_static_routes then we have to</tt><tt><br>
      </tt><tt>            # ignore $new_routers entirely</tt><tt><br>
      </tt></font> <br>
    Bill<br>
    <br>
    <div class="moz-cite-prefix">On 6/7/2019 7:48 AM, Tony Finch wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.1906071238030.16652@grey.csi.cam.ac.uk">
      <pre class="moz-quote-pre" wrap="">Mateusz Viste <a class="moz-txt-link-rfc2396E" href="mailto:mateusz@viste.fr"><mateusz@viste.fr></a> wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">
I have read dhclient's documentation, and did not find any mention of either
VRFs or custom routing tables... Have I missed some obvious trick here?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Network configuration changes from DHCP are handled by the
dhclient-script, which is probably supplied by your Linux distribution.

You might find you have to re-do most of the dhclient-script logic to
support VRFs, so you might be better off providing a complete replacement
script rather than using the hooks.

[ One awkward thing I have noticed is that Debian's dhclient-script always
continues after running the enter hooks, whereas the ISC versions exit
early if the enter hooks exit with a non-zero ststus, so the enter hooks
might or might not allow you to completely override parts of the
dhclient-script. ]

Tony.
</pre>
    </blockquote>
  </body>
</html>