networkd: change UseMTU default to true. (#6837)

Typically when DHCP server sets MTU it is a lower one. And a lower than usual
MTU is then thus required on said network to have operational networking. This
makes networkd's dhcp client to work in more similar way to other dhcp-clients
(e.g. isc-dhcp). In particular, in a cloud setting, without this default
instances have resulted in timing out talking to cloud metadata source and
failing to provision.

This does not change this default for the Annonymize code path.
This commit is contained in:
Dimitri John Ledkov 2017-09-19 09:26:17 +01:00 committed by Lennart Poettering
parent f2adcd22d5
commit 22043e4317
3 changed files with 7 additions and 3 deletions

5
NEWS
View File

@ -16,6 +16,11 @@ CHANGES WITH 235:
respectively. They complement the existing "set-log-level" and
"set-log-target" verbs, which can be used to change those values.
* systemd-networkd .network DHCP setting UseMTU default has changed
from false to true. Meaning, DHCP server advertised mtu setting is
now applied by default. This resolves networking issues on low-mtu
networks.
CHANGES WITH 234:
* Meson is now supported as build system in addition to Automake. It is

View File

@ -1050,7 +1050,7 @@
<listitem>
<para>When true, the interface maximum transmission unit
from the DHCP server will be used on the current link.
Defaults to false.</para>
Defaults to true.</para>
</listitem>
</varlistentry>
<varlistentry>

View File

@ -222,8 +222,7 @@ static int network_load_one(Manager *manager, const char *filename) {
* even if they are commented in the man?
* These vars might be overwriten by network_apply_anonymize_if_set */
network->dhcp_vendor_class_identifier = false;
/* NOTE: from man: UseMTU=... Defaults to false*/
network->dhcp_use_mtu = false;
network->dhcp_use_mtu = true;
/* NOTE: from man: UseTimezone=... Defaults to "no".*/
network->dhcp_use_timezone = false;