Re: Loss of Network Adress is DHCP Server failed for some hours



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



On 02/10/2017 15:05, Oliver Freyermuth via networkmanager-list wrote:
[...] Another option would be to increase the DHCP timeout, which
seems to translate into the time "NetworkManager keeps dhclient
alive before killing it".

That's right, this is the way we think should be addressed.

Sadly, this can only be set per connection, which makes it hard to
roll this out onto a large set of servers which should use default
DHCP configuration.
Well, you can set it system wide. See:
https://bugzilla.redhat.com/show_bug.cgi?id=1350830#c7


It would be really nice if NetworkManager would behave like *any*
other DHCP client here, or just let dhclient do its job properly
instead of killing it regularly, breaking the rule of least
surprise.

Any thoughts on this? Any help on the matter?

In NetworkManager you have the ipv4.may-fail=yes property.
So, NetworkManager takes into account that ipv4 (and so dhcp) may
fail, and would stop keeping trying the connection, but could mark the
connection as active if ipv6 succeeds.
Please note however that ipv4.may-fail=no would not prevent the
connection to fail: it would just ensure that to activate the
connection you need the success of the ipv4 method (also if an address
for ipv6 is acquired in the meanwhile).
The fact that an ipv4 connection may fail (also one with dhcp) is a
feature: this would allow for instance to setup multiple connections
with different priorities on the same interface, giving first a try to
the dhcp connection and then falling back to another one with static
ipv4 address or with 802.1x configuration.

If you really want your dhcp connection to keep trying forever the
only viable solution at present seems to be the ipv4.dhcp-timeout
property.
Maybe we could manage to keep trying also with a brand new value to
the ipv4.method... see:
https://bugzilla.redhat.com/show_bug.cgi?id=1350830#c1
Apart from that, there is nothing I would change.

Francesco


Cheers, Oliver



_______________________________________________ networkmanager-list
mailing list networkmanager-list gnome org 
https://mail.gnome.org/mailman/listinfo/networkmanager-list

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEWw0H+TwdTVfQ8jil6Tt6PuC/5W8FAlnSVOcACgkQ6Tt6PuC/
5W9CzAf+NCMI4xRaseX0hDa1+LZY4PQRIJ0DZvjuDwzSOI9Y3iMsmoHtIy5GM02Z
cWXPXhgBbFmIBI30nr8QqP3gsXQwWYcqLK0uPcdr6jpAw3QL44fxUuLvEWDOfnIr
FWPdFFhTrdl1EJ0wrVnU9Ttf36+6wvXS1JjL5ryfzIzTbh55mIz6bpKjaBI414/h
AK6A1xF8riOjBfOaXBXuW1agd2osFpuayEIjaDMQETyEvL+T0Y/GhNQIPYtqKYRF
oLB1ePVaW00p1+2JRUocPkYNqnRl3sgeBXZXKJbes7pQk4CTc0/+lQKNuHz5ejFg
ywMGxiGO21LHAJFqnKCL9VO/rs8yyg==
=syfh
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]