diff --git a/bundles/systemd-networkd/files/template-iface-dhcp.network b/bundles/systemd-networkd/files/template-iface-dhcp.network index 65c4a67..19fd0d8 100644 --- a/bundles/systemd-networkd/files/template-iface-dhcp.network +++ b/bundles/systemd-networkd/files/template-iface-dhcp.network @@ -7,7 +7,20 @@ Name=${interface} [Network] DHCP=yes IPv6AcceptRA=yes + +[DHCPv4] +UseDomains=${str(config.get('use_dhcp_domains', False)).lower()} UseHostname=no +UseMTU=${str(config.get('use_dhcp_mtu', True)).lower()} +UseNTP=${str(config.get('use_dhcp_ntp', False)).lower()} +UseTimezone=no + +% if config.get('send_hostname', True): +SendHostname=yes +Hostname=${node.name.split('.')[-1]} +% else: +SendHostname=no +% endif % if config.get('forwarding', False): IPForward=yes diff --git a/nodes/kunsi-t470.py b/nodes/kunsi-t470.py index cc55fee..691bb9f 100644 --- a/nodes/kunsi-t470.py +++ b/nodes/kunsi-t470.py @@ -31,6 +31,8 @@ nodes['kunsi-t470'] = { 'interfaces': { 'enp0s31f6': { 'dhcp': True, + 'use_dhcp_domains': True, + 'send_hostname': False, }, # there is also wlp4s0, but that's managed by netctl },