Setup new network interface

This commit is contained in:
sonny 2025-01-31 21:08:13 +01:00
parent 42e0ee3182
commit d27988e54a
7 changed files with 21 additions and 55 deletions

View file

@ -2,7 +2,7 @@
127.0.0.1 localhost
127.0.1.1 zeus
{{ lan_ip_address }} {{ domain_name }}
{{ lan_ip }} {{ domain_name }}
# The following lines are desirable for IPv6 capable hosts
#::1 localhost ip6-localhost ip6-loopback

View file

@ -5,6 +5,6 @@ Name={{ network_interface }}
[Network]
DHCP=ipv4
Address={{ lan_ip_address }}/24
Gateway={{ lan_ip_address[:-3] }}254
DNS={{ lan_ip_address[:-3] }}254
Address={{ lan_ip }}/24
Gateway={{ lan_gateway }}
DNS={{ lan_dns }}

View file

@ -1,9 +0,0 @@
# {{ ansible_managed }}
#
[Unit]
Description=Service which reconfigures the `link1` interface as a temporary workaround for the buggy r8169 driver
[Service]
ExecStart=/usr/bin/networkctl reconfigure link1
Type=oneshot

View file

@ -1,11 +0,0 @@
# {{ ansible_managed }}
#
[Unit]
Description=Hourly service which reconfigures the `link1` network interface
[Timer]
OnCalendar=hourly
[Install]
WantedBy=timers.target