summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-08 15:00:41 +0000
committerXiao Pan <xyz@flylightning.xyz>2025-07-08 15:00:41 +0000
commit98dc3ce681bbe5f0ffcaf6093b8888079a080f36 (patch)
tree8b979401e7757631b3457cb36b3bbc3d5d0df785
parentf8b713212ed8b779414775f97ac4e692b902e39a (diff)
ba network, need 6in4 sit tunnel see arch wiki
-rw-r--r--etc/systemd/network/20-ethernet.network10
-rw-r--r--etc/systemd/network/25-sit.netdev14
-rw-r--r--etc/systemd/network/25-sit.network17
3 files changed, 41 insertions, 0 deletions
diff --git a/etc/systemd/network/20-ethernet.network b/etc/systemd/network/20-ethernet.network
new file mode 100644
index 00000000..0311c124
--- /dev/null
+++ b/etc/systemd/network/20-ethernet.network
@@ -0,0 +1,10 @@
+# edited from arch linux iso 20-ethernet.network file
+[Match]
+Name=en*
+Name=eth*
+
+[Network]
+DHCP=yes
+# https://wiki.archlinux.org/title/IPv6_tunnel_broker_setup
+Tunnel=ipv6net
+
diff --git a/etc/systemd/network/25-sit.netdev b/etc/systemd/network/25-sit.netdev
new file mode 100644
index 00000000..3e1bf632
--- /dev/null
+++ b/etc/systemd/network/25-sit.netdev
@@ -0,0 +1,14 @@
+# https://wiki.archlinux.org/title/IPv6_tunnel_broker_setup
+# man systemd.netdev
+# https://github.com/systemd/systemd/issues/26743
+[Match]
+
+[NetDev]
+Name=ipv6net
+Kind=sit
+MTUBytes=1480
+
+[Tunnel]
+Local=104.224.159.210
+Remote=45.32.66.87
+TTL=255
diff --git a/etc/systemd/network/25-sit.network b/etc/systemd/network/25-sit.network
new file mode 100644
index 00000000..7e6fb6d7
--- /dev/null
+++ b/etc/systemd/network/25-sit.network
@@ -0,0 +1,17 @@
+# https://wiki.archlinux.org/title/IPv6_tunnel_broker_setup
+[Match]
+Name=ipv6net
+
+[Network]
+Address=2607:8700:5500:7c7f::2/64
+Gateway=2607:8700:5500:7c7f::1
+
+[Route]
+Gateway=2607:8700:5500:7c7f::1
+Destination=::/0
+
+[RoutingPolicyRule]
+From=2607:8700:5500:7c7f::2/64
+
+[RoutingPolicyRule]
+From=2607:8700:5500:7c7f::/64