Some additional information:
running dhclient directly (stopped the NetworkManager before) with the
dhclient.conf works as expected, which is why I'm blaming NM for this
problem.

I also decided to check the source files (
https://github.com/NetworkManager/NetworkManager) and found what might be
causing the problem:
https://github.com/NetworkManager/NetworkManager/blob/master/src/dhcp/nm-dhcp-dhclient-utils.c#L312-L325

the parser is quite bad. it doesn't ignore sections (starting with '{') but
it ignores the '}' symbol. Also, if you have an "interface" inside the
section, it gets ignored.
I understand there are reasons to ignore the "timeout" and "retry"
directives because at least the timeout should be controlled by the NM, but
where do I set that?



On Wed, 2 Jan 2019 at 11:51, Bruno L. Albrecht <[email protected]> wrote:

> Hello all,
>
> I've been struggling with some configuration here and hope you could give
> me a hint.
>
> Currently using
>
>    - Ubuntu 18.04,
>    - kernel 4.15.0-43-generic,
>    - NetworkManager version 1.10.6,
>    - dhclient version isc-dhclient-4.3.5
>
>
> Installed Ubuntu in a virtual machine (Virtual Box) and edited the network
> connections to have a Host only adapter, disabled the DHCP on VirtualBox.
>
> My objective: to configure the DHCP client's fallback address and timeout.
>
> What I did: edited the /etc/dhcp/dhclient.conf to contain a lease option
> for the mentioned network adapter with a specific IP address.
>
> I attached a few files:
>
>    - dhclient.conf
>    - dhclient-enp0s8.conf (check lines 42-43, where the lease should end)
>    - journalctl.txt (output of "journalctl -u NetworkManager" after
>    stopping the dhclient app and restarting the NetworkManager service)
>
> Seems like the NetworkManager is incorrectly overwriting the dhclient.
>
> Any other info I should send?
>
> Best regards and happy 2019!
> Bruno
>
> --
>   Eng. Bruno Landau Albrecht
>   e-mail/G-Talk: [email protected]
>   http://hardwaresw.blogspot.com.br/
>


-- 
  Eng. Bruno Landau Albrecht
  e-mail/G-Talk: [email protected]
  http://hardwaresw.blogspot.com.br/
_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list
  • DHCP fallback address Bruno L. Albrecht via networkmanager-list
    • Re: DHCP fallback address Bruno L. Albrecht via networkmanager-list

Reply via email to