problema con wpa_supplicant e ipw [RISOLTO]
Moderatore: Staff
1) Citare sempre la versione di Slackware usata e la versione del Kernel. Questi dati aiutano le persone che possono rispondere.
2) Citare il tipo di hardware coinvolto in modo dettagliato.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT. Non usare termini gergali come procio, mobo e simili per identificare i componenti hardware.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
abbiamo vinto una battaglia
Codice: Seleziona tutto
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.0
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ACPI: PCI Interrupt 0000:06:0b.0[A] -> GSI 22 (level, low) -> IRQ 23
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Radio Frequency Kill Switch is On:
Kill switch must be turned off for wireless networking to work.
ipw2200: Detected geography ZZD (13 802.11bg channels, 0 802.11a channels)
giusto?
marco
ps: sistemato questo dovrei essere pronto per provare wpa_supplicant -c /etc/wpa_supplicant.conf -ieth2 -Dwext e fare le configurazioni del post di bart http://www.slacky.it/wikislack/index.ph ... VGN-FS285H
Kill switch must be turned off for wireless networking to work bastava spostare la levetta frontale...
ok... ora ho in lsmod lo stesso che ha bart nel tutorial per installare slackware sul suo sony.
direi che posso provare a fare le configurazioni che ha suggerito lui lì.... procedo!
quando do modprobe ipw2200 in automatico parte tutta la configurazione ma non il wpa_supplicant; quindi do wpa_supplicant -c /etc/wpa_supplciant.con -ieth2 -Dwext e ottengo:
Codice: Seleziona tutto
root@widow:~# wpa_supplicant -c /etc/wpa_supplicant.conf -ieth2 -Dwext -dd
Initializing interface 'eth2' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 10 - start of a new network block
scan_ssid=0 (0x0)
ssid - hexdump_ascii(len=6):
57 47 55 36 32 34 WGU624
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK (ASCII passphrase) - hexdump_ascii(len=55): [REMOVED]
priority=9 (0x9)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 9
id=0 ssid='WGU624'
Initializing interface (2) 'eth2'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:0e:35:dd:e9:d3
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface eth2
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth2' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth2' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b19 len=8
Received 253 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 9
0: 00:17:9a:44:dd:d6 ssid='WGU624' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:17:9a:44:dd:d6 (SSID='WGU624' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=15
Wireless event: cmd=0x8b19 len=8
Received 252 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 9
0: 00:17:9a:44:dd:d6 ssid='WGU624' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:17:9a:44:dd:d6 (SSID='WGU624' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: ASSOCIATING -> ASSOCIATING
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=15
Wireless event: cmd=0x8b19 len=8
Received 481 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 9
0: 00:17:9a:44:dd:d6 ssid='WGU624' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:17:9a:44:dd:d6 (SSID='WGU624' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: ASSOCIATING -> ASSOCIATING
a questo punto credo che siamo davvero vicini
come procedo?
grazie in anticipo,
marco
Si tranquillo, lo dice anche a me quando ho la wireless spenta....basta accenderla.insanet ha scritto:quanto sono idiota, per togliere Radio Frequency Kill Switch is On:
Kill switch must be turned off for wireless networking to work bastava spostare la levetta frontale...
ok... ora ho in lsmod lo stesso che ha bart nel tutorial per installare slackware sul suo sony.
direi che posso provare a fare le configurazioni che ha suggerito lui lì.... procedo!
Allora visto che adesso il kernel è ok devi semplicemente configurare quei 3 files.
Ogni volta che fai una modifica a quei files e vuoi provare se funziona devi ovviamente riavviare la rete. La rete si riavvia con:
Codice: Seleziona tutto
sh /etc/rc.d/rc.inet1 restartCodice: Seleziona tutto
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=0
ssid="INSERISCI QUI IL TUO ESSID"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="INSERISCI QUI LA PASSWORD"
priority=9
}
Codice: Seleziona tutto
ifconfigPer vedere se la scheda wireless funziona lancia un:
Codice: Seleziona tutto
iwlist eth2 scanCONSIGLIO: Affinché la tua Slackware ti veda la rete wireless protetta da wpa tu devi lanciare prima:
Codice: Seleziona tutto
wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i eth2Si giusto. Wpa_supplicant.conf è' identico a quello che ti ho appena postato? Hai inserito il tuo essid e la tua password? Che versione di wpa usi e dove l'hai presa?insanet ha scritto:ok bart, ho sistemato i 3 files, però prima di poter fare il restart delle reti dovrei avere un wpa_supplicant funzionante, giusto?
ecco, questo al momento cicla sullo stato "associating" come ti ho scritto nel mio ultimo post.
come procedo?
grazie in anticipo,
marco
il mio wpa_supplicant.conf è davvero identico al tuo con pass e ssid cambiati ovviamente per matchare la rete in cui mi trovo.Bart ha scritto:Si giusto. Wpa_supplicant.conf è' identico a quello che ti ho appena postato? Hai inserito il tuo essid e la tua password? Che versione di wpa usi e dove l'hai presa?
uso wpa_supplicant v0.4.9 installata con installpkg che ho trovato nella directory testing del dvd della slackware 11.
grazie,
marco
RISOLTO
ciao bart,Bart ha scritto:Si perfetto, anche io ho quella versione lì.
Hai fatto iwlist eth2 scan? Ti vede le reti? Prova come ti ho detto, riavvia, controlla bene quei tre files in caso di errori, controlla che il canale sia corretto (il mio è l'11 magari te ne usi un altro). Fa un po' di prove.
intanto grazie, in secundis finalmente mi vede la mia rete! Alleluhia:
Codice: Seleziona tutto
root@widow:~# iwlist eth2 scan
eth2 Scan completed :
Cell 01 - Address: 00:17:9A:44:DD:D6
ESSID:"WGU624"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:on
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
Quality=99/100 Signal level=-21 dBm
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Extra: Last beacon: 252ms ago
ecco il risultato del comando wpa_supplicant -c /etc/wpa_supplicant.conf -D wext -i eth2 :
Codice: Seleziona tutto
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~# sh /etc/rc.d/rc.inet1 eth2_restart
**** /sbin/dhcpcd: not running
/etc/rc.d/rc.inet1: eth2 is 'Configuration of ipw2200 based on pat's wpa_supplicant'
dhcpcd: MAC address = 00:0e:35:dd:e9:d3
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~# wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i eth2
Trying to associate with 00:17:9a:44:dd:d6 (SSID='WGU624' freq=0 MHz)
Associated with 00:17:9a:44:dd:d6
WPA: Key negotiation completed with 00:17:9a:44:dd:d6 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:17:9a:44:dd:d6 completed (auth)
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~#
root@widow:~#
SIIIIIIIIIIIIIIII!!! SI È COLLEGATO!!!!!!!!!!!!!!!!!!!
ALLELUHIA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ho provato pure la navigazione web: va una bomba!
grazie veramente tantissimo ragazzi!!!!!!!!!!!!
in particolare un ENORME grazie a bart che mi ha seguito passo passo finchè
questa scheda bastarda non ha funzionato
ora posso evitare di usare windows tra 10 giorni ovvero quando
qua passeranno tutte le reti in wireless e leveranno i cavi!!!
ora mi chiedevo... come lo posso fare collegare in automatico nonappena
accendo lo switch frontale del portatile? credo di dover lanciare wpa_supplicant con opzione -B, ma dove mettere questa istruzione? in quale file?
grazie veramente ragazzi,
marco e renato
Codice: Seleziona tutto
# Initialize the networking hardware.
if [ -x /etc/rc.d/rc.inet1 ]; then
. /etc/rc.d/rc.inet1
fiCodice: Seleziona tutto
# Initialize the networking hardware.
if [ -x /etc/rc.d/rc.inet1 ]; then
. /etc/rc.d/rc.inet1 &
fiPer farlo partire al boot credo che basti aggiungere a /etc/rc.d/rc.local
la stringa di wpa_supplicant:
Codice: Seleziona tutto
wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i eth2Quel file (/etc/rc.d/rc.local) serve per far partire tutto ciò che vuoi all'avvio. Se qualcosa deve avviarsi al boot, basta che lo scrivi lì. Prova come ti ho detto e fammi sapere.
SUNTO CONFIGURAZIONI FUNZIONANTI
/etc/wpa_supplicant.conf
Codice: Seleziona tutto
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=0
ssid="il_mio_essid"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="la mia pass in testo semplice"
priority=9
}
Codice: Seleziona tutto
# Config information for eth0:
IPADDR[0]="192.168.66.65"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]="192.168.66.66"
NETMASK[2]="255.255.255.0"
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY="192.168.66.1"
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="eth2"
USE_DHCP[4]=""
DHCP_KEEPRESOLV[4]=""
WLAN_IWPRIV[4]="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=la mia pass in testo semplice"
WLAN_WPA[4]="wpa_supplicant"
Codice: Seleziona tutto
VERBOSE=1
WPA="y"
if [ "$WPA" = "y" -a -x /usr/sbin/wpa_supplicant ]; then
if [ "$(pidof wpa_supplicant)" ]; then
echo "wpa_supplicant already running."
else
echo "Starting wpa_supplicant..."
/usr/sbin/wpa_supplicant -Bw -i eth2 -c /etc/wpa_supplicant.conf -D wext
sleep 5
fi
echo "Checking with wpa_cli..."
echo "**************************"
wpa_cli status
echo "**************************"
fi
case "$HWADDR" in
## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
# *)
# INFO="Any ESSID"
# ESSID="any"
# ;;
## ---------- END SECTION TO REMOVE ------------
00:0E:35:*)
INFO="ipw2200 embedded card"
ESSID="WGU624"
MODE="Managed"
CHANNEL="1"
RATE="auto"
KEY="pass in esadecimale calcolata con hexdump"
;;
esac
Codice: Seleziona tutto
eth2 Link encap:Ethernet HWaddr 00:0E:35:DD:E9:D3riguardo /etc/rc.d/rc.local ho preferito non metterci niente delle cose del wpa_supplicant in quanto non mi servono quando avvio la macchina ma quando decido di connettermi.
spero che questo post possa servire a quanti di voi stanno in condizioni simili alle mie e voglioni passare al wpa tenendo presente che io ho questo hw/sw:
kernel: 2.6.18.3
hw wireless embedded: 06:0b.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
ieee e ipw2200: quelli del kernel 2.6.18.3 abilitati secondo:
http://img83.imageshack.us/my.php?image=11846144um7.jpg e http://img204.imageshack.us/my.php?imag ... 793gy7.jpg
wpa_supplicant: wpa_supplicant v0.4.9 di Pat trovato nella dir testing di slackware 11 e installato con installpkg
ipw-firmware: 3.0
grazie dinuovo a bart che mi ha guidato passo passo e
a tutta questa stupenda community
ciao a tutti,
renato e marco

