Hey so i wanted to enable IPV6 and for some reason my brain went on to click on private network…
I’ve been looking for a way to access this file /etc/network/interfaces so that I can follow the instructions i found on how to delete eth1. The problem here is that nano /etc/network/interfaces doesnt work… I have no idea how to get to the file i need.
This is what i’m trying to follow
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
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!
when i do nano /etc/network/interfaces this is my contents.
# 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
source /etc/network/interfaces.d/*
and when i do nano /etc/network/interfaces.d/eth1 file is empty.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.