diff options
Diffstat (limited to 'etc/systemd/network')
-rw-r--r-- | etc/systemd/network/10-cloud-init-eth0.network | 38 | ||||
-rw-r--r-- | etc/systemd/network/default.network | 6 |
2 files changed, 6 insertions, 38 deletions
diff --git a/etc/systemd/network/10-cloud-init-eth0.network b/etc/systemd/network/10-cloud-init-eth0.network deleted file mode 100644 index 70765533..00000000 --- a/etc/systemd/network/10-cloud-init-eth0.network +++ /dev/null @@ -1,38 +0,0 @@ -# not fully understood -# https://unix.stackexchange.com/q/509430/ -# man `systemd.network` -# https://superuser.com/q/1562380 -# https://docs.netgate.com/pfsense/en/latest/network/ipv6/subnets.html - -[Match] -Name=eth0 - -[Network] -IPv6AcceptRA=false - -[Address] -Address=216.126.232.27/22 - -[Address] -Address=2606:a8c0:3::75f/128 - -[Address] -# another ipv6 address for aa wireguard+swgp into -# not sure if it is corret, but it works -Address=2606:a8c0:3:773::b/64 - -[Address] -# the last address seems is the default? -# ...:1/64 also works, but I use ...:a/64 because crunchbits panel reverse DNS support this address -# 2024-06-27, ...:1/64 seems doe not work any more, not sure why -Address=2606:a8c0:3:773::a/64 -# use the following will not need GatewayOnLink=yes in [Route] section, but I'm not sure if it is correct, I'm not sure if those ips could be accessed without gateway, more see https://superuser.com/q/1562380 -#Address=2606:a8c0:3:773::a/48 - -[Route] -Gateway=216.126.232.1 - -[Route] -Gateway=2606:a8c0:3::1 -# GatewayOnLink=yes needed for 2606:a8c0:3::1 gateway, maybe because 2606:a8c0:3::1 is not in the same subnet as 2606:a8c0:3:38d::a/64? see: https://serverfault.com/q/814419 -GatewayOnLink=yes diff --git a/etc/systemd/network/default.network b/etc/systemd/network/default.network new file mode 100644 index 00000000..b1b56f25 --- /dev/null +++ b/etc/systemd/network/default.network @@ -0,0 +1,6 @@ +[Match] +Name=eth0 + +[Network] +Gateway=198.176.49.1 +Address=198.176.49.213/24 |