How do I set up multiple wireless networks for Raspberry pi with the Linux provided by Emlid?

Raspberry pi 3 Linux wireless config

I need to set up multiple wireless networks in wpa_supplicant.conf . I followed the process as suggested for LInux, but unfortunately still cannot connect to a newly added network. Is there anything different I need to do?

Thsi is what my wpa_supplicant.conf looks like:

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="wireless0"
scan_ssid=1
psk="xxxxxxxx"
id_str=“home”
}

network={
ssid="wireless1"
scan_ssid=1
psk="yyyyyyyyy"
id_str=“cell”
}

and my /etc/network/interfaces:

pi@navio:~ $ more /etc/network/interfaces

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

auto initwifi0
allow-hotplug intwifi0
iface intwifi0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface home inet dhcp
iface cell inet dhcp

It’s not needed to change /etc/network/interfaces file if you want to add new network to the list.

These changes of wpa_supplicant.conf should be enough to make everything work.

Note: if both wireless0 and wireless1 are available, your Raspberry will connect to wireless0 because it’s listed first in configuration file.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.