LoginSignup
16
16

More than 5 years have passed since last update.

raspberry pi + 無線LANアダプタでWPA接続

Posted at
raspberry pi + 無線LANアダプタでWEP接続

raspberry pi + 無線LANアダプタでWPA接続

ルーターがWPA接続の場合は、上記にあるようなiwconfigではだめで、wpa_passphraseを使う必要がある。以下、設定手順。

su -
wpa_passphrase SSID KEY > /etc/wpa_supplicant/wpa_supplicant.conf

次に以下のコマンドを使い、wpa_supplicant/wpa_supplicant.confに「proto=WPA WPA2」と「key_mgmt=WPA-PSK」と「pairwise=CCMP TKIP」を追加する。

nano /etc/wpa_supplicant/wpa_supplicant.conf
(内容は省略)

次にnano /etc/network/interfacesから設定を一部変更する。

#iface wlan0 inet manual
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

と変更して、ネットワーク関連のデーモンを再起動

/etc/init.d/networking restart

最後にスーパーユーザから抜ける
exit


使用した無線LANアダプタ:WLI-UC-GNM2
使用したOS:2013-02-09-wheezy-raspbian
使用したRPi:Raspberry Pi Model B
DebianでのWPA接続設定については
http://www.miuxmiu.com/archives/2011/06/10/linux_ubuntu_debian_wpa_wireless_lan_settings_command.html
を参考に致しました。

16
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
16