dhclient and custom Linux routing tables (VRF)
mateusz at viste.fr
Fri Jun 7 12:00:57 UTC 2019
Hello Tony & Thomas,
Thank you both for your kind replies. It makes perfect sense for
dhclient not to fiddle with OS-dependent configurations, this is the
major thing I missed. And indeed, I do see now that there is a bash
/sbin/dhclient-script file on my distro. I will have to hack it, or
replace it entirely so it matches my exact need.
Thanks for the pointers!
On 07/06/2019 13:48, 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. ]
More information about the dhcp-users