I'm trying to setup my new Wifi dongle I've bought from ModMyPi.
Its working for DHCP but when I try to make it a static IP, I get this error when restarting it:
wpa-roam can only be used with the manual inet METHOD
Here is my /etc/network/interfaces
:
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
Here is my wpa_supplicant.conf
:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="My-Wifi"
psk="my_password"
}
I don't know what else to do to get it to use 192.168.1.2
as its static IP wirelessly. Help?
If it helps, I have a BTHomeHub3 with a WPA & WPA2 compatible key and my SSID is visible.
UPDATE I would like my configuration to support multiple wifi networks setup so that when I move to and from University and Home, My Raspberry Pi can just work wirelessly.
My files are currently like so:
/etc/network/interfaces
: http://pastebin.com/HeP8kgBR
/etc/wpa_supplicant/wpa_supplicant.conf
: http://pastebin.com/RaFkEAx6
UPDATE When I run sudo ifup wlan0
now I am getting this error:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory