Question

How to disable ubuntu 14.04 ipv6

Hi,

I want to disable ipv6 on my ubuntu 14.04 system. I have tried to put the end of /etc/sysctl.conf file

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

these three lines and reboot but it can’t take ip address anymore.

How to disable ipv6 from my system?

Show comments

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.

I was also using the MailGun API to send emails and IPv6 was the reason, it was giving the Gateway Timeout Error.

Error resolved when enabled precedence in /etc/gai.conf:

precedence ::ffff:0:0/96 100

I actually finished solving the exact same issue right now with a bit of help from a support person.

First of all let me say this, the support (so far) has been AMAZING and need I say FAST.

Once the support person indicated to me that IPV6 was causing the issue, I immediately searched Google and found this lovely thread. If this thread didn’t exist, I’d probably still have an opened ticket, but instead, @kamaln7 's post worked flawlessly.

Thanks once again @kamaln7 for helping the community out. I owe you one.

Why do you want to disable the future?