Anda 06.Nov.2010 22:14:03 |
Hallo,
ich kämpfe seit ein paar Stunden meinen Netgear WG111v3 als WLAN zum laufen zu bekommen. Der einfache Teil war die Treiber zu installieren und mit wpa_supplicant zum laufen zu bekommen. Wenn ich manuell über die Shell
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -d
eingebe, dann baut sich die Verbindung auf, also meine ich, die Konfiguration kann nicht so falsch sein.
Meine sysconfig sieht so aus: NOAD="Online alle Aufnahmen" HOSTNAME="easyVDR" WORKGROUP="WORKGROUP" WINUSER="easyvdr" NETWORK="LAN" LAN_NETWORK_DRIVER="AUTODETECT" WAKE_ON_LAN="no" LAN_USE_DHCP="yes" LAN_IP="192.168.1.200" LAN_MASK="255.255.255.0" LAN_GATEWAY="192.168.1.1" LAN_NAMESERVER1="192.168.1.254" LAN_DOMAIN="local" WLAN_NETWORK_DRIVER="wireless/rtl8180" WLAN_USE_DHCP="yes" WLAN_IP="192.168.1.210" WLAN_MASK="255.255.255.0" WLAN_GATEWAY="192.168.1.254" WLAN_NAMESERVER1="192.168.1.254" WLAN_DOMAIN="local" WLAN_SSID="cxc@gmx.net" WLAN_ART="Managed" WLAN_CHANNEL="10" WLAN_SEC="WPA" WLAN_WEP_AUTH="open" WLAN_WEP_KEY_1="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" WLAN_WEP_KEY_2="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" WLAN_WEP_KEY_3="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" WLAN_WEP_KEY_4="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" WLAN_WEP_KEY="2" WLAN_WPA_CONFIG_FILE="/etc/wpa_supplicant.conf" WLAN_WPA_DRIVER="wext" WLAN_WPA_CONFIG_FILE_ON_BOOT="no" WLAN_WPA_EAPOL="1" WLAN_WPA_APSCAN="1" WLAN_WPA_PROTO="WPA" WLAN_WPA_PAIRWISE="TKIP" WLAN_WPA_GROUP="TKIP" WLAN_WPA_PASSPHRASETYPE="ASCII" WLAN_WPA_PASSPHRASE="****"
Fragen:
[*]Wann ist eigentlich die Konfiguration in /etc/wap_supplicant.conf ausschlaggebend und wann die in der sysconf? [*]Was macht eigentlich die Einstellung "Network" genau? nachdem "LANWLAN" nicht funktionierte, habe ich sie auf "LAN" zurückgestellt. [*]Wie ist das Verhältnis der Sysconfig Konfiguration zu der in /etc/network/interfaces ?
Meine /etc/network/interfaces habe ich einmal so aufgebaut, weil ich mit der OSD EInstellung nicht zum Ziel gekommen bin, d.h. das WLAN nie gestartet wurde:
auto wlan0 iface wlan0 inet dhcp wpa-driver wext wpa-conf /etc/wpa_supplicant.conf hostname vdrwlan wirelss_mode managed wireless-essid csc@gmx.net
easyVDR:~# reboot ...
easyVDR:~# ifconfig eth0 Protokoll:Ethernet Hardware Adresse 00:24:8C:7E:DC:E2 inet Adresse:192.168.1.26 Bcast:192.168.255.255 Maske:255.255.0.0 inet6 Adresse: fe80::224:8cff:fe7e:dce2/64 Gültigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:145 errors:0 dropped:0 overruns:0 frame:0 TX packets:163 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:1000 RX bytes:15590 (15.2 KiB) TX bytes:21446 (20.9 KiB) Interrupt:251 Basisadresse:0x6000
lo Protokoll:Lokale Schleife inet Adresse:127.0.0.1 Maske:255.0.0.0 inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:6818 errors:0 dropped:0 overruns:0 frame:0 TX packets:6818 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenlänge:0 RX bytes:4062289 (3.8 MiB) TX bytes:4062289 (3.8 MiB)
Wieder alles weg.. easyVDR:~# ifup wlan0 ifup: interface wlan0 already configured easyVDR:~# ifdown wlan0 cat: /var/run/udhcpc.wlan0.pid: No such file or directory
easyVDR:~# stopvdr stoppe vdr done FATAL: Module lnbp21 is in use. FATAL: Module s5h1420 is in use.
easyVDR:~# ifup wlan0 ioctl: Operation not supported WEXT auth param 4 value 0x0 - udhcpc (v0.9.9-pre) started Sending discover... Sending discover... Sending discover... Lease failed: No lease, failing. Failed to bring up wlan0.
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -d Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge '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' eapol_version=1 ap_scan=1 Priority group 5 id=0 ssid='cxc@gmx.net' Initializing interface (2) 'wlan0' 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)=21 enc_capa=0xf capabilities: key_mgmt 0xf enc 0xf WEXT: Operstate: linkmode=1, operstate=5 Own MAC address: c0:3f:0e:42:bd:fc 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 ioctl: Operation not supported WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted Setting scan request: 0 sec 100000 usec Using existing control interface directory. bind(PF_UNIX): Address already in use ctrl_iface exists and seems to be in use - cannot override it Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore Failed to initialize control interface '/var/run/wpa_supplicant'. You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again.
Failed to add interface wlan0 State: DISCONNECTED -> DISCONNECTED Speicherzugriffsfehler
# ps axu | grep wpa root 10506 0.0 0.0 3668 956 ? Ss 21:57 0:00 /sbin/wpa_supplicant -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D wext -c /etc/wpa_supplicant.conf -C /var/run/wpa_supplicant root 10518 0.0 0.0 3328 756 pts/1 S+ 21:58 0:00 grep wpa
killall wpa_supplicant
easyVDR:~# killall wpa_supplicant easyVDR:~# easyVDR:~# easyVDR:~# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant.conf -d Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge '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' eapol_version=1 ap_scan=1 Priority group 5 id=0 ssid='cxc@gmx.net' Initializing interface (2) 'wlan0' 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)=21 enc_capa=0xf capabilities: key_mgmt 0xf enc 0xf WEXT: Operstate: linkmode=1, operstate=5 Own MAC address: c0:3f:0e:42:bd:fc 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 ioctl: Operation not supported WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted Setting scan request: 0 sec 100000 usec Added interface wlan0 RTM_NEWLINK: operstate=0 ifi_flags=0x1002 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b06 len=8 Ignore event for foreign ifindex 3 RTM_NEWLINK: operstate=0 ifi_flags=0x1003 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added State: DISCONNECTED -> SCANNING Starting AP scan (broadcast SSID) Trying to get current scan results first without requesting a new scan to speed up initial association ioctl: Resource temporarily unavailable Scan results: -1 Failed to get scan results Failed to get scan results - try scanning again Setting scan request: 0 sec 0 usec Starting AP scan (broadcast SSID) RTM_NEWLINK: operstate=0 ifi_flags=0x1003 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b19 len=8 Received 2237 bytes of scan results (6 BSSes) Scan results: 6 Selecting BSS from priority group 5 0: 00:24:fe:4a:22:4f ssid='cxc@gmx.net' wpa_ie_len=24 rsn_ie_len=22 caps=0x11 selected based on WPA IE Trying to associate with 00:24:fe:4a:22:4f (SSID='cxc@gmx.net' freq=2457 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 proto 1 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: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 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_set_operstate: operstate 0->0 (DORMANT) WEXT: Operstate: linkmode=-1, operstate=5 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 RSN: Ignored PMKID candidate without preauth flag RTM_NEWLINK: operstate=0 ifi_flags=0x1003 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b06 len=8 RTM_NEWLINK: operstate=0 ifi_flags=0x1003 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b04 len=12 RTM_NEWLINK: operstate=0 ifi_flags=0x1003 () RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8c02 len=150 RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b15 len=20 Wireless event: new AP: 00:24:fe:4a:22:4f State: ASSOCIATING -> ASSOCIATED wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) WEXT: Operstate: linkmode=-1, operstate=5 Associated to a new BSS: BSSID=00:24:fe:4a:22:4f No keys have been configured - skip key clearing Associated with 00:24:fe:4a:22:4f WPA: Association event - clear replay counter EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 EAPOL: External notification - EAP success=0 EAPOL: External notification - portEnabled=1 EAPOL: SUPP_PAE entering state CONNECTING EAPOL: SUPP_BE entering state IDLE Setting authentication timeout: 10 sec 0 usec Cancelling scan request RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added RX EAPOL from 00:24:fe:4a:22:4f Setting authentication timeout: 10 sec 0 usec IEEE 802.1X RX: version=1 type=3 length=95 EAPOL-Key type=254 key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack) key_length=32 key_data_length=0 replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01 key_nonce - hexdump(len=32): 16 e7 a6 9b 66 d2 26 8e 32 5c 4d cc a0 b6 5d 75 2d 46 2d 46 74 b6 01 dc cd af 61 1a 31 52 19 83 key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00 key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00 key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 State: ASSOCIATED -> 4WAY_HANDSHAKE WPA: RX message 1 of 4-Way Handshake from 00:24:fe:4a:22:4f (ver=1) WPA: Renewed SNonce - hexdump(len=32): 68 93 33 a3 2c 50 49 7d 0f f6 87 c0 e0 be 55 eb c2 d5 db 1b c9 0d 40 d3 4f a1 08 b2 b8 3f 52 48 WPA: PMK - hexdump(len=32): WPA: PTK - hexdump(len=64): WPA: WPA IE for msg 2/4 - 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: Sending EAPOL-Key 2/4 RX EAPOL from 00:24:fe:4a:22:4f IEEE 802.1X RX: version=1 type=3 length=119 EAPOL-Key type=254 key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC) key_length=32 key_data_length=24 replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02 key_nonce - hexdump(len=32): 16 e7 a6 9b 66 d2 26 8e 32 5c 4d cc a0 b6 5d 75 2d 46 2d 46 74 b6 01 dc cd af 61 1a 31 52 19 83 key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00 key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00 key_mic - hexdump(len=16): de c4 73 c3 0b f9 58 6b c3 91 95 c6 c6 78 95 63 State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE WPA: RX message 3 of 4-Way Handshake from 00:24:fe:4a:22:4f (ver=1) WPA: IE KeyData - 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: Sending EAPOL-Key 4/4 WPA: Installing PTK to the driver. WPA: RSC - hexdump(len=6): 00 00 00 00 00 00 wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32 State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE RX EAPOL from 00:24:fe:4a:22:4f IEEE 802.1X RX: version=1 type=3 length=127 EAPOL-Key type=254 key_info 0x3a1 (ver=1 keyidx=2 rsvd=0 Group Ack MIC Secure) key_length=32 key_data_length=32 replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 03 key_nonce - hexdump(len=32): 16 e7 a6 9b 66 d2 26 8e 32 5c 4d cc a0 b6 5d 75 2d 46 2d 46 74 b6 01 dc cd af 61 1a 31 52 19 80 key_iv - hexdump(len=16): 2d 46 2d 46 74 b6 01 dc cd af 61 1a 31 52 19 84 key_rsc - hexdump(len=8): a8 00 00 00 00 00 00 00 key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00 key_mic - hexdump(len=16): c8 aa 27 51 24 3a 6b 5f 59 b1 09 d4 6e 74 81 aa WPA: RX message 1 of Group Key or STAKey Handshake from 00:24:fe:4a:22:4f (ver=1) State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE WPA: Group Key - hexdump(len=32): WPA: Installing GTK to the driver (keyidx=2 tx=0). WPA: RSC - hexdump(len=6): a8 00 00 00 00 00 wpa_driver_wext_set_key: alg=2 key_idx=2 set_tx=0 seq_len=6 key_len=32 WPA: Sending EAPOL-Key 2/2 WPA: Key negotiation completed with 00:24:fe:4a:22:4f Cancelling authentication timeout State: GROUP_HANDSHAKE -> COMPLETED CTRL-EVENT-CONNECTED - Connection to 00:24:fe:4a:22:4f completed (auth) [id=0 id_str=] wpa_driver_wext_set_operstate: operstate 0->1 (UP) WEXT: Operstate: linkmode=-1, operstate=6 EAPOL: External notification - portValid=1 EAPOL: External notification - EAP success=1 EAPOL: SUPP_PAE entering state AUTHENTICATING EAPOL: SUPP_BE entering state SUCCESS EAP: EAP entering state DISABLED EAPOL: SUPP_PAE entering state AUTHENTICATED EAPOL: SUPP_BE entering state IDLE RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added EAPOL: startWhen 0
Jetzt steht die Verbindung. Sieht so aus, als ob der Easyvdr den Verbindungsaufbau stört.
Neuer Versuch: easyVDR:~# reboot
Broadcast message from root@easyVDR (pts/1) (Sat Nov 6 22:02:52 2010):
The system is going down for reboot NOW! ...
easyVDR:~# ifup wlan0 ioctl: Operation not supported WEXT auth param 4 value 0x0 - udhcpc (v0.9.9-pre) started Sending discover... Sending discover... Sending discover... Lease failed: No lease, failing. Failed to bring up wlan0.
stopvdr stoppe vdr done FATAL: Module lnbp21 is in use. FATAL: Module s5h1420 is in use. easyVDR:~# ifup wlan0 ioctl: Operation not supported WEXT auth param 4 value 0x0 - udhcpc (v0.9.9-pre) started Sending discover... Sending discover... Sending discover... Sending select for 192.168.1.29... Lease of 192.168.1.29 obtained, lease time 864000 Resetting default routes adding dns 192.168.1.1 easyVDR:~#
Wie komme ich weiter?
Easy VDR 0.8 stable - läuft noch nicht M3N78-EM Antec Fusion Gehäuse S2300 FF S1400 |
sinai 06.Nov.2010 22:41:51 |
Ich habe niemals eine stabile Verbindung per WPA hinbekommen. Nach Kopieren von 20MB war die Verbindung weg. ohne Verschlüsselung deutlich stabiler. Als Treiber ndiswrapper und nativ getestet - beides wenig zufriedenstellend.
Ich hab mir einen WLAN-Stick gekauft, der nativ mit Linux tut und habe seitdem keine Probleme mehr.
Den Netgear habe ich immer noch in der Ecke liegen...
Andy VDR 1: ASRock mit Atom J1200, NVIDIA GT610, Lüfterlos, TBS 6982 SE mit easyVDR 3.0
|
Anda 06.Nov.2010 23:03:16 |
Welchen Stick hast Du denn?
Allerdings glaube ich nicht, dass das Problem oben mit dem Stick zusammenhängt. Der läuft ja, solange der VDR nicht läuft.
Easy VDR 0.8 stable - läuft noch nicht M3N78-EM Antec Fusion Gehäuse S2300 FF S1400 |
sinai 06.Nov.2010 23:05:55 |
Und du hast auch schon mal einen Film kopiert? Bei mir ging der nie - baer womöglich gibt es ja unterschiedliche Subversionen...
Hab mir den gekauft:
http://www.easyvdr-forum.de/forum/index.php/topic,9886.0.html
Andy
VDR 1: ASRock mit Atom J1200, NVIDIA GT610, Lüfterlos, TBS 6982 SE mit easyVDR 3.0
|
Anda 06.Nov.2010 23:41:46 |
Habe ich gesagt ich will Filme kopieren? Momentan wäre ich shcon einmal glücklich, wenn ich mit ssh und Webinterface auf den VDR käme, ohne ein Kabel durch die Wohnung zu legen. Und so wie der Status aussieht, vermute ich nicht, dass es mit einem anderen Stick besser geht.
Ansonsten finde ich deine Kommentare im Moment wirklich nicht sehr hilfreich. Hast Du einen konkreten Vorschlag oder kannst Du mir zumindest mit den Fragen weiterhelfen, die ich oben gestellt habe? Easy VDR 0.8 stable - läuft noch nicht M3N78-EM Antec Fusion Gehäuse S2300 FF S1400 |
sinai 06.Nov.2010 23:50:42 |
Sorry, ich versuchte zu helfen - wenn du das nicht möchtest, dann suche weiter und versuche eine instabile Verbindung mit dem Netgear hinzubekommen. Mein Tipp war der, dass ich es in Wochen nicht hinbekommen habe und ein anderer Stick ootb ging.
Andy
VDR 1: ASRock mit Atom J1200, NVIDIA GT610, Lüfterlos, TBS 6982 SE mit easyVDR 3.0
|