User avatar
equivalents
Posts: 28
Joined: Thu Jan 10, 2013 7:06 pm

How to modifiy network interface script for two SSID's

Sat Mar 23, 2013 6:01 pm

Hi, I have my pi working at home, I also want to be able to make it work at my work place. My question is how do I have to modifiy my /etc/network/interfaces file to try more than one SSID. Here is my code.

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid NETGEAR
wpa-psk ***********


auto wlan0:1
iface wlan0:1 inet static
address 192.168.0.21
netmask 255.255.255.0


auto wlan0:2
iface wlan0:2 inet static
address 192.168.1.122
netmask 255.255.255.0



User avatar
equivalents
Posts: 28
Joined: Thu Jan 10, 2013 7:06 pm

Re: How to modifiy network interface script for two SSID's

Tue Mar 26, 2013 4:01 pm

Thankyou, that link helped me figure it out. For others who might come across this post in the future, I used info from the above link posted by DBryant, as well as the following link to figure it out.

"Auto-connect to wireless nets"
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=11517

Return to “Beginners”