I just installed Ubuntu Server 20.04.3 in a VMware virtual machine. Now I am not able to use this command:

cat /etc/network/interfaces

as I am not able to see any network interfaces:

No such file or directory

How should I edit my /etc/network/interfaces and assign an IP?

  • Does this answer your question? What's the default /etc/network/interfaces?
    – Error404
    Jan 8, 2022 at 8:41
  • 1
    The method /etc/network/interfaces is long since deprecated. Please check here: askubuntu.com/questions/976464/… Possibly a duplicate.
    – chili555
    Jan 8, 2022 at 14:21
  • You could also use "ip" command to set IP temporary. Jan 8, 2022 at 14:29
  • Use netplan. Edit your question and show me sudo lshw -C network and cat /etc/netplan/*.yaml. Start comments to me with @heynnema or I'll miss them.
    – heynnema
    Jan 8, 2022 at 16:38

1 Answer 1


Since version 18.04 Ubuntu by default uses netplan to configure network.

Go to /etc/netplan, here you will find your network configuration.

It will look something like this:


# This is the network config written by 'subiquity'
      dhcp4: true
  version: 2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .