Hallo Leute,
also ich habe die Anleitung entsprechend dem eingangs erwaehnten Link nochmal mit einem frisch installierten Raspbian durchgearbeitet.
Die Terminal Ausgabe des Befehls
liefert folgendes Ergebnis:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:67:6a:d7 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.147/24 brd 192.168.2.255 scope global dynamic noprefixroute eth0
valid_lft 86026sec preferred_lft 75226sec
inet6 fe80::6b16:d0a4:d873:702c/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:32:3f:82 brd ff:ff:ff:ff:ff:ff
4: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 08:be:ac:00:fe:85 brd ff:ff:ff:ff:ff:ff
Alles anzeigen
Die Netzwerk-Schnittstelle heisst somit "wlan1".
Zur Pruefung des Status fuer "hostpad" wurde entsprechend der Anleitung folgender Befehl verwendet:
Das Ergebnis dieser Terminal-Ausgabe ist nachfolgend ersichtlich:
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-04-05 17:57:06 BST; 17s ago
Main PID: 4109 (hostapd)
Tasks: 1 (limit: 2200)
Memory: 492.0K
CGroup: /system.slice/hostapd.service
└─4109 /usr/sbin/hostapd -B -P /run/hostapd.pid -B /etc/hostapd/hostapd.conf
Apr 05 17:57:06 raspberrypi systemd[1]: Starting Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authen
Apr 05 17:57:06 raspberrypi hostapd[4108]: Configuration file: /etc/hostapd/hostapd.conf
Apr 05 17:57:06 raspberrypi hostapd[4108]: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Apr 05 17:57:06 raspberrypi hostapd[4108]: Using interface wlan1 with hwaddr 08:be:ac:00:fe:85 and ssid "WLA
Apr 05 17:57:06 raspberrypi hostapd[4108]: wlan1: interface state COUNTRY_UPDATE->ENABLED
Apr 05 17:57:06 raspberrypi hostapd[4108]: wlan1: AP-ENABLED
Apr 05 17:57:06 raspberrypi systemd[1]: Started Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authent
Alles anzeigen
Weiterhin wird zur Pruefung auf Fehlermeldungen folgender Befehl verwendet:
Das Ergebnis ist:
random: getrandom() support available
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-0f-ac:13
nl80211: Supported cipher 00-0f-ac:11
nl80211: Supported cipher 00-0f-ac:12
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlan1 in phy phy1
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Setup AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x1bf5308
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x1bf5308 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x1bf5308 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x1bf5308 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x1bf5308 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x1bf5308 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x1bf5308 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=0503
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=12
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1bf5308 match=7f
nl80211: Register spurious class3 failed: ret=-16 (Device or resource busy)
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=4)
netlink: Operstate: ifindex=4 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Teardown AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x1bf3020)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x1bf3020)
wlan1: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan1
wlan1: AP-DISABLED
hostapd_cleanup(hapd=0x1bf3da0 (wlan1))
wlan1: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan1 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x1bf3020)
hostapd_interface_free: free hapd 0x1bf3da0
hostapd_cleanup_iface(0x1bf3020)
hostapd_cleanup_iface_partial(0x1bf3020)
hostapd_cleanup_iface: free iface=0x1bf3020
Alles anzeigen
Den Status von dnsmasq habe ich mit folgendem Befehl geprueft:
Ergebnis:
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-04-05 17:59:48 BST; 19min ago
Process: 428 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Process: 437 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 456 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCC
Main PID: 455 (dnsmasq)
Tasks: 1 (limit: 2200)
Memory: 2.8M
CGroup: /system.slice/dnsmasq.service
└─455 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf
Apr 05 17:59:48 raspberrypi dnsmasq[455]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DH
Apr 05 17:59:48 raspberrypi dnsmasq[455]: warning: interface wlan1 does not currently exist
Apr 05 17:59:48 raspberrypi dnsmasq-dhcp[455]: DHCP, IP range 192.168.1.100 -- 192.168.1.200, lease t
Apr 05 17:59:48 raspberrypi dnsmasq[455]: read /etc/hosts - 5 addresses
Apr 05 17:59:48 raspberrypi dnsmasq[455]: no servers found in /run/dnsmasq/resolv.conf, will retry
Apr 05 17:59:48 raspberrypi dnsmasq[456]: Too few arguments.
Apr 05 17:59:48 raspberrypi dnsmasq[456]: Too few arguments.
Apr 05 17:59:48 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
Apr 05 17:59:57 raspberrypi dnsmasq[455]: reading /run/dnsmasq/resolv.conf
Apr 05 17:59:57 raspberrypi dnsmasq[455]: using nameserver 192.168.2.1#53
Alles anzeigen
Daraus entnommen:
Diese Aussage klingt natuerlich nicht gut...
Ich hoffe, einem von euch hilft das weiter. Ich bin kein Informatiker und bin bezueglich der Problemloesung auch etwas ueberfragt. Falls aber jemand von euch weiter weiss, wuerde ich mich ueber Hilfe sehr freuen. Eine Richtantenne fuer aehnliche Projekte ist sicherlich auch eine zentrale Fragestellung. Es waere schoen, wenn sich dafuer eine Loesung finden wuerde.
Viele Gruesse und geniesst das schoene Wetter.