What is "up ip addr add dev eth0" in /etc/network/interfaces?

September 10, 2018 721 views
Networking Ubuntu 18.04

What is "up ip addr add 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
        gateway 46.101.xxx.x
        up ip addr add dev eth0

So, where did it come from? :-)

1 Answer

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.


  • Tnx for an answer.
    It is a droplet with Ubuntu 18.04.
    I was a little surprised when I saw it.
    Private networking isn't enabled.

Have another answer? Share your knowledge.