Report this

What is the reason for this report?

How can I disable IPv6 on Digital ocean droplet?

Posted on July 2, 2017

I followed the directions in the tutorial “How To Enable IPv6 for DigitalOcean Droplets”. I’ve decided not to use IPv6 with this droplet and would like to disable it.



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!

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.

Why would you want to?

Hi @digitalocean718

Since you haven’t noted what OS you’re using, so I’m guessing it’s Ubuntu/Debian. Go and edit this file /etc/network/interfaces. And remove the IPv6 section that looks similar to this and then reboot the server:

iface eth0 inet6 static
        address primary_ipv6_address
        netmask 64
        gateway ipv6_gateway
        autoconf 0
        dns-nameservers 2001:4860:4860::8844 2001:4860:4860::8888 209.244.0.3

It’s not possible to remove the “IPv6” nor “Private Networking” from the droplet via the control panel after it’s been activated. But by removing the configuration, we actually disable the functionality completely.

Is the reboot necessary after updating those IPv6 settings? I have issues with IPv6 and some third party server monitoring software and it is on my production database server. I can’t afford to have that server down and setting up a hot-swap or standby server will be time consuming for my very limited needs.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.