admin:network:ipv6

IPv6

specify [Address] and [Gateway] in /etc/systemd/network/50-default.network. You need a route to your gateway!

/etc/systemd/network/50-default.network
[Network]Gateway=2001:41d0:000a:69ff:ff:ff:ff:ff[Address]
Address=2001:41d0:000a:69af::1/128[Route]
Destination=2001:41d0:000a:69ff:ff:ff:ff:ff
Scope=link
ip -6 addr add YOUR_IPV6_ADDRESS/64 dev eth0

This will add the ipv6 address to your network device. Then, you have to manually add the default gateway. To get its address, you should remove the last two digits of your ipv6 address and put FF:FF:FF:FF:FF instead. This means that 2001:41d0:1:4462::1/64 will give you a default gateway 2001:41d0:1:44FF:FF:FF:FF:FF.

Then, you should add a default route via this gateway

ip -6 r a default via 2001:41d0:1:44FF:FF:FF:FF:FF

This is the standard procedure explained in the OVH guide. It may work in some cases, however, in my case, I could not reach the default gateway and then, I could not add this route.

I found a comment on the OVH forum giving a solution.

You should first add a route to reach the gateway

ip -6 r a 2001:41d0:1:44FF:FF:FF:FF:FF dev eth0

and then, you can add the default route via this gateway

ip -6 r a default via 2001:41d0:1:44FF:FF:FF:FF:FF

(Source: phyks)

Enter http://[::1] (::1 = localhost) in the URL bar.

IPv4 IPv6 Meaning
127.0.0.1 ::1 localhost
0.0.0.0 :: no host
0.0.0.0/0 ::/0 all hosts, all networks
  • Last modified: 2019-12-20 14:21