Ubuntu – dumthe network interface on start-up

networkingservervirtualbox

I'm currently using Ubuntu Server 16.04 x86_64 on a Virtualbox VM.

I need to set up a dummy interface that comes up on boot. I have added the module dummy to /etc/modules and tried to bring it up puting the following lines in /etc/network/interfaces:

auto dummy0
iface dummy0 inet static
address 10.0.0.1
netmask 255.255.255.0
gateway 10.0.0.1

But after reboot I can't see the interface, if I made it manualy using ip link command it cames up without a problem so I'd like to ask if any one knows of a method to make this interface como up at boot.

Thanks in advance.

Best Answer

Could it be the network manager taking over?

As per this wiki, check that /etc/NetworkManager/NetworkManager.conf contains:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

Check that etc/network/interfaces wasn't overwritten, if so, add your changes again, then reboot. See what happens.

If you don't need the NetworkManager, you may remove it.

sudo apt-get remove network-manager

Check this related answer.

Related Question