I keep here updated of my research in case someone has an idea reading from my news.
So I looked up that:
Code:
root@x:~# ip -6 route
And I saw that the result is different whether I can ping an IPv6 IP or not.
Working case:
Code:
root@x:~# ip -6 route
2001:xxxx:xxxx:4b3a::/64 dev eth0 proto kernel metric 256
2001:xxxx:xxxx:4b00::/56 dev eth0 proto kernel metric 256 expires 2591970sec
fe80::/64 dev eth0 proto kernel metric 256
default via fe80::xxxx:xxxx:xxxx:f080 dev eth0 proto kernel metric 1024 expires 1608sec
default via fe80::xxxx:xxxx:xxxx:f100 dev eth0 proto kernel metric 1024 expires 1608sec
Not working case:
Code:
root@x:~# ip -6 route
2001:xxxx:xxxx:4b3a::/64 dev eth0 proto kernel metric 256
2001:xxxx:xxxx:4b00::/56 dev eth0 proto kernel metric 256 expires 2591970sec
fe80::/64 dev eth0 proto kernel metric 256
So, it seems my two default gateway disappear.
I used a bash script to loop every few seconds and
ping6 -c1 ipv6.google.com while the default route were still in the result of that command:
Code:
mROUTE="$(ip -6 route)"; while [ -n "$(echo "$mROUTE" | grep "default")" ]; do echo "$mROUTE"; ping6 -c1 ipv6.google.com; sleep 2; mROUTE="$(ip -6 route)"; done; echo "NOPE"; echo "NOPE"; echo "NOPE"; ping6 -c1 ipv6.google.com
And it seemed to loop even after the expiration, because as soon as it expired, I got these lines instead in the
ip -6 route:
Code:
default via fe80::xxxx:xxxx:xxxx:f100 dev eth0 proto kernel metric 1024 expires 8590471sec
default via fe80::xxxx:xxxx:xxxx:f080 dev eth0 proto kernel metric 1024 expires 8590471sec
So I stopped my loop, and used
ping6 ipv6.google.com manually: I got the error. I looked back at
ip -6 route, and the lines were not here anymore.
I tried editing my
/etc/network/interfaces to add the "
gateway" line, then did
service networking restart. I have the same default via appearing in the
ip -6 route, with the same expiration. I'm now waiting for the delay to expire to see if ipv6 will be inaccessible again...