ksaro1
Posts: 6
Joined: Thu Oct 17, 2019 10:51 am

WiFi Lost

Sun Mar 07, 2021 11:38 am

I reboot my Bipac 8800AXL R2 router on a weekly basis and I am finding the my new RPI 4 loses the wifi connectivity to this router on reboot.

I see the following entries in /var/log/syslog at the time of the reboot:
Mar 7 02:01:20 PiTv dhcpcd[449]: wlan0: carrier acquired
Mar 7 02:01:20 PiTv dhcpcd[449]: wlan0: IAID 32:ba:68:5b
Mar 7 02:01:20 PiTv dhcpcd[449]: wlan0: adding address fe80::c68f:e6c6:7b0f:9f88
Mar 7 02:01:20 PiTv avahi-daemon[376]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::c68f:e6c6:7b0f:9f88.
Mar 7 02:01:20 PiTv avahi-daemon[376]: New relevant interface wlan0.IPv6 for mDNS.
Mar 7 02:01:20 PiTv avahi-daemon[376]: Registering new address record for fe80::c68f:e6c6:7b0f:9f88 on wlan0.*.
Mar 7 02:01:20 PiTv dhcpcd[449]: wlan0: soliciting an IPv6 router
Mar 7 02:01:21 PiTv dhcpcd[449]: wlan0: rebinding lease of 192.168.1.113
Mar 7 02:01:26 PiTv dhcpcd[449]: wlan0: probing for an IPv4LL address
Mar 7 02:01:26 PiTv dhcpcd[449]: wlan0: DHCP lease expired
Mar 7 02:01:26 PiTv dhcpcd[449]: wlan0: soliciting a DHCP lease
Mar 7 02:01:30 PiTv dhcpcd[449]: wlan0: using IPv4LL address 169.254.168.194
Mar 7 02:01:30 PiTv avahi-daemon[376]: Joining mDNS multicast group on interface wlan0.IPv4 with address 169.254.168.194.
Mar 7 02:01:30 PiTv dhcpcd[449]: wlan0: adding route to 169.254.0.0/16
Mar 7 02:01:30 PiTv dhcpcd[449]: wlan0: adding default route
Mar 7 02:01:30 PiTv avahi-daemon[376]: New relevant interface wlan0.IPv4 for mDNS.
Mar 7 02:01:30 PiTv avahi-daemon[376]: Registering new address record for 169.254.168.194 on wlan0.IPv4.
Mar 7 02:01:33 PiTv dhcpcd[449]: wlan0: no IPv6 Routers available


I then have to reboot the RPI 4 to re-connect to the WiFi. Is there anything I can do to have the RPI 4 automatically re-connect on reboot of the router?

I have been searching online but I can't find anything about this condition where the RPI 4 has WiFi connectivity working perfectly fine until the router is rebooted and then it fails to connect.

ksaro1
Posts: 6
Joined: Thu Oct 17, 2019 10:51 am

Re: WiFi Lost

Tue Mar 23, 2021 10:49 am

OK, I realised that I had only defined a single, guest SSID on my router's list of SSID's to be the wlan connection for my RPI4. I have since updated the wpa_supplicant.conf file to include 3 SSID's, including the primary SSID.

$ wpa_cli list_networks
Selected interface 'p2p-dev-wlan0'
network id / ssid / bssid / flags
0 Billion-AP-5g any
1 Billion-Guest1-5g any
2 Billion-Guest2-5g any

$ iwgetid
wlan0 ESSID:"Billion-AP-5g"

$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:"Billion-AP-5g"
Mode:Managed Frequency:5.18 GHz Access Point: 60:03:47:39:84:F3
Bit Rate=292.5 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=58/70 Signal level=-52 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:451 Invalid misc:0 Missed beacon:0

So far now when my Billion 8800AXL R2 reboots the RPI4 re-connects successfully.

This still doesn't explain why before when I just had the Billion-Guest1-5g as my sole SSID that the DHCP lease was lost on reboot. But the above changes do stop the issue from happening for my situation now.

ksaro1
Posts: 6
Joined: Thu Oct 17, 2019 10:51 am

Re: WiFi Lost

Sun Mar 28, 2021 9:25 am

Sorry, but this issue has returned.

$ grep 'avahi\|dhcp' /var/log/syslog|grep '03\:'
Mar 28 03:00:29 PiTv dhcpcd[475]: wlan0: carrier lost
Mar 28 03:00:29 PiTv dhcpcd[475]: wlan0: deleting address fe80::bdf2:d073:5ed2:fc8
Mar 28 03:00:29 PiTv avahi-daemon[445]: Withdrawing address record for fe80::bdf2:d073:5ed2:fc8 on wlan0.
Mar 28 03:00:29 PiTv avahi-daemon[445]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::bdf2:d073:5ed2:fc8.
Mar 28 03:00:29 PiTv avahi-daemon[445]: Interface wlan0.IPv6 no longer relevant for mDNS.
Mar 28 03:00:29 PiTv avahi-daemon[445]: Withdrawing address record for 192.168.1.102 on wlan0.
Mar 28 03:00:29 PiTv avahi-daemon[445]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.102.
Mar 28 03:00:29 PiTv avahi-daemon[445]: Interface wlan0.IPv4 no longer relevant for mDNS.
Mar 28 03:00:29 PiTv dhcpcd[475]: wlan0: deleting route to 192.168.1.0/24
Mar 28 03:00:29 PiTv dhcpcd[475]: wlan0: deleting default route via 192.168.1.254
Mar 28 03:01:30 PiTv dhcpcd[475]: wlan0: carrier acquired
Mar 28 03:01:30 PiTv dhcpcd[475]: wlan0: IAID 32:34:35:2d
Mar 28 03:01:30 PiTv dhcpcd[475]: wlan0: adding address fe80::bdf2:d073:5ed2:fc8
Mar 28 03:01:30 PiTv avahi-daemon[445]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::bdf2:d073:5ed2:fc8.
Mar 28 03:01:30 PiTv avahi-daemon[445]: New relevant interface wlan0.IPv6 for mDNS.
Mar 28 03:01:30 PiTv avahi-daemon[445]: Registering new address record for fe80::bdf2:d073:5ed2:fc8 on wlan0.*.
Mar 28 03:01:31 PiTv dhcpcd[475]: wlan0: soliciting an IPv6 router
Mar 28 03:01:31 PiTv dhcpcd[475]: wlan0: rebinding lease of 192.168.1.102
Mar 28 03:01:36 PiTv dhcpcd[475]: wlan0: probing for an IPv4LL address
Mar 28 03:01:36 PiTv dhcpcd[475]: wlan0: DHCP lease expired
Mar 28 03:01:36 PiTv dhcpcd[475]: wlan0: soliciting a DHCP lease
Mar 28 03:01:41 PiTv dhcpcd[475]: wlan0: using IPv4LL address 169.254.37.102
Mar 28 03:01:41 PiTv avahi-daemon[445]: Joining mDNS multicast group on interface wlan0.IPv4 with address 169.254.37.102.
Mar 28 03:01:41 PiTv dhcpcd[475]: wlan0: adding route to 169.254.0.0/16
Mar 28 03:01:41 PiTv dhcpcd[475]: wlan0: adding default route
Mar 28 03:01:41 PiTv avahi-daemon[445]: New relevant interface wlan0.IPv4 for mDNS.
Mar 28 03:01:41 PiTv avahi-daemon[445]: Registering new address record for 169.254.37.102 on wlan0.IPv4.
Mar 28 03:01:44 PiTv dhcpcd[475]: wlan0: no IPv6 Routers available


Again, the above shows the RPI4 being unable to renew its DHCP lease. I've passed this issue on to the router's manufacturer too. However, it seems odd that all other devices on my home Wi-Fi network can re-connect to this same router after it reboots and only the RPI4 can't. This would make it more likely this is a Raspbian issue more than a router issue. Does anyone have any experience in this?

BidTheByte
Posts: 4
Joined: Mon Jan 11, 2021 8:07 pm

Re: WiFi Lost

Sun May 09, 2021 9:12 am

Hi ksaro1

I had/have issues with wlan on RPI4B (4GB - running headless) being unstable.
ssh and VNC got disconnected spontaniously and I suspected it had something to do with my router.
But after searching the net and read several post here in the forum I found that by disabling power management on wlan the issue (seems) disappeared

Code: Select all

$ iw dev wlan0 get power_save
$ sudo iwconfig wlan0 power off
Maybe this will solve your issue?

Regards
kmk

Return to “Troubleshooting”