Page 1 of 1

How to modifiy network interface script for two SSID's

Posted: Sat Mar 23, 2013 6:01 pm
by equivalents
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


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

Posted: Mon Mar 25, 2013 9:15 pm
by DBryant

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

Posted: Tue Mar 26, 2013 4:01 pm
by equivalents
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