WLAN / WPA konfigurieren

G

gen2

Grünschnabel
Hallo,

jetzt habe ich mich doch mal dafür entschieden mir ein WLAn zuzulegen und bekomme es leider nicht hin.
Ohne WPA od. WEP funktioniert alles wunderbar. Doch wenn ich die Security einschalte ist es vorbei....


OS: Debian - Kernel: 2.6.18
Mein Treiber: "madwifi"
Code:
04:02.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)

Folgenden Eintrag habe ich der /etc/network/interfaces
Code:
auto lo  lan0   ath0 eth0
iface lo inet loopback

# starte WPA
/etc/init.d/wpa-ifupdown start

iface ath0 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

in der /etc/wpa_supplicant/wpa_supplicant.conf steht folgendes
Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=2
network={
        ssid="MyESSID"
        #scan_ssid=01
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=TKIP CCMP
        psk=<HEX-KEY>
}

und noch ne config "/etc/default/wpasupplicant"
Code:
ENABLED=1
OPTIONS="-w -i ath0 -D madwifi -B"

das manuelle Starten ergibt folgendes:
Code:
# wpa_supplicant -Dwext -i ath0 -c /etc/wpa_supplicant/wpa_supplicant.conf

Associated with 00:14:6c:ab:ff:e2
WPA: CCMP is used, but EAPOL-Key descriptor version (1) is not 2.
WPA: CCMP is used, but EAPOL-Key descriptor version (1) is not 2.
WPA: CCMP is used, but EAPOL-Key descriptor version (1) is not 2.
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:14:6c:ab:ff:e2 (SSID='<MyESSID>' freq=2412 MH

bzw.
Code:
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:14:6c:ab:ff:e2 (SSID='<MyESSID>' freq=2412 MHz)

thx vorab
 
Zuletzt bearbeitet:
Hi,
die
Code:
/etc/wpa_supplicant/wpa_supplicant.conf
musst du schon so verändern, dass bei ESSID und so die richtigen Daten stehen.

zb.:

Code:
ssid="Beispiel"
        #scan_ssid=01
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=TKIP CCMP
        psk=aaaaa

MfG,
Buchi
 
hi,

dem ist auch so....

bei SSID steht meine SSID und bei PSK steht mein Passwort in HEX. Die hier aufgeführten Werte "MyESSID" und <HEX-Key> sind nur Platzhalter. Das PW steht nicht in Hochkommas die ESSID schon.
Im WLAN-Router (Netgear DG834GTB) steht das PW natürlich im Klartext.

Was mich etwas stutzig macht ist der init.d-Eintrag in der interfaces-Datei. Aber mit und ohne geht es nicht und manuell auch nicht.


PS: ich nehme den integrierten pci-adapter meines IBM-T43-Notebooks her.

gruss
gen2
 
Wenn ich nicht ganz falsch liege, dann ist der PSK nicht nur dein Passwort,
sondern eine Kombination aus dem Passwort und der ESSID. Denn ich hatte
auch das Problem mal gehabt.

Nun arbeite ich mit OpenSUSE da ist das einfacher.
 
<SOLVED> WLAN/WPA konfigurieren

Hi,

hab's jetzt selbst gefunden.....

also 2 Dinge waren es:

1. /etc/network/interfaces
Hinzugefügt: wpa-ssid, wpa-key-mgmt, wpa-psk
Code:
iface ath0 inet dhcp
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
        wpa-driver madwifi
        wpa-ssid <SSID>
        wpa-key-mgmt WPA-PSK
        wpa-psk <HEX-PW>

2. /etc/wpa_supplicant/wpa_supplicant.conf
Änderung ap_san von 2 auf 1

Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
network={
        ssid="<SSID>"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=TKIP CCMP
        psk=<HEX-PW>
}

Verstehe zwar nicht so ganz, warum die SSID, PW etc. 2x definiert sein muss....ist zwar etwas komisch, ist aber so.

Ok, soweit von mir
Michi (gen2)
 

Ähnliche Themen

Kein WLAN bei Raspbian

WLAN funktioniert nicht

Wlan soll beim booten automatisch starten

dovecot und postfix Konfiguration Problem

Wlan will nicht mehr (rt2500pci)

Zurück
Oben