summaryrefslogtreecommitdiff
path: root/etc/systemd/network/10-cloud-init-eth0.network
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-02-22 12:08:06 +0000
committerXiao Pan <xyz@flylightning.xyz>2025-02-22 12:08:06 +0000
commitae05f47c2bd42125b8f14b5c1796244f140812ef (patch)
treece746fe010ba42e77c5578c8147274fd6d5096de /etc/systemd/network/10-cloud-init-eth0.network
parentea9f4353a279a0ac7257e65dbf4527173810b207 (diff)
force ipv4 DNS because cannot ping outside ipv6
Diffstat (limited to 'etc/systemd/network/10-cloud-init-eth0.network')
-rw-r--r--etc/systemd/network/10-cloud-init-eth0.network8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/systemd/network/10-cloud-init-eth0.network b/etc/systemd/network/10-cloud-init-eth0.network
index 31ea88f6..9d931fd7 100644
--- a/etc/systemd/network/10-cloud-init-eth0.network
+++ b/etc/systemd/network/10-cloud-init-eth0.network
@@ -7,6 +7,14 @@
[Match]
Name=eth0
+[Network]
+# Start at some time between 2025-02-20T08:32Z and 2025-02-22T11:21Z, this VPS
+# can't ping public network ipv6, e.g., `ping 2606:4700:4700::1111` will have
+# no response. So default ipv6 DNS will not work, I have to force to use ipv4
+# DNS here to make the VPS partially work. But still, can't ping outside ipv6
+# issue is not fixed.
+DNS=9.9.9.9 1.1.1.1
+
[Address]
Address=216.126.232.27/22