• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] D-Link DWL G510 (rt61 chipsatz) mit PSK/WPA Key

Die WLAN Karte D-Link DWL G510 wird von openSuse 10.2 nur mangelhaft unterstützt, lässt sich aber mit einem Opensource Treiber zum Laufen bringen. Vorgehensweise habe ich hier ausführlich dokumentiert: http://www.matthiaspospiech.de/blog/2007/03/11/d-link-dwl-g510-with-opensuse-102/

Jetzt möchte ich die Verschlüsselung von WEP nach WPA wechseln.
Daran scheitere ich gerade und weiß nicht was ich noch probieren soll.

Hier die Ausgabe verschiedener Programme:

/etc/init.d/network restart

ra0 device: RaLink RT2561/RT61 rev B 802.11g
ra0 configuration: wlan-id-00:19:5b:70:26:ba
ra0 warning: WPA configured but may be unsupported
ra0 warning: by this device
ra0 starting wpa_supplicant
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - ra0 IP address: 192.168.0.120done
Setting up service network . . . . . . . . . . . . . . done.

Matthias:/etc/Wireless/RT61STA # iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 RT61 Wireless ESSID:"dlink"
Mode:Managed Frequency:2.412 GHz Bit Rate=54 Mb/s
RTS thr:eek:ff Fragment thr:eek:ff
Encryption key:eek:ff
Link Quality=0/100 Signal level:-121 dBm Noise level:-111 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

rt61sta.dat

[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=0
SSID=dlink
NetworkType=Infra
Channel=13
AuthMode=WPAPSK
EncrypType=AES
DefaultKeyID=1
Key1Type=0
Key1Str=
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
WPAPSK=xxx
TxBurst=0
PktAggregate=0
WmmCapable=0
APSDCapable=0
APSDAC=0;0;0;0
BGProtection=0
IEEE80211H=0
TxRate=0
RTSThreshold=2347
FragThreshold=2346
RoamThreshold=75
PSMode=CAM
TxPreamble=0
FastRoaming=0
[/quote]

Matthias:/etc/Wireless/RT61STA # route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ra0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 ra0
 
Mit dem neuen Treiber (Beta2) bin ich inzwischen ein bischen weiter gekommen.

Zudem habe ich eine Anleitung gefunden die einen Patch für yast beschreibt:
http://susewiki.org/index.php?title=Setting_up_RT61_Wireless_Cards#Configuring_WPA-PSK

Wenn ich nun die rt61sta.dat weitgehend auskommentiere

# Copy this file to /etc/Wireless/RT61STA/rt61sta.dat
# This file is a binary file and will be read on loading rt2500.o module.

[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=2
TxBurst=0
PktAggregate=0
TurboRate=0
WmmCapable=0
AckPolicy1=0
AckPolicy2=0
AckPolicy3=0
AckPolicy4=0
BGProtection=0
IEEE80211H=0
TxRate=0
RoamThreshold=75
PSMode=CAM
TxPreamble=0
FastRoaming=0

# All parameters below can be set by iwconfig in the if-pre scripts
# if required or enabled here if you wish
# Anything enabled here will be used when EVEN the net interface is brought up
# this will undo any iwconfig pre-up settings.

#SSID=Heimnetz
#SSID=dlink
#NetworkType=Infra
#Channel=13
#AuthMode=OPEN
#AuthMode=WPAPSK
#EncrypType=WEP
#EncrypType=AES
#DefaultKeyID=1
#Key1Type=0
#Key1Str=
#Key2Type=0
#Key2Str=
#Key3Type=0
#Key3Str=
#Key4Type=0
#Key4Str=
#WPAPSK=xxx
#RTSThreshold=2312
#FragThreshold=2312
#PSMode=CAM
#RFMON=0


und die ifcfg-wlan-... über yast2 konfiguriere:
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='D-Link Ethernet controller'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='VQ+S.J1kwj8zp38A'
USERCONTROL='yes'
WIRELESS_AP=''
WIRELESS_AUTH_MODE='psk'
WIRELESS_BITRATE='auto'
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL=''
WIRELESS_CLIENT_CERT=''
WIRELESS_CLIENT_KEY=''
WIRELESS_CLIENT_KEY_PASSWORD=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_EAP_AUTH=''
WIRELESS_EAP_MODE=''
WIRELESS_ESSID='dlink'
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0='h:xxx'
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_PEAP_VERSION=''
WIRELESS_POWER='yes'
WIRELESS_WPA_ANONID=''
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''
WIRELESS_WPA_PSK='xxx'
_nm_name='bus-pci-0000:01:07.0'

dann erhalte ich auch eine Verbindung:
Matthias:/home/matthias/Download # iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

ra0 RT61 Wireless ESSID:"dlink" Nickname:"Matthias"
Mode:Managed Frequency:2.412 GHz Bit Rate=54 Mb/s
RTS thr:eek:ff Fragment thr:eek:ff
Encryption key:xxx
Link Quality=73/100 Signal level:-60 dBm Noise level:-111 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

dann bekomme ich aber kein DHCP
Matthias:/home/matthias/Download # /etc/init.d/network restart
Shutting down network interfaces:
cipsec0
No configuration found for cipsec0
Nevertheless the interface will be shut down. done
eth0 device: nVidia Corporation MCP55 Ethernet (rev a2)
eth0 configuration: eth-id-00:1a:4d:82:8f:c0 done
ra0 device: RaLink RT2561/RT61 rev B 802.11g
ra0 configuration: wlan-id-00:19:5b:70:26:ba done
Shutting down service network . . . . . . . . . . . . . done.
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
lo
lo IP address: 127.0.0.1/8 done
cipsec0
No configuration found for cipsec0 unused
eth0 device: nVidia Corporation MCP55 Ethernet (rev a2)
eth0 configuration: eth-id-00:1a:4d:82:8f:c0
eth0 Startmode is 'manual' skipped
ra0 device: RaLink RT2561/RT61 rev B 802.11g
ra0 configuration: wlan-id-00:19:5b:70:26:ba
ra0 (DHCP) . . . . . no IP address yet... backgrounding. waiting
Setting up service network . . . . . . . . . . . . . . done.

setze ich die IP selber fest und mache manuell einen ping, so erreiche ich den Router nicht:
Matthias:/home/matthias/Download # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.120 icmp_seq=1 Destination Host Unreachable

was kann ich noch ausprobieren? Die Karte läuft, die wlans werden auch gefunden (mit iwlist), das Netzwerk wird korrekt gestartet aber eine Verbindung ist nicht möglich.
 
Nachdem ich im Router auf WPA (statt WPA2) und TKIP umgestellt habe, und in der Konfigurationsdatei rt61sta.dat noch folgende Werte gesetzt habe

SSID=dlink
NetworkType=Infra
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=xxx
ging es.

Woran es jetzt genau lag weiß ich nicht. Aber vermutlich lag es nur noch am Router.
 
Oben