コンソールから設定してみたのでメモ
まず無線のインターフェイス名を調べる
うちの場合はeth1で認識されていた
$ iwconfig
次に接続したいアクセスポイントの情報を調べる
# iwlist eth1 scan
eth1 Scan completed :
Cell 01 - Address: XX:XX:XX:XX:XX:XX
ESSID:"FON_FREE_INTERNET"
Mode:Managed
Frequency:2.417 GHz (Channel 2)
Quality:4/5 Signal level:-66 dBm Noise level:-92 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Cell 02 - Address: XX:XX:XX:XX:XX:XX
ESSID:"MyPlace"
Mode:Managed
Frequency:2.417 GHz (Channel 2)
Quality:4/5 Signal level:-66 dBm Noise level:-92 dBm
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
/etc/sysconfig/wpa_supplicant を編集
# Use the flag "-i" before each of your interfaces, like so:
# INTERFACES="-ieth1 -iwlan0"
#INTERFACES=""
INTERFACES="-ieth1"
# Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
#DRIVERS=""
DRIVERS="-Dwext"
# Other arguments
# -u Enable the D-Bus interface (required for use with NetworkManager)
# -f Log to /var/log/wpa_supplicant.log
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log"
パスフレーズの暗号化を行い次のステップで使用
$ wpa_passphrase MyPlace xxxxxxxxxx
network={
ssid="MyPlace"
#psk="xxxxxxxxxx"
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}
iwlistとwpa_passphraseの結果を参考に /etc/wpa_supplicant/wpa_supplicant.conf を編集
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="MyPlace"
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP
group=CCMP
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}
上記の設定が問題なく済んでいれば
以下のコマンドで接続できる、ハズ
# ifdown eth1
# service wpa_supplicant start
# dhclient eth1
dhclientでなくifupを使うとうまくできないので調べ中
0 件のコメント:
コメントを投稿