Score:-1

cat /etc/network/interfaces No such file or directory

in flag

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?

Someone avatar
my flag
Does this answer your question? [What's the default /etc/network/interfaces?](https://askubuntu.com/questions/214170/whats-the-default-etc-network-interfaces)
chili555 avatar
cn flag
The method `/etc/network/interfaces` is long since deprecated. Please check here: https://askubuntu.com/questions/976464/why-is-the-network-configuration-i-set-in-etc-network-interfaces-ignored-on-ubu/976497#976497 Possibly a duplicate.
John Ronald avatar
ca flag
You could also use "ip" command to set IP temporary.
heynnema avatar
ru flag
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.
Score:1
cn flag

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
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.