Question

Is it possible to TURN OFF private network once enabled on a droplet?

  • Posted on February 10, 2014
  • mcl.co.ukAsked by mcl.co.uk

I created a new droplet and checked the ‘private network’ box, not really knowing what it is for. I don’t need it on my droplet - how can I turn it off?

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.

In order to disable private networking from the command line, you need to edit the file /etc/network/interfaces It will look something like this:

# This file describes the network interfaces available on your
# system and how to activate them. For more information, see
# interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth1 eth0
iface eth0 inet static
        address 95.85.37.158
        netmask 255.255.255.0
        gateway 95.85.37.1
        dns-nameservers 8.8.8.8 8.8.4.4
iface eth1 inet static
        address 10.129.176.173
        netmask 255.255.0.0

eth0 is the public interface, while eth1 is the private interface. Remove the sections about eth1 (highlighted above), and restart your droplet:

sudo shutdown -r now

I known this is a long procedure, but if you are in a hurry, maybe create a snapshot image of this droplet, delete this droplet, then create a new droplet from the image. This new droplet is by default without private network. This is what I have done.

Any one have a response to this?