elbombillo
Posts: 18
Joined: Thu Aug 23, 2012 4:04 pm

Multiple Wifi?

Thu Nov 08, 2012 7:48 pm

I have a RPi with WiFi adapter, I have two locations with 2 access points. I want to be able to go between two locations and have my RPi connect to either one.

thogue
Posts: 131
Joined: Wed Sep 19, 2012 2:16 am

Re: Multiple Wifi?

Thu Nov 08, 2012 8:24 pm

Wpa_roam

You have have multiple access points in your wpa-supplicant.conf and it will connect to what is available and to the higher priority one multiple are available.

You just just be able to add the access points via wpa_gui and be good to go. I manually configured mine via /etc/network/interfaces and /etc/wpa-supplicant/wpa-supplicant.cond

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Multiple Wifi?

Wed Nov 14, 2012 4:47 am

As a full example....

I don't bother with the GUI at all...

In /etc/network/interfaces

Code: Select all

...
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
In /etc/wpa_supplicant/wpa_supplicate.conf

Code: Select all

update_config=1
network={
        ssid="brutus"
        psk="PASSWD"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
        priority=5
}

network={
        ssid="TNETRezound"
        psk="PASSWD"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
        priority=9
}

network={
        ssid="AnotherSSID"
        psk="PASSWD"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
        priority=5
}
The Priority allows me to select by priority if I have more than one SSID in the same location. As an example, If my HTC Rezound (TNETRezound) is up as a hotspot, it will take priority over any other SSID and it will use it. This is very useful if I am at a location where I don't yet know or have access to the local WiFi system. I can find out what is and then use my phone to make the changes necessary, turn off the phone's hotspot and connect to the local WiFi.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

User avatar
Onira
Posts: 233
Joined: Tue Oct 02, 2012 6:24 pm
Location: Poland

Re: Multiple Wifi?

Wed Nov 14, 2012 7:15 am

Code: Select all

...
iface wlan0 inet manual
...
iface default inet dhcp
why did you put those 2 lines?
I used iface wlan0 inet dhcp
cos such example didn't work for me...
Cogito ergo sum

Return to “Advanced users”