machine:RaspberryPi B
OS:Raspbian(Debian Wheezy)
参考サイト
http://linuxconfig.org/setup-wireless-interface-with-wpa-and-wpa2-on-ubuntu
設定ファイル
/etc/network/interfaces
-----
auto wlan0
iface wlan0 inet dhcp
wpa-ssid network-name
wpa-psk pre-shared-key
-----
DHCPの場合
-----
auto wlan0
#iface wlan0 inet manual
iface wlan0 inet dhcp
wpa-ssid network-name
wpa-psk pre-shared-key
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
-----
固定アドレスの場合
xMing を使うので固定しておいたほうが良い
-----
auto wlan0
#iface wlan0 inet manual
iface wlan0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
wpa-ssid network-name
wpa-psk pre-shared-key
-----
再起動
# /etc/init.d/networking restart