A week ago, Comcast sent me a new gateway/router, ostensibly to take advantage of the faster speeds they’ve given me. Web and email work fine (and do seem a bit faster), but ssh and osc did not–they were unbearably slow (over 5 minutes to get a response)–and ping ipv6.google.com showed 100% packet loss.
I have to use ssh for work, and with the help of a coworker, we narrowed the problem to ipv6.
We found that disabling ipv6 on my system with sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
solved the problem.
But here’s the weird part: if I reenable ipv6 afterwards with sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 && sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0
the problem does not recur, until the next reboot. This is true even if I run the second command immediately after the first.
I thought perhaps my system was defaulting to ipv6 being disabled, but running just the sysctl command to enable it does not work: I have to explicitly disable it, then enable it. I can do that, but I’d rather not have to.
I am using Network Manager, and it does show ipv6 enabled. The gateway/router settings are locked down by Comcast, so there’s nothing I can change there (and yes, ipv6 is enabled there).
Any ideas what could be causing this and how to fix it?
The initial connection. For example, osc up takes minutes instead of seconds before I get the Updating… responses. Once I do the disable/enable, it stays at seconds.
Well, find out where it comes from. Educated guess is DHCPv6 at which point it probably becomes the question to your provider.
That is strange and I do not have an explanation for it. This and the next address should be equally usabe. Did you try again later, after 10 - 15 seconds?
Is it possible that’s left over from the old gateway/router, cached somewhere on my computer, and for some reason not being updated? If so, where should I look?
At present, not that I know of. But I’d still rather fix it than disable it altogether. So this is coming from the new gateway/router? That entry does disappear when I disable/enable ipv6 on my computer.
Then ask your provider why their router gives you this prefix. May be it is supposed to work but there are other issues on provider side. It is your router that tells clients to try DHCPv6 in the first place.
Because NetworkManager is not aware of it and does not initiate DHCPv6 transaction again.
As a workaround you could try setting ipv6.method connection property to ignore. This should give you the same working prefix but avoid attempt to get address from DHCPv6.