Looking for /Etc/Network/Interfaces Is Missing?

So I have a newly installed ubuntu machine. I was going to enter some network setup, but this file is missing: /etc/network/interfaces. I also checked with root. There is a local loopback on the machine. Shouldn't it be ? is it just a matter of creating it from scratch and it will be picked up automaticly on reboot ?

1 Answer

You haven't told us your Ubuntu version, but I assume you have Ubuntu 18.04 or above based on your missing file.

Ubuntu 18.04 and above use netplan to configure your network, and /etc/network/interfaces does not exist anymore. The netplan configuration file should be at /etc/netplan/.

You may still switch back to using the old method (not recommended) by installing the relevant packages:

$ sudo apt update
$ sudo apt install ifupdown net-tools

If you would like to change your NICs names to the old representation, you'll need to change a grub parameters at /etc/default/grub: Change GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0". Perform $ sudo update-grub afterwords and reboot.

Any other changes regarding IP addresses, dns and other configuration methods should be the same as you know from past expirience.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest