WLan unter Linux mit gleichzeitiger WEP/WPA verschluesselung

Hi Guys.
Ich hoffe ich finde hier einen findigen der vielleicht ne Antwort auf eins meiner Probleme hat.

Also folgendes. Ich hab hier einen Router der Firma SMC stehen, und der hat WEP und WPA gleichzeitig aktiv.
Unter Windows hab ich keine Probleme zu connecten. Aber unter Linux bekomm ich einfach keine Connection. Ich kann aber ohne Probleme auf meiner Arbeit ins WLan. Dort haben wir eine WPA Verschluesselung. Und ich kann auch ohne Probleme auf eine WEP Verschluesselung zugreifen.
Vielleicht hat ja einer von euch eine gute Idee. Ich hab hier mal meine Arbeitsschritte reingestellt.

Als Hardware nutze ich ein Acernotebook welches wirklich komplett unter Linux eingerichtet ist.Zur auswahl hab ich ein Kubuntu 8.10 und eine openSuSE 11.
Code:
 [u]xds@bngl337:~$ lspci[/u]
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 04)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04)
05:00.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
05:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03)
[b]05:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)[/b]
05:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
05:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)
05:04.2 SD Host controller: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01)
05:04.3 FLASH memory: ENE Technology Inc FLASH memory: ENE Technology Inc: (rev 01)
05:04.4 FLASH memory: ENE Technology Inc SD/MMC Card Reader Controller (rev 01)


[u]xds@bngl337:~$ iwlist scanning[/u]
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

eth1 Scan completed :
Cell 01 - Address: 00:04:E2:8B:22:7A
ESSID:"SMC"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.437 GHz (Channel 6)
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
Quality=87/100 Signal level=-42 dBm
[b]IE: WPA Version 1[/b]
[b]Group Cipher : WEP-104[/b]
[b]Pairwise Ciphers (1) : TKIP[/b]
[b]Authentication Suites (1) : PSK[/b]
Extra: Last beacon: 140ms ago


[u]xds@bngl337:~$ sudo vi /etc/wpa_supplicant/wpa_supplicant.conf[/u]
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
network={
ssid="SMC"
scan_ssid=1
proto=WPA
pairwise=TKIP
group=TKIP
psk=e69db40c6af45a79ef4ef0d65da1668e1ddf8337dddc582396959fb8ab6c3222
}

[u]xds@bngl337:~$ sudo wpa_supplicant -i eth1 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -d[/u]
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
Priority group 0
id=0 ssid='SMC'
Initializing interface (2) 'eth1'
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)=22 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:13:ce:9f:3c:e4
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 eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=3):
53 4d 43 SMC
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
[b]Try to find WPA-enabled AP[/b]
[b]0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11[/b]
[b] skip WPA IE - GTK cipher mismatch[/b]
[b]Try to find non-WPA AP[/b]
[b]0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11[/b]
[b] skip - non-WPA network not allowed[/b]
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:04:e2:8b:22:7a
State: SCANNING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:04:e2:8b:22:7a
No keys have been configured - skip key clearing
Network configuration found for the current AP
WPA: No WPA/RSN IE available from association info
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 3 proto 1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT 802.1X
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 01
EAPOL: External notification - portControl=Auto
Associated with 00:04:e2:8b:22:7a
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
Authentication with 00:04:e2:8b:22:7a timed out.
Added BSSID 00:04:e2:8b:22:7a into blacklist
wpa_driver_wext_disassociate
No keys have been configured - skip key clearing
State: ASSOCIATED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=3):
53 4d 43 SMC
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Added BSSID 00:00:00:00:00:00 into blacklist
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
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_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No APs found - clear blacklist and try again
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)
Removed BSSID 00:04:e2:8b:22:7a from blacklist (clear)
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 251 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip WPA IE - GTK cipher mismatch
Try to find non-WPA AP
0: 00:04:e2:8b:22:7a ssid='SMC' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
EAPOL: startWhen --> 0
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: DISCONNECTED -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6

Die, meiner Meinung nach, interessanten Zeilen sind:
20; 44-47; 105-110


Edit:
Argh Dummheit von mir. Hab das WLan Forum einen weiter unten nicht gesehn. Sorry -_-
Wer lesen kann ich klar im Vorteil. Bitte verschieben :-)
 
Meiner Meinung nach ist es sogar eher ein Linuxproblem, da es unter Win ja bei dir läuft, daher hab ich es mal nicht nach Wlan verschoben sondern nach Linux
 
@lightsaver: Ich denke auch, dass es hierher gehört. :)

Du hast den falschen Group-Cipher-Wert in der wpa_supplicant.conf. Dein iwlist-Scan zeigt eindeutig "Group Cipher : WEP-104", du verwendest aber "group=TKIP" in deiner Konfiguration. Die Angabe bei "Group Cipher" muss mit der Option "group=" in der wpa_supplicant.conf übereinstimmen. Ausserdem solltest du bekanntgeben, dass ein Pre-Shared-Key verwendet wird: "key_mgmt=WPA-PSK".
 
Zurück
Oben