bundles/systemd-networkd: some more dhcp settings
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-04-18 11:05:42 +02:00
parent 51ee9be424
commit 8536e87475
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 15 additions and 0 deletions

View file

@ -7,7 +7,20 @@ Name=${interface}
[Network] [Network]
DHCP=yes DHCP=yes
IPv6AcceptRA=yes IPv6AcceptRA=yes
[DHCPv4]
UseDomains=${str(config.get('use_dhcp_domains', False)).lower()}
UseHostname=no 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): % if config.get('forwarding', False):
IPForward=yes IPForward=yes

View file

@ -31,6 +31,8 @@ nodes['kunsi-t470'] = {
'interfaces': { 'interfaces': {
'enp0s31f6': { 'enp0s31f6': {
'dhcp': True, 'dhcp': True,
'use_dhcp_domains': True,
'send_hostname': False,
}, },
# there is also wlp4s0, but that's managed by netctl # there is also wlp4s0, but that's managed by netctl
}, },