These settings seem to work OK on my Pi A+ with a cheap WiFi dongle (WIFI 150MBPS WIRELESS ADAPTOR 802.11 B G N LAN NETWORK MINI USB DONGLE ADAPTER)
/etc/network/interfaces
auto lo
iface lo inet loopback
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.50
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
(yeah, I know, there are probably better ways of doing this...)
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="XXXXXX"
psk="XXXXXX"
}
No comments:
Post a Comment