Hallo, ich habe die Aktuelle easyvdr gerade runtergeladen und wollte nun das Wlan einrichten.
Ich habe zur auswahl: Atheros ar2414a-001 B36585c
oder
RTL8185L 5C100S2
Was für ein Modul muss ich nehmen um die Karten in betrieb zu nehmen ? Wie muss ich die Karte(n) einstellen damit sie mit einer FRITZ!Box Fon WLAN 7170 und WPA verschlüsselung zusammenarbeitet ?
Ich habe den Funknetzwerknamen bereits eingegeben das Wlan Passwort eingegeben den Wlan Kanal das Problem ist nur welches Treiber Modul muss ich für welche Wlan Karte nutzen ?
Es sind beides PCI Karten
Danke & Gruss Armin easyVDR:~# lsmod Module Size Used by ipv6 262180 14 kbtab 6784 0 usbhid 44576 0 ff_memless 7176 1 usbhid eeprom 8592 0 i2c_isa 5504 0 i2c_viapro 10388 0 eepro100 32912 0 mii 6656 1 eepro100 dm_snapshot 19624 0 dm_mirror 24832 0 dm_mod 59968 2 dm_snapshot,dm_mirror i2c_dev 8964 0 packetcommand 40424 0 wlan_scan_sta 15360 1 ath_rate_sample 14592 1 snd_intel8x0 35868 0 snd_ac97_codec 102564 1 snd_intel8x0 ac97_bus 3456 1 snd_ac97_codec snd_pcm_oss 43168 0 snd_mixer_oss 18304 1 snd_pcm_oss snd_pcm 79236 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss snd_timer 25476 1 snd_pcm pcspkr 4352 0 ath_pci 98080 0 wlan 207300 4 wlan_scan_sta,ath_rate_sample,ath_pci ath_hal 192976 3 ath_rate_sample,ath_pci snd 56740 6 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer realmagic84xx 11932 0 i2c_i801 10384 0 natsemi 31456 0 soundcore 9440 1 snd snd_page_alloc 11784 2 snd_intel8x0,snd_pcm intel_agp 25620 0 agpgart 35660 1 intel_agp i2c_core 26880 5 eeprom,i2c_isa,i2c_viapro,i2c_dev,i2c_i801 iTCO_wdt 12328 0 iTCO_vendor_support 5124 1 iTCO_wdt joydev 11456 0 tsdev 9536 0 evdev 11264 1
easyVDR:~# ifconfig ath0 Protokoll:Ethernet Hardware Adresse 00:0E:2E:89:0D:13 inet6 Adresse: fe80::20e:2eff:fe89:d13/64 G?ltigkeitsbereich:Verbindung UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Protokoll:Ethernet Hardware Adresse 00:00:04:22:92:B7 inet Adresse:192.168.1.7 Bcast:192.168.1.255 Maske:255.255.255.0 inet6 Adresse: fe80::200:4ff:fe22:92b7/64 G?ltigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:901363 errors:0 dropped:0 overruns:0 frame:0 TX packets:476703 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:1000 RX bytes:1329305107 (1.2 GiB) TX bytes:34379141 (32.7 MiB) Interrupt:9 Basisadresse:0xe000
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:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wifi0 Protokoll:UNSPEC Hardware Adresse 00-0E-2E-89-0D-13-30-3A-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7416 errors:0 dropped:0 overruns:0 frame:16528 TX packets:1711 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:199 RX bytes:1000284 (976.8 KiB) TX bytes:78706 (76.8 KiB) Interrupt:5
easyVDR:~#
easyVDR:~# ifconfig ath0 Protokoll:Ethernet Hardware Adresse 00:0E:2E:89:0D:13 inet6 Adresse: fe80::20e:2eff:fe89:d13/64 G?ltigkeitsbereich:Verbindung UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth0 Protokoll:Ethernet Hardware Adresse 00:00:04:22:92:B7 inet Adresse:192.168.1.7 Bcast:192.168.1.255 Maske:255.255.255.0 inet6 Adresse: fe80::200:4ff:fe22:92b7/64 G?ltigkeitsbereich:Verbindung UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:901363 errors:0 dropped:0 overruns:0 frame:0 TX packets:476703 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:1000 RX bytes:1329305107 (1.2 GiB) TX bytes:34379141 (32.7 MiB) Interrupt:9 Basisadresse:0xe000
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:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wifi0 Protokoll:UNSPEC Hardware Adresse 00-0E-2E-89-0D-13-30-3A-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7416 errors:0 dropped:0 overruns:0 frame:16528 TX packets:1711 errors:0 dropped:0 overruns:0 carrier:0 Kollisionen:0 Sendewarteschlangenl?nge:199 RX bytes:1000284 (976.8 KiB) TX bytes:78706 (76.8 KiB) Interrupt:5
easyVDR:~#
easyVDR:~# /usr/sbin/hwinfo --wlan 09: PCI 107.0: 0282 WLAN controller [Created at pci.281] Unique ID: Kbch.FMdleird0u0 Parent ID: 6NW+.mCtu7+mpnF0 SysFS ID: /devices/pci0000:00/0000:00:1e.0/0000:01:07.0 SysFS BusID: 0000:01:07.0 Hardware Class: network Model: "Atheros AR5212 802.11abg NIC" Vendor: pci 0x168c "Atheros Communications, Inc." Device: pci 0x0013 "AR5212 802.11abg NIC" SubVendor: pci 0x168c "Atheros Communications, Inc." SubDevice: pci 0x2051 Revision: 0x01 Driver: "ath_pci" Driver Modules: "ath_pci" Device File: wifi0 Device Files: wifi0, ath0 Features: WLAN Memory Range: 0xfc000000-0xfc00ffff (rw,non-prefetchable) IRQ: 5 (no events) HW Address: 00:0e:2e:89:0d:13 Module Alias: "pci:v0000168Cd00000013sv0000168Csd00002051bc02sc00i00" Driver Info #0: Driver Status: ath_pci is active Driver Activation Cmd: "modprobe ath_pci" Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #2 (PCI bridge)
Hardware: Gehäuse: Activy 300 CPU: Celeron 750 mhz RAM: 512 MB HDD: - DVB-T: Easylite DVB-t Stick USB 2.0 Software: EasyVDR: 0.6.08 |
Gelöst allerdings nicht auf easyVDR wegen ...
Quelle: http://www.fehu.org/atheros.html
4. Konfiguration von wpa_supplicant mit WPA-PSK
Momentan ist WPA leider nur mit Linux möglich. Die nächsten Schritte erklären, wie man mittels wpa_supplicant-0.3.8 WPA-PSK (WPA-Personal) Authentifizierung ermöglicht.
Vorerst muss libssl-dev installiert sein, anschliessend wird wpa_supplicant runtergeladen
cd /usr/scr $ wget http://hostap.epitest.fi/releases/wpa_supplicant-0.3.8.tar.gz
Jetzt werden die Treiber installiert. Um diese kompilieren zu können, muss eine .config im gleichen Verzeichnis erstellt werden. Entweder editiert man defconfig und kopiert diese nach .config, oder man legt wie ich eine neue Datei an. Ich werde den Inhalt dieser mittels "cat" darstellen
$ tar xvzf wpa_supplicant-0.3.8.tar.gz $ cd wpa_supplicant-0.3.8 $ cat .config
CONFIG_DRIVER_MADWIFI=y CFLAGS += -I/usr/src/madwifi CONFIG_DRIVER_WEXT=y CONFIG_IEEE8021X_EAPOL=y CONFIG_EAP_MD5=y CONFIG_EAP_MSCHAPV2=y CONFIG_EAP_TLS=y CONFIG_EAP_PEAP=y CONFIG_EAP_TTLS=y CONFIG_EAP_GTC=y CONFIG_EAP_OTP=y CONFIG_EAP_LEAP=y CONFIG_PKCS12=y CONFIG_CTRL_IFACE=y
$ make && make install
Anschliessend muss eine Konfigurationsdatei für wpa_supplicant erstellt werden. Wiederum entweder wpa_supplicant.conf editiern und irgendwohin kopieren oder eine neue Datei erstellen. Ich benannte diese wpa-fehu.conf und kopierte sie nach /etc. Der Inhalt ist
ctrl_interface=/var/run/wpa_supplicant eapol_version=1 network={ ssid="fehu.org" scan_ssid=1 priority=5 proto=WPA key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP WEP104 WEP40 #psk="mysecretpassword" psk=283fe364eb0ce1352c1831dee1ed08481eda8ba62583d6c6589a386cbd6957af }
In "psk=" muss man den Pre-Shared-Key einfügen. Um diesen zu erhalten, liefert wpa_supplicant ein Tool mit "wpa_passphrase"
$ wpa_passphrase fehu.org mysecretpassword network={ ssid="fehu.org" #psk="mysecretpassword" psk=283fe364eb0ce1352c1831dee1ed08481eda8ba62583d6c6589a386cbd6957af }
Jetzt startet man wpa_supplicant. Nach wenigen Sekunden sollte die Karte sich mit dem AP verbinden. Die Option "-d" ist nur für Debugging notwendig.
$ wpa_supplicant -w -i ath0 -c /etc/wpa-fehu.conf -D madwifi -d
Automatische Konfiguration während des Bootens geschieht mittels Anpassen der /etc/network/interfaces
$ cat /etc/network/interfaces # 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 auto eth0 iface eth0 inet dhcp
# Wireless auto ath0
# static #iface ath0 inet static # address 192.168.1.66 # netmask 255.255.255.0 # broadcast 192.168.1.255 # up /sbin/iwconfig ath0 rate 54M # up /usr/local/sbin/wpa_supplicant -B -w -i ath0 -Dmadwifi -c /etc/wpa-fehu.conf
# dhcp iface ath0 inet dhcp pre-up /usr/local/sbin/wpa_supplicant -B -w -i ath0 -Dmadwifi -c /etc/wpa-fehu.conf pre-up /sbin/iwconfig ath0 rate 54M
Hardware: Gehäuse: Activy 300 CPU: Celeron 750 mhz RAM: 512 MB HDD: - DVB-T: Easylite DVB-t Stick USB 2.0 Software: EasyVDR: 0.6.08 |