Madwifi WLAN mit Guessnet und WPA Supplicant

R

regen

Grünschnabel
Bin jetzt echt am Ende, 3 Tage schraub ich schon an dem WLAN Zeugs rum und komm nun nicht mehr Weiter. Am besten poste ich einfach mal config etc..

WLAN läuft mit Madwifi aus derem SVN, mit den Debian sourcen habe ich es auch schon versucht was leder genauso wenig geht. Also datan scheints nicht zu liegen.

Guessnet ist Version 0.41-1 von Debian etch. Andere konnte ich nicht kompilieren. Ich bekam seltsame Fehler und vermute mal das die da irgendwo geschlampt haben.

WPA Supplicant ist v0.5.5-2 ebenfalls aus etch und funktioniert mauell herrvoragend.

Das ist meine /etc/network/interfaces
eth0 funktioniert perfekt aber ath0, das WLAN schlägt immer fehl obwohl "iface Apo inet dhcp" zutreffen müsste. Also der Router existiert mit exakt dem Namen.
Code:
# 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

allow-hotplug eth0
allow-hotplug ath0

# Definition der bekannten eth0-Umgebungen
mapping eth0
    script /usr/sbin/guessnet-ifupdown
    map daheim
    map statisch
    map default: cable
    map timeout: 3
    map verbose: true

iface daheim inet dhcp
    iptables trusted
    test1 peer address 192.168.1.1 mac 00:0D:F0:13:E9:20

# Default Cable
iface cable inet dhcp
    iptables strict

iface statisch inet static
    iptables trusted
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 194.25.2.129
    test1 peer address 192.168.1.1 mac 00:50:D6:98:15:00

# Definition der bekannten wlan Umgebungen
mapping ath0
    script /usr/sbin/guessnet-ifupdown
    map wifiautomatisch
    map Apo
    map default: wifi
    map timeout: 3
    map verbose: true

iface wifiautomatisch inet dhcp
    iptables vpn
    test1 wireless essid idefix
    test2 wireless essid OffenerHotspot
    test3 wireless essid NETGEAR

iface Apo inet dhcp
    test1 wireless essid Apo-Radius-IDS
    pre-up /home/seb/bin/ath0managed.sh
    #wpa-driver madwifi
    #wpa-conf /etc/wpa_supplicant.conf
    post-up wpa_supplicant -Bw -i wlan0 -D wext -c /etc/wpa_supplicant.conf
    post-down killall wpa_supplicant
    post-down rm -Rf /var/run/wpa_supplicant/


# Default Wifi
iface wifi inet dhcp
    iptables strict
    pre-up /home/seb/bin/ath0managed.sh

bei einem
# ifup ath0
erhalte ich folgende Ausgabe:
Code:
guessnet: Link beat detection (mii) failed: Operation not supported
guessnet: Link beat detection (ethtool) failed: Operation not supported
guessnet: Link beat detection (priv) failed: Operation not supported
guessnet: No working link beat detection function available for interface ath0
guessnet: 4 candidate profiles
guessnet: Starting command test subsystem
guessnet: adding candidate script [/usr/share/guessnet/test/test-wireless ath0 essid "idefix"] with tag [command '/usr/share/guessnet/test/test-wireless ath0 essid "idefix"']
guessnet: adding candidate script [/usr/share/guessnet/test/test-wireless ath0 essid "OffenerHotspot"] with tag [command '/usr/share/guessnet/test/test-wireless ath0 essid "OffenerHotspot"']
guessnet: adding candidate script [/usr/share/guessnet/test/test-wireless ath0 essid "NETGEAR"] with tag [command '/usr/share/guessnet/test/test-wireless ath0 essid "NETGEAR"']
guessnet: adding candidate script [/usr/share/guessnet/test/test-wireless ath0 essid "Apo-Radius-IDS"] with tag [command '/usr/share/guessnet/test/test-wireless ath0 essid "Apo-Radius-IDS"']
guessnet: script [command '/usr/share/guessnet/test/test-wireless ath0 essid "idefix"'] terminated with status 256
guessnet: script [command '/usr/share/guessnet/test/test-wireless ath0 essid "OffenerHotspot"'] terminated with status 256
guessnet: script [command '/usr/share/guessnet/test/test-wireless ath0 essid "NETGEAR"'] terminated with status 256
guessnet: script [command '/usr/share/guessnet/test/test-wireless ath0 essid "Apo-Radius-IDS"'] terminated with status 256
ath0
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:15:af:09:49:cd
Sending on   LPF/ath0/00:15:af:09:49:cd
Sending on   Socket/fallback
receive_packet failed on ath0: Network is down
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
send_packet: Network is down
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Es trifft also nie irgendeine Regel zu, ausserdem scheint das Netzwerk down zu sein, was auch immer das soll.

Ausgabe von ifconfig:
Code:
ath0      Protokoll:Ethernet  Hardware Adresse 00:15:AF:09:49:CD
          inet6 Adresse: fe80::215:afff:fe09:49cd/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING 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:18:F3:AA:52:FF
          inet Adresse:192.168.1.47  Bcast:255.255.255.255  Maske:255.255.255.0
          inet6 Adresse: fe80::218:f3ff:feaa:52ff/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1416 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1592 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:838450 (818.7 KiB)  TX bytes:597658 (583.6 KiB)
          Interrupt:217 Basisadresse:0xec00

wifi0     Protokoll:UNSPEC  Hardware Adresse 00-15-AF-09-49-CD-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38933 errors:0 dropped:0 overruns:0 frame:11937
          TX packets:5058 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:199
          RX bytes:4619915 (4.4 MiB)  TX bytes:232668 (227.2 KiB)
          Interrupt:66 Speicher:f8b40000-f8b50000

Ausgabe von iwconfig:
Code:
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wifi0     no wireless extensions.

sit0      no wireless extensions.

ath0      IEEE 802.11g  ESSID:""
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:17 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:2188  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Ausgabe von iwlist ath0 s (gekürzt):
Code:
          Cell 04 - Address: 00:18:4D:32:9B:99
                    ESSID:"Apo-Radius-IDS"
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Quality=54/94  Signal level=-41 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK

Übrigends, die Verbindung mit WPA Supplicant klappt herrvoragend mit folgender Zeile:
# wpa_supplicant -dd -K -t -i ath0 -D wext -c /etc/wpa_supplicant.conf
Was ich ja in "interfaces" eingebaut habe..

Wenn ihr noch infos braucht sagt bescheid ich brauch jetzt erstmal frische luft und kaffe.. frische luft is glaub draussen, mal schauen wo das ist.. war da schon lange ned mehr :bounce:
 
ich hab jetzt den Rechner neu gestartet und an der config nichts geänder aber dennoch das:
Code:
==> /var/log/syslog <==
Mar 13 16:08:03 mobilix ifplugd(eth0)[16096]: Program execution failed, return value is 1.
Mar 13 16:08:03 mobilix ifplugd(ath0)[16108]: ifplugd 0.28 initializing.
Mar 13 16:08:03 mobilix ifplugd(ath0)[16108]: Using interface ath0/00:15:AF:09:49:CD
Mar 13 16:08:03 mobilix ifplugd(ath0)[16108]: Using detection mode: wireless extension
Mar 13 16:08:03 mobilix ifplugd(ath0)[16108]: Initialization complete, link beat detected.
Mar 13 16:08:04 mobilix ifplugd(ath0)[16108]: Executing '/etc/ifplugd/ifplugd.action ath0 up'.
Mar 13 16:08:04 mobilix ifplugd(ath0)[16108]: client: run-parts: /etc/ifplugd/action.d//ifupdown exited with return code 141
Mar 13 16:08:04 mobilix ifplugd(ath0)[16108]: Program execution failed, return value is 1.

mir reichts so langsam mit dem wlan gefrickel. Wie habt ihr euer WLAN laufen?
 
Hallo!

So wirds nicht klappen, da guessnet nur schon vorhandene Verbindungen überprüfen kann, aber selbst keine Verbindung zu einem AP über WLAN aufbauen kann. Aber wpa_supplicant kann das. Schau mal bitte da:

http://manual.sidux.com/en/internet-connecting-wpa-en.htm

Der WLAN-Abschnitt in Deiner /etc/network/interfaces müsste dann z.B. für Apo so oder ähnlich aussehen:


iface ath0 inet manual

wpa-driver wext
wpa-roam /etc/wpa_supplicant.conf
wpa-mapping-script guessnet-ifupdown
wpa-map0 Apo

iface Apo inet dhcp
test1 wireless essid Apo-Radius-IDS

Dann müsstest Du noch in wpa_supplicant.conf id_str="Apo" in den zugehörigen Abschnitt hinzufügen.Näheres, wie gesagt, auf obiger Seite.

Grüße!
 
Zuletzt bearbeitet von einem Moderator:

Ähnliche Themen

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Openvpn will nicht

Debian Routing Problem

Debian 7.6 kein lokales Netz

Debian Gateway

Zurück
Oben