When installing Ubuntu20.04 in Windows 11, there is no *. Yaml in the directory of /etc/netplan

Viewed 12

When installing Ubuntu20.04 in Windows 11, there is no *. Yaml in the directory of /etc/netplan/:

enter image description here

enter image description here

How can I fix this?

1 Answers

Odd, when you use the command ip addr what do you see?

Assuming you have network adapters present, you could create a yaml there for your adapters. Here's how mine looks with two network interfaces, one is configured with a static IP, the other uses DHCP to get its address.

$ cat /etc/netplan/01-network-manager-all.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: no
      addresses:
        - 192.168.2.3/24
      gateway4: 192.168.2.1
      nameservers:
          addresses: [192.168.2.1,8.8.8.8]
    enp2s0:
      dhcp4: yes
Related