0

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?

1 Answers1

3

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:

00-installer-config.yaml

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