dataset/seed/systemd/templates/network

29 lines
668 B
Text
Raw Permalink Normal View History

2023-01-17 21:43:32 +01:00
#RISOTTO: do not compare
2023-06-23 08:12:05 +02:00
{% set intnb = rougail_index %}
2022-03-08 19:42:28 +01:00
[Match]
2023-06-23 08:12:05 +02:00
{% if netwokd_interface_name_type == 'host' %}
Name=host{{ intnb }}
{% else %}
Name={{ rougail_variable }}
{% endif %}
2022-03-08 19:42:28 +01:00
[Link]
RequiredForOnline=yes
[Network]
LinkLocalAddressing=no
DHCP=no
2023-06-23 08:12:05 +02:00
{% set parent = general.network['interface_' + intnb|string] %}
{% set cidr = parent['network_eth' + intnb|string].split('/')[1] %}
Address={{ parent['ip_eth' + intnb|string] }}/{{ cidr }}
{% set gateway = parent['gateway_eth' + intnb|string] %}
{% if gateway %}
Gateway={{ gateway }}
{% endif %}
{% set dns = general.network.ip_dns %}
{% if dns %}
DNS={{ dns }}
2023-07-31 15:30:32 +02:00
LLMNR=no
2022-03-08 19:42:28 +01:00
ConfigureWithoutCarrier=yes
2023-06-23 08:12:05 +02:00
{% endif %}