From 7772331aa5df0b8106f3523a0070269fae735894 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 17 Mar 2024 21:09:42 -0700 Subject: xyzca init --- etc/systemd/network/default.network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/systemd/network/default.network') diff --git a/etc/systemd/network/default.network b/etc/systemd/network/default.network index cb28d02e..43f05d95 100644 --- a/etc/systemd/network/default.network +++ b/etc/systemd/network/default.network @@ -2,5 +2,5 @@ Name=eth0 [Network] -Gateway=89.213.174.1 -Address=89.213.174.95/24 +Gateway=216.181.107.1 +Address=216.181.107.253/24 -- cgit v1.2.3-70-g09d2 From 1f7639e561760bf83e1630cbef71514fec54928c Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 4 Apr 2024 07:14:01 +0000 Subject: make ipv6 work --- etc/systemd/network/default.network | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'etc/systemd/network/default.network') diff --git a/etc/systemd/network/default.network b/etc/systemd/network/default.network index 43f05d95..dc46831e 100644 --- a/etc/systemd/network/default.network +++ b/etc/systemd/network/default.network @@ -1,6 +1,25 @@ +# 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] -Gateway=216.181.107.1 +[Address] Address=216.181.107.253/24 + +[Address] +# 2606:a8c0:3:38d::1/64 also works, but I use 2606:a8c0:3:38d::a/64 because crunchbits panel reverse DNS support this address +Address=2606:a8c0:3:38d::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:38d::a/48 + +[Route] +Gateway=216.181.107.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 -- cgit v1.2.3-70-g09d2 From f0ff093564f27c7bd3ed6966f4e7fdc6d8c0dc11 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Tue, 9 Apr 2024 01:18:39 -0700 Subject: new ca bad default cloud-init routes --- etc/systemd/network/10-cloud-init-eth0.network | 21 +++++++++++++++++++++ etc/systemd/network/default.network | 25 ------------------------- 2 files changed, 21 insertions(+), 25 deletions(-) create mode 100644 etc/systemd/network/10-cloud-init-eth0.network delete mode 100644 etc/systemd/network/default.network (limited to 'etc/systemd/network/default.network') diff --git a/etc/systemd/network/10-cloud-init-eth0.network b/etc/systemd/network/10-cloud-init-eth0.network new file mode 100644 index 00000000..e1e0bd2d --- /dev/null +++ b/etc/systemd/network/10-cloud-init-eth0.network @@ -0,0 +1,21 @@ +[Address] +Address=2606:a8c0:3:773::a/64 + +[Address] +Address=2606:a8c0:3::75f/128 + +[Address] +Address=38.175.201.185/22 + +[Match] +MACAddress=00:46:d3:d8:15:5d +Name=eth0 + +[Network] +DHCP=no +DNS=9.9.9.9 1.1.1.1 2620:fe::fe 2620:fe::9 + +[Route] +Gateway=2606:a8c0:3::1 +Gateway=38.175.200.1 + diff --git a/etc/systemd/network/default.network b/etc/systemd/network/default.network deleted file mode 100644 index dc46831e..00000000 --- a/etc/systemd/network/default.network +++ /dev/null @@ -1,25 +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 - -[Address] -Address=216.181.107.253/24 - -[Address] -# 2606:a8c0:3:38d::1/64 also works, but I use 2606:a8c0:3:38d::a/64 because crunchbits panel reverse DNS support this address -Address=2606:a8c0:3:38d::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:38d::a/48 - -[Route] -Gateway=216.181.107.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 -- cgit v1.2.3-70-g09d2