Wifi doesn't work on Ubuntu server 20.04
by MilkTea from LinuxQuestions.org on (#5DHQ6)
I am trying to enable my wifi on a ubuntu server 20.04. My current /etc/netplan/00-installer-config.yaml looks like below.
Code:# This is the network config written by 'subiquity'
network:
ethernets:
enp3s0:
dhcp4: true
optional: true
version: 2
wifis:
wlx984827af4e82:
dhcp4: false
optional: true
addresses: [192.168.1.10/24]
gateway4: 192.168.103.1
nameservers:
addresses: [192.168.1.1]
access-points:
"my-ssd":
password: "my-wifi-password"I tried Quote:
and got
Quote:
but wifi was still down.
Tried Quote:
did not help either.
In addition, even though the "optional" is set to true for both network interfaces, it still takes more than 2 minutes in the systemd-networkd-wait-online.service.
Quote:
Ethernet works fine.
How can I enable wifi and how to prevent slow boot if either ethernet or wifi does not present. Thanks.


Code:# This is the network config written by 'subiquity'
network:
ethernets:
enp3s0:
dhcp4: true
optional: true
version: 2
wifis:
wlx984827af4e82:
dhcp4: false
optional: true
addresses: [192.168.1.10/24]
gateway4: 192.168.103.1
nameservers:
addresses: [192.168.1.1]
access-points:
"my-ssd":
password: "my-wifi-password"I tried Quote:
netplan apply |
Quote:
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlx984827af4e82.service changed on disk. Run 'systemctl daemon-reload' to reload units. Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlx984827af4e82.service changed on disk. Run 'systemctl daemon-reload' to reload units. |
Tried Quote:
systemctl daemon-reload |
In addition, even though the "optional" is set to true for both network interfaces, it still takes more than 2 minutes in the systemd-networkd-wait-online.service.
Quote:
2min 110ms systemd-networkd-wait-online.service |
How can I enable wifi and how to prevent slow boot if either ethernet or wifi does not present. Thanks.