dhclient and custom Linux routing tables (VRF)

Bill Shirley bill at c3po.polymerindustries.biz
Sat Jun 8 14:54:11 UTC 2019


One thing that bugs me about Debian's dhclient (might be an Ubuntu thing) is that
if the server sends both option router (3) and option static-routes (33), the script
implements the static-routes but ignores router.

/sbin/dhclient-script:
             # if we have $new_rfc3442_classless_static_routes then we have to
             # ignore $new_routers entirely

Bill

On 6/7/2019 7:48 AM, Tony Finch wrote:
> Mateusz Viste <mateusz at viste.fr> wrote:
>> 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?
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190608/18965863/attachment.html>


More information about the dhcp-users mailing list