Hallo,
ich nutze einen Raspberry 3 mit raspbian stretch (vor 2 Monaten installiert und nach der Installation die Update-Routine durchgeführt).
Der PI ist per internem WLAN-Modul an eine Fritzbox 7590 angebunden. Es kommt immer mal wieder vor, dass der PI im Netzwerk nicht mehr erreichbar ist. SSH geht dann nicht mehr und anpingen lässt er sich auch nicht. Der PI hat eine statische IP-Adresse über dhcpcd.conf konfiguriert, die /etc/network/interfaces habe ich nicht angefasst.
Vorher hatte ich raspbian jessy und keine Probleme. Da meine anderen Geräte im Netzwerk nie Verbindungsprobleme im Netzwerk haben, vermute ich die Ursache beim raspberry und nicht beim Router. Allerdings sind die Ping-Zeiten (wenn er funktioniert) ziemlich schlecht (siehe unten).
Was kann man da machen? Vor allem: wie kann ich der Ursache des Problems auf die Schliche kommen?
Ich überlege, einfach wieder raspbian jessy zu installieren.
Im Folgenden seht Ihr die Konfiguration sowie Auszüge aus den Logs (journalctl).
/etc/dhcpcd.conf:
interface wlan0
static ip_address=192.168.2.50/24
static routers=192.168.2.1
static domain_name_servers=192.168.2.1 8.8.8.8 fd51:42f8:caae:d92e::1
/etc/network/interfaces:
source-directory /etc/network/interfaces.d
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
wireless-power off
/etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="sugar76-24"
psk="XXXX"
key_mgmt=WPA-PSK
}
Hier mal ein Auszug aus den Logs (um 15:03 ging die Verbindung verloren, ich nutze shairport-sync zum Musikstreaming):
Okt 03 15:03:18 raspberrypi wpa_supplicant[324]: wlan0: WPA: Group rekeying completed with 44:4e:6d:18:6d:29 [GTK=CCMP]
Okt 03 15:04:46 raspberrypi shairport-sync[452]: As Yeats almost said, "Too long a silence / can make a stone of the heart" from RTSP conversation 30.
Okt 03 15:04:46 raspberrypi shairport-sync[452]: RTSP Channel unexpectedly closed or a serious error occured -- closing the player thread.
Okt 03 15:04:46 raspberrypi shairport-sync[452]: Cancelling timing, control and audio threads...
Okt 03 15:04:46 raspberrypi shairport-sync[452]: Cancel timing thread.
Okt 03 15:04:46 raspberrypi shairport-sync[452]: Connection 30: RTSP thread terminated.
Okt 03 15:10:10 raspberrypi systemd-timesyncd[299]: Timed out waiting for reply from 213.251.52.43:123 (0.debian.pool.ntp.org).
Okt 03 15:10:20 raspberrypi systemd-timesyncd[299]: Timed out waiting for reply from 144.76.60.190:123 (0.debian.pool.ntp.org).
Okt 03 15:10:31 raspberrypi systemd-timesyncd[299]: Timed out waiting for reply from 148.251.68.100:123 (0.debian.pool.ntp.org).
Okt 03 15:10:41 raspberrypi systemd-timesyncd[299]: Timed out waiting for reply from 94.130.183.105:123 (0.debian.pool.ntp.org).
Okt 03 15:10:57 raspberrypi dhcpcd[409]: wlan0: fe80::464e:6dff:fe18:6d26 is unreachable, expiring it
Okt 03 15:11:11 raspberrypi dhcpcd[409]: wlan0: fe80::464e:6dff:fe18:6d26 is unreachable, expiring it
Okt 03 15:13:18 raspberrypi wpa_supplicant[324]: wlan0: WPA: Group rekeying completed with 44:4e:6d:18:6d:29 [GTK=CCMP]
Okt 03 15:14:26 raspberrypi dhcpcd[409]: wlan0: carrier lost
Okt 03 15:14:26 raspberrypi wpa_supplicant[324]: wlan0: CTRL-EVENT-DISCONNECTED bssid=44:4e:6d:18:6d:29 reason=0 locally_generated=1
Alles anzeigen
Und noch mal von heute früh:
Okt 04 06:47:59 raspberrypi avahi-daemon[423]: Joining mDNS multicast group on interface wlan0.IPv6 with address 2003:e9:6f13:2500:146a:ac37:104a:911a.
Okt 04 06:47:59 raspberrypi avahi-daemon[423]: Registering new address record for 2003:e9:6f13:2500:146a:ac37:104a:911a on wlan0.*.
Okt 04 06:47:59 raspberrypi avahi-daemon[423]: Withdrawing address record for fe80::ba27:ebff:fe53:5f9c on wlan0.
Okt 04 06:48:22 raspberrypi dhcpcd[409]: wlan0: carrier lost
Okt 04 06:48:22 raspberrypi wpa_supplicant[324]: wlan0: CTRL-EVENT-DISCONNECTED bssid=44:4e:6d:18:6d:29 reason=0 locally_generated=1
Okt 04 06:48:22 raspberrypi wpa_supplicant[324]: p2p-dev-wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Okt 04 06:48:22 raspberrypi dhcpcd[409]: wlan0: deleting address 2003:e9:6f13:2500:146a:ac37:104a:911a/64
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Withdrawing address record for 2003:e9:6f13:2500:146a:ac37:104a:911a on wlan0.
Okt 04 06:48:22 raspberrypi dhcpcd[409]: wlan0: deleting default route via fe80::464e:6dff:fe18:6d26
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Leaving mDNS multicast group on interface wlan0.IPv6 with address 2003:e9:6f13:2500:146a:ac37:104a:911a.
Okt 04 06:48:22 raspberrypi dhcpcd[409]: wlan0: deleting route to 2003:e9:6f13:2500::/64
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::ba27:ebff:fe53:5f9c.
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Registering new address record for fe80::ba27:ebff:fe53:5f9c on wlan0.*.
Okt 04 06:48:22 raspberrypi dhcpcd[409]: wlan0: deleting default route via 192.168.2.1
Okt 04 06:48:22 raspberrypi dhcpcd[409]: wlan0: deleting route to 192.168.2.0/24
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Withdrawing address record for 192.168.2.50 on wlan0.
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.50.
Okt 04 06:48:22 raspberrypi avahi-daemon[423]: Interface wlan0.IPv4 no longer relevant for mDNS.
Okt 04 06:48:23 raspberrypi wpa_supplicant[324]: wlan0: Trying to associate with 44:4e:6d:18:6d:29 (SSID='sugar76-24' freq=2437 MHz)
Okt 04 06:48:23 raspberrypi wpa_supplicant[324]: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:00:00:00:00:00 status_code=16
Okt 04 06:48:24 raspberrypi wpa_supplicant[324]: wlan0: Trying to associate with 44:4e:6d:18:6d:29 (SSID='sugar76-24' freq=2437 MHz)
Okt 04 06:48:28 raspberrypi wpa_supplicant[324]: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:00:00:00:00:00 status_code=16
Okt 04 06:48:30 raspberrypi wpa_supplicant[324]: wlan0: Trying to associate with 44:4e:6d:18:6d:29 (SSID='sugar76-24' freq=2437 MHz)
Okt 04 06:48:34 raspberrypi wpa_supplicant[324]: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:00:00:00:00:00 status_code=16
Okt 04 06:48:34 raspberrypi wpa_supplicant[324]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="sugar76-24" auth_failures=1 duration=10 reason=CONN_FAILED
Alles anzeigen
Ping von meinem MacBook zum raspberry:
64 bytes from 192.168.2.50: icmp_seq=3031 ttl=64 time=121.907 ms
64 bytes from 192.168.2.50: icmp_seq=3032 ttl=64 time=172.111 ms
64 bytes from 192.168.2.50: icmp_seq=3033 ttl=64 time=11.911 ms
64 bytes from 192.168.2.50: icmp_seq=3034 ttl=64 time=17.258 ms
64 bytes from 192.168.2.50: icmp_seq=3035 ttl=64 time=9.365 ms
64 bytes from 192.168.2.50: icmp_seq=3036 ttl=64 time=12.482 ms
64 bytes from 192.168.2.50: icmp_seq=3037 ttl=64 time=7.793 ms
64 bytes from 192.168.2.50: icmp_seq=3038 ttl=64 time=9.941 ms
64 bytes from 192.168.2.50: icmp_seq=3039 ttl=64 time=9.475 ms
64 bytes from 192.168.2.50: icmp_seq=3040 ttl=64 time=12.095 ms
64 bytes from 192.168.2.50: icmp_seq=3041 ttl=64 time=13.655 ms
64 bytes from 192.168.2.50: icmp_seq=3042 ttl=64 time=8.510 ms
64 bytes from 192.168.2.50: icmp_seq=3043 ttl=64 time=8.401 ms
64 bytes from 192.168.2.50: icmp_seq=3044 ttl=64 time=107.925 ms
64 bytes from 192.168.2.50: icmp_seq=3045 ttl=64 time=70.302 ms
Alles anzeigen