Tom Lewis
Posts: 22
Joined: Mon Jul 02, 2012 12:14 pm

Multipul Wifi Networks

Sat May 18, 2013 2:28 pm

Hello Raspberry Pi Community!

I finally got around to setting up my wifi dongle, which is awesome, I would like to be albe to take my pi to a friends and auto connect to his wifi when im there, could I pre-enter the ssid and psk details? would I just duplicate the auto wlan0 settings?

Here is my current interfaces file.

/etc/network/interfaces

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.1

auto wlan0
iface wlan0 inet dhcp
wpa-ssid SKY88888
wpa-psk IIIIIIII

pjc123
Posts: 913
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Multipul Wifi Networks

Sat May 18, 2013 6:06 pm

You need to set up the /etc/wpa_supplicant/wpa_supplicant.conf file in combination with the /etc/interfaces file, which will allow you to set up multiple networks, as well as connections to open wifi (Mickey D's, Starbucks, etc.) if so desired. There are a ton of examples on this forum on how to do that.
My Raspberry Pi Project Page:
https://www.flaminghellmet.com/launch/

User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

Re: Multipul Wifi Networks

Sun May 19, 2013 1:06 am

Two files to edit:
/etc/wpa_supplicant/wpa_supplicant.conf
/etc/network/interfaces

And yes, you can use the gui one.
startx
then look in your start menu for the wifi gui.
Antikythera

Return to “Beginners”