I'm new to Ubuntu server and want set up my netplan so that I can use two different IP addresses for two separate interfaces (Wifi and Ethernet). So far, Ethernet works fine, but I can't get the wifi to connect.
After I run sudo netplan apply and check networkctl, I can see that my wifi interface has no carrier, and is stuck configuring. Below is the netplan I'm using
network:
version: 2
renderer: networkd
ethernets: enp2s0: dhcp4: no dhcp6: no addresses: [192.168.0.210/24] gateway4: 192.168.0.1 nameservers: addresses: [8.8.8.8,8.8.4.4]
wifis: wlx00265abdaf50: dhcp4: no dhcp6: no addresses: [192.168.0.211/24] gateway4: 192.168.0.1 nameservers: addresses: [192.168.0.1, 8.8.8.8] access-points: "myNetwork": password: "myPassword"I'm also unsure of having the two instances of the nameserver bit - I couldn't find an example of someone trying to do the same thing.
Wifi adapter is: D-Link System DWA-130 802.11n Wireless N Adapter(rev.E) [Realtek RTL8191SU]
32 Answers
To use wifi with netplan.io and systemd-networkd, you need to manually install the wpasupplicant package. It is not automatically installed as a dependency since wifi support is optional on servers.
2Also eth and wireless need to be in different subnets eg 192.168.1.2 and 192.168.2.2 as they are different controllers