Switching between multiple WiFi networks


I have two WiFi networks defined in wpa_supplicant.conf and a suitable priority set for them. But what happens if I want to override this priority and force connection to a particular network ?

I have tried wicd-curses and while it lists available networks and allows you to disconnect just fine it won’t let me connect. I did read elsewhere on this forum that the Navio wifi setup is none stock, maybe this is the cause.

Regardless I am sure there is some Linux command line fu I am missing to switch at will between networks ?

1 Like


Sorry for the delayed response.

Use WPA command line client to switch between networks.

First run the following command:

wpa_cli list_networks

You will get list of all networks configured in wpa_supplicant.conf.

Then run:

wpa_cli select_network network_id

where network_id is id of the network you want to connect to.

1 Like

Perfect, just what was needed.


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