By kacnje
What is “up ip addr add 10.19.0.5/16 dev eth0” in /etc/network/interfaces?
# 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 eth0
iface eth0 inet static
address 46.101.xxx.xxx
netmask 255.255.192.0
gateway 46.101.xxx.x
up ip addr add 10.19.0.5/16 dev eth0
dns-nameservers 8.8.8.8 8.8.4.4
So, where did it come from? :-)
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!
Hey friend!
Admittedly it is difficult to eyeball this as the way it is configured varies not only by distro, but by version. Assuming you’ve not enabled private networking though, that should then be the anchor IP in case you ever use our floating IPs. Our floating IPs communicate to the droplets over a private network rather than the droplet’s public IP.
Jarland
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.