I am running ubuntu in a Virtualbox VM. I have configured the interface via the GUI(and it works as expected). However, I can't find /etc/network/interfaces file. then where can i find primary configuration files for ipv4 network interface . linux version:20.04 . <note:i have recently started learning linux>
11 Answer
The file /etc/network/interfaces is not an universal standard. Almost every Linux distribution has its own tool for configuring networks – this file is used specifically by the 'ifupdown' tools from Debian.
Recently, however, Ubuntu has switched from ifupdown to Netplan, so /etc/netplan/*.yaml is the new location for network settings (and the syntax is completely different).
Other Linux distributions may have their own locations as well. For example, Gentoo uses netifrc which is configured through /etc/conf.d/net, and various distros using systemd-networkd would keep configuration in /etc/systemd/network.