I tried using wpa-supplicants to be able to connect to multiple WiFi's (not simultaneously).

This only works with manual it seems and not with DHCP. Writing the SSID and the password directly in /etc/network/interfaces works for one network.

From the interfaces file it seems only one network can be specified. Any ideas?

EDIT: By 2 networks I mean my wireless home network and e.g. the network at university. I want my pi to have a (un)ordered list of networks and I want to connect to one available. It is enough, when this happens on startup, but it would be nice if it tries to reconnect, when the connection is lost..

  • If you are referring to moving between wireless networks and connecting to whichever is active at the time, take a look at this question.
    – bobstro
    Sep 3, 2015 at 14:13
  • I use wicd-curses - It saved allot of time messing around with that supplicant file. The answer here shows you how to use if for reconnecting, but you can use it to "remember" many hot spots, and it will autoconnect to the strongest one. raspberrypi.stackexchange.com/a/9750/894
    – Piotr Kula
    Sep 3, 2015 at 15:05
  • possible duplicate of How to automatically reconnect WiFi?
    – Piotr Kula
    Sep 3, 2015 at 15:05
  • @bobstro : This is what I need with one important change: This method only works with an static IP. I need it to work with dhcp Sep 3, 2015 at 15:12
  • @ppumkin : I do not have a screen or any other access to the pi of it ideas not connected to a WiFi. As far as I got it it is impossible to use the tool via ssh and the same WiFi (tried) or to connect to an network not in reach... Thanks for all your answers :) Sep 3, 2015 at 15:15


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.