I've got an dedicated server hosted by KimSufi that's running Ubuntu Server 18.04. While I've goto both an IPv4 address and an IPv6 address, I keep getting random dropouts on IPv6. Doing a ping -6 google.com
when it's dropped out yields this:
Network is unreachable
If I try sudo ifup eth0`, then I get this:
RTNETLINK answers: File exists Failed to bring up eth0.
...as the interface is already up - just IPv4 only. By executing ifup -n eth0
however, I can see a list of commands it executes when bringing the interface up. In particular, executing the following command appears to fix the issue temporarily:
/sbin/ip -family inet6 route add default via 2001:41d0:e:07ff:ff:ff:ff:ff
....then (after a bit of a delay), testing via ping -6 google.com
works again.
However, it drops out again randomly soon after.
Does anyone know what's going on, and how I can stop the default IPv6 route from disappearing?
Edit: The IPv6 section of /etc/network/interfaces
looks like this:
iface eth0 inet6 static
address 2001:41d0:e:074b::1
netmask 128
dns-nameservers 2001:41d0:3:163::1
post-up /sbin/ip -family inet6 route add 2001:41d0:e:07ff:ff:ff:ff:ff dev eth0
post-up /sbin/ip -family inet6 route add default via 2001:41d0:e:07ff:ff:ff:ff:ff
pre-down /sbin/ip -family inet6 route del default via 2001:41d0:e:07ff:ff:ff:ff:ff
pre-down /sbin/ip -family inet6 route del 2001:41d0:e:07ff:ff:ff:ff:ff dev eth0
Based on comments provided so far, I would try replacing the routing on the interface config with the following:
... and see if that has any affect on the reliabiltiy of the default route.