bundles/systemd-networkd: some more dhcp settings
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
51ee9be424
commit
8536e87475
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue