WLAN -- Netgear WG511T mit Debian Etch und WPA einrichten

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
Rapid
Beiträge: 3
Registriert: 30.09.2007 16:26:14

WLAN -- Netgear WG511T mit Debian Etch und WPA einrichten

Beitrag von Rapid » 30.09.2007 18:02:59

Servus Miteinander,

nach langem Windows geeiere hatte ich mich auch entschieden auf meinem Lappi ein Linux zu installieren ,habe mich dann für das Debian 4.0 mit KDE entschieden. Das hat auch alles wunderbar funktioniert, bis es an meine W-Lan Karte ging :-(

Ich habe mich bei Google, Wiki und verschiedenen Foren umgeschaut ...aber ich bekomme diese Karte einfach nicht ans laufen ! Wobei sie Unter Win 2000 fabelhafte Dienste tätigt.

Nun richte ich mich mit ganzer Hoffnung an euch
Hier meine Daten:

Mein Laptop: Toshiba Satellite Pro 4200 ; P III mit 500MHZ ; ca 320MB Ram

Meine W-Lan Karter: Netgear WG511T mit Atheros Chip


meine etc/network/interfaces.conf

Code: Alles auswählen

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# Interface beim booten hochfahren

auto ath0
iface ath0 inet dhcp

pre-up iwconfig ath0 essid Sigi channel 10 freq 2.457g 

wpa_supplicant -Dwext -i ath0 -c/etc/wpa_supplicant.conf 
meine wpa_supplicant.conf

Code: Alles auswählen

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1

# 0: Der Treiber des Interfaces kümmert sich um das Scannen von Netzen und die AP Auswahl. 
# Dieser Mode sollte benutzt werden, wenn man eine Verschlüsselung auf ein Kabelnetzwerk legt. 
# 1: wpa_supplicant kümmert sich um das Scannen von Netzen und die AP Auswahl. 
# 2: Fast wie 0, es wird aber mit Hilfe von Sicherheitsrichtlinien und der SSID zu APs verbunden (BSSID wird nicht unterstützt) 
# 
# Normalerweise funktioniert entweder Mode 1 oder Mode 2.

ap_scan=1

# Netzwerkdefinitionen

network={
	ssid=Sigi
	scan_ssid=1
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=TKIP
	group=TKIP
	#psk=blablablub
        psk=großer_Schlüssel
}

Ausgabe von iwconfig

Code: Alles auswählen

lo        no wireless extensions.

irda0     no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:"Sigi"
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:0F:B5:66:FD:F0
          Bit Rate:0 kb/s   Tx-Power:18 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Ausgabe von ifconfig

Code: Alles auswählen

ath0      Protokoll:Ethernet  Hardware Adresse 00:0F:B5:66:FD:F0
          inet6 Adresse: fe80::20f:b5ff:fe66:fdf0/64 GÃŒltigkeitsbereich:Verbindung
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 SendewarteschlangenlÀnge:0
          RX bytes:0 (0.0 b)  TX bytes:2178 (2.1 KiB)

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:62 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 SendewarteschlangenlÀnge:0
          RX bytes:4192 (4.0 KiB)  TX bytes:4192 (4.0 KiB)

wifi0     Protokoll:UNSPEC  Hardware Adresse 00-0F-B5-66-FD-F0-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:9716
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 SendewarteschlangenlÀnge:199
          RX bytes:2445 (2.3 KiB)  TX bytes:3520 (3.4 KiB)
          Interrupt:11 Speicher:d4a60000-d4a70000[/color]
Ausgabe von
ndiswrapper -l

Code: Alles auswählen

2802w : driver installed
Ausgabe von
lspci

Code: Alles auswählen

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:05.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:05.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:05.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:05.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:07.0 Communication controller: Agere Systems 56k WinModem (rev 01)
00:09.0 IRDA controller: Toshiba America Info Systems FIR Port Type-DO
00:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 20)
00:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 20)
00:0c.0 Multimedia audio controller: Yamaha Corporation YMF-744B [DS-1S Audio Controller] (rev 02)
01:00.0 VGA compatible controller: S3 Inc. 86C270-294 Savage/IX-MV (rev 11)
06:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
...und so sieht ein ifup ath0 aus:

Code: Alles auswählen

ioctl[SIOCSIWMODE]: Invalid argument
Could not configure driver to use managed mode
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:0f:b5:66:fd:f0
Sending on   LPF/ath0/00:0f:b5:66:fd:f0
Sending on   Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

KennYblue
Beiträge: 63
Registriert: 26.02.2006 17:33:21

Beitrag von KennYblue » 01.10.2007 06:06:51

Hi,

das gleiche hatte ich auch und bis jetzt nur eine vorüber gehende Lösung gefunden.

schau mal hier http://www.debianforum.de/forum/viewtopic.php?t=90252
so läuft es bei mir, ist aber nur ne vorübergehende Lösung.

Rapid
Beiträge: 3
Registriert: 30.09.2007 16:26:14

Beitrag von Rapid » 04.10.2007 18:46:31

Moin Moin

Danke schonmal für den Link ! Ich bin dadurch schonmal etwas weitergekommen

Ich habe bis dato folgendes gemacht

apt-get remove wpasupplicant
apt-get install wpasupplicant

musste dann die /var/run/wpa_supplicant/ath0 löschen

habe dann mit folgenden Befehlen vom Master in den Managed Mode wechseln müssen

wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode managed

Habe dann hierüber mein Netzwerk konfiguriert
iwconfig ath0 essid Sigi channel 10 freq 2.457g

habe dann wpa angeschmissen
wpa_supplicant -Dwext -iath0 -c/etc/wpa_supplicant.conf -d -w

Ist es möglich das ganze bis hierher zu automatisieren ? Ist wirklich nervig das alles immer von Hand einzugeben.... :(

Wobei folgendes dann auftrat:

Code: Alles auswählen

WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=17
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:0f:b5:67:73:d0
State: DISCONNECTED -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=00:0f:b5:67:73:d0
No keys have been configured - skip key clearing
Associated with 00:0f:b5:67:73:d0
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
RX EAPOL from 00:0f:b5:67:73:d0
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): 80 25 bb f8 1e ad bd 9e 35 05 d5 8a b4 ee b2 b0 76 43 57 a1 fb 30 4b 1b 17 12 cb 9c 2e 0b 90 9e
  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:0f:b5:67:73:d0 (ver=1)
WPA: Renewed SNonce - hexdump(len=32): 2f c6 13 70 87 25 44 7c 9a 63 9b 48 3c d7 1f a8 dc db 68 e0 0c 2d ba 8a 92 dc 83 85 d2 0d d2 69
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
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:0f:b5:67:73:d0
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): a7 c7 cb 90 59 78 2a d9 6f 8b 8f 64 da e9 18 db 43 4e 0a c3 89 2f 37 98 3d bc b9 6c 63 b4 42 48
  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: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:0f:b5:67:73:d0 (ver=1)
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
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
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RX EAPOL from 00:0f:b5:67:73:d0
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 02
  key_nonce - hexdump(len=32): a7 c7 cb 90 59 78 2a d9 6f 8b 8f 64 da e9 18 db 43 4e 0a c3 89 2f 37 98 3d bc b9 6c 63 b4 42 48
  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: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:0f:b5:67:73:d0 (ver=1)
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
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:0f:b5:67:73:d0
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 03
  key_nonce - hexdump(len=32): a7 c7 cb 90 59 78 2a d9 6f 8b 8f 64 da e9 18 db 43 4e 0a c3 89 2f 37 98 3d bc b9 6c 63 b4 42 48
  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): 75 49 77 16 5c 1f f6 49 37 ad 9c 82 02 39 12 2e
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:0f:b5:67:73:d0 (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:0f:b5:67:73:d0
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 04
  key_nonce - hexdump(len=32): 80 4f 2f 4a ab 25 9c 03 e5 43 16 0c 23 cf 6b fa a9 f7 7b 1e 8d 61 4b b9 63 29 4c 0c c8 ad 96 62
  key_iv - hexdump(len=16): 23 ba c5 73 7d 96 8f b3 ec 3b ba 99 8c 17 10 e3
  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): 36 d6 11 e0 b2 64 fa 37 9e cd c6 9e 31 3c 0e a8
WPA: RX message 1 of Group Key or STAKey Handshake from 00:0f:b5:67:73:d0 (ver=1)
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=2 tx=0).
WPA: RSC - hexdump(len=6): 00 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:0f:b5:67:73:d0 [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
Removed BSSID 00:0f:b5:67:73:d0 from blacklist
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:0f:b5:67:73:d0 completed (reauth) [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 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
EAPOL: startWhen --> 0
Dazu muss ich sagen das ein Freund von mir die erstinstallation des Routers übernommen hat ...und ich habe wirklich keine Ahnung von der Materie.

Ich bin froh das Ich in den Router reinkomme :D

Jedefalls komme ich immer noch nit ins Web und obiges wiederholt sich ständig

Nochmals Danke

Benutzeravatar
debuntu
Beiträge: 17
Registriert: 26.01.2006 14:13:43
Wohnort: nahe Bremen

Beitrag von debuntu » 04.10.2007 23:03:50

Es gibt viel zu lernen, packen wir´s an!

Rapid
Beiträge: 3
Registriert: 30.09.2007 16:26:14

Lösung !?

Beitrag von Rapid » 09.02.2008 21:11:34

So auch wenn es was länger dauerte ,habe nun die Lösung meines Problems:
Es war der Master mode in der Karte eingestellt ,den ich nun in managed gewechselt habe und nun kann ich mein Wlan mit WEP wunderbar nutzen :O)

Hier nochmal meine konfiguration für alle die ähnliche probleme haben:

Interfaces:

Code: Alles auswählen

# Interface beim booten hochfahren

allow-hotplug ath0
iface ath0 inet dhcp


	wpa-driver wext
	wpa-conf /etc/wpa_supplicant.conf
wpa_supplicant.conf

Code: Alles auswählen

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=adm

ap_scan=2

	network={
	ssid="Harry"
	key_mgmt=WPA-PSK
	proto=WPA
	pairwise=TKIP
   psk=blablabla}
und den mode von master in mangend habe ich wie folgt gewechselt:

Code: Alles auswählen

wlanconfig ath0 destroy; wlanconfig ath0 create wlandev wifi0 wlanmode managed

ifdown ath0

ifup ath0
JuHuuuu

olympiaturm
Beiträge: 10
Registriert: 09.02.2008 10:21:07

Beitrag von olympiaturm » 16.02.2008 17:32:59

Mit network-manager (mit Clients für Gnome und KDE) geht das komfortabler, die Einträge in in /etc/interfaces müssen wech, die wpa_supplicant.conf ebenso, man kann die Verbindung dynamisch als User aufbauen und z.B. zwischen Wire und Wireless wechseln.

Hier unter Lenny schaut's bei mir so aus, für KDE geht's vermutlich genauso mit network-manager-kde.

ii network-manager 0.6.5-5 network management framework daemon
ii network-manager-gnome 0.6.5-3 network management framework (GNOME frontend
ii network-manager-openvpn 0.3.2svn2855-1 network management framework (OpenVPN plugin
ii network-manager-openvpn-gnome 0.3.2svn2855-1 network management framework (OpenVPN plugin
ii network-manager-vpnc 0.6.4svn2806-1 network management framework (VPNC plugin co
ii network-manager-vpnc-gnome 0.6.4svn2806-1 network management framework (VPNC plugin GN

Bei den Interfaces nur das Loopback Device.

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

Flex6
Beiträge: 342
Registriert: 27.10.2006 16:08:10
Wohnort: Görlitz

Beitrag von Flex6 » 16.02.2008 20:02:25

oder wifi-radar.., ist graphisch und konfiguriert die wlan-Karte/Stick. mit wpa-supplicant

Probs .., für wpa-supplicant gibts hunderte Anleitungen und trotzdem probiert man sich blöd weil man was übersehen hat..., ich tue mir das nicht mehr an

Antworten