diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-06-28 00:41:45 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-06-28 00:41:45 +0000 |
commit | d38506b3814adfc8bf8743d3a829c9ba41612e76 (patch) | |
tree | 00d0037fb4bccc9ab8b4b1029ee177f6a1dd9702 /etc/systemd/network | |
parent | 6cf51ce232dc7975ffea8bc10994ad3c827289c6 (diff) |
feat: config ipv6
Diffstat (limited to 'etc/systemd/network')
-rw-r--r-- | etc/systemd/network/default.network | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/systemd/network/default.network b/etc/systemd/network/default.network index c20fc696..3bcf67dd 100644 --- a/etc/systemd/network/default.network +++ b/etc/systemd/network/default.network @@ -4,3 +4,10 @@ Name=eth0 [Network] Gateway=172.22.255.253 Address=172.22.246.184/20 +# not sure if this is correct or not, but it works +Address=2408:4001:29b:6500::1/128 +# /64 also works, not sure which is more correct +#Address=2408:4001:29b:6500::1/64 +# only enable DHCP seems won't make ipv6 work, it adds some routes, seems not very useful +# note it seems also show ipv6 gateway via `ip -6 r`, but that ipv6 address seems not persistent so I'm not adding it here +#DHCP=yes |