Question

Why do I get "connect: Network is unreachable" when trying to setup IPv6 on my Ubuntu droplet?

I followed this tutorial to enable IPv6 on an existing droplet with Ubuntu 18.04. When I try to ping6 anything, it immediately returns “connect: Network is unreachable”. What could be the reason?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Assuming that you’ve used the provided v6 ips and rebooted the system after, i’d say that this might be a formatting issue and you could use something like dos2unix to fix it or copy the contents of the file to a text editor locally and then remove the /etc/network/interfaces file(do a back’up of the file prior to that if you haven’t already) and create it again and type in the text instead of copy/paste. This method worked for me in the past when i’ve had formatting issues(Well assuming that’s the actual issue).

What does running ‘ip -c a’ show?

Also you might consider running ‘/etc/init.d/networking restart’ instead of rebooting the server.

You might have made a mistake in the configs but without seeing the config files nobody here will be able to help you troubleshoot this issue. Follow the guide again and check for errors. Otherwise just spawn a new droplet with enabled v6 from the start and move ur stuff(if any) over to it.