Wifi connection killed when router off

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Wifi connection killed when router off

Postby docertabum » Thu Apr 02, 2020 12:53 pm

Hello guys, could you please help me what I miss here... I've got raspberry running Archlinux without keyboard nor screen and I want to have it reconnected whenever wifi router is ON and online, too.... For that I installed connman but somehow it didnt work as I wanted. SO I removed connman and just use netctl-auto. I however dont know how to get reconected, when router is switched on. Should I use some scheduled shell script check or there is something already in netctl? thank you. Log below starting from phase when wifi router is switched off...
$this->bbcode_second_pass_code('', '
Mar 31 23:38:02 HostNameXZY kernel: wlan0: Connection to AP 12:34:56:78:90:10 lost
Mar 31 23:38:02 HostNameXZY dhcpcd[326]: wlan0: carrier lost
Mar 31 23:38:02 HostNameXZY systemd-networkd[148]: wlan0: Lost carrier
Mar 31 23:38:03 HostNameXZY dhcpcd[326]: wlan0: deleting address abab::abab:abab:abab:abab
Mar 31 23:38:03 HostNameXZY dhcpcd[326]: wlan0: deleting route to 192.168.1.0/24
Mar 31 23:38:03 HostNameXZY dhcpcd[343]: wlan0: pid 326 deleted IP address 192.168.1.199/24
Mar 31 23:38:03 HostNameXZY dhcpcd[343]: wlan0: deleting route to 192.168.1.0/24
Mar 31 23:38:03 HostNameXZY dhcpcd[343]: wlan0: deleting default route via 192.168.1.1
Mar 31 23:38:03 HostNameXZY dhcpcd[326]: wlan0: deleting default route via 192.168.1.1
Mar 31 23:38:04 HostNameXZY dhcpcd[343]: wlan0: rebinding lease of 192.168.1.199
Mar 31 23:38:04 HostNameXZY dhcpcd[343]: wlan0: removing interface
Apr 01 12:00:45 HostNameXZY systemd[1]: Stopping dhcpcd on wlan0...
-- Subject: A stop job for unit dhcpcd@wlan0.service has begun execution
-- A stop job for unit dhcpcd@wlan0.service has begun execution.
-- Subject: A stop job for unit netctl-auto@wlan0.service has begun execution
-- A stop job for unit netctl-auto@wlan0.service has begun execution.
Apr 01 12:00:45 HostNameXZY dhcpcd[326]: wlan0: removing interface
Apr 01 12:00:45 HostNameXZY systemd[1]: dhcpcd@wlan0.service: Succeeded.
-- The unit dhcpcd@wlan0.service has successfully entered the 'dead' state.
Apr 01 12:00:45 HostNameXZY systemd[1]: Stopped dhcpcd on wlan0.
-- Subject: A stop job for unit dhcpcd@wlan0.service has finished
-- A stop job for unit dhcpcd@wlan0.service has finished.
Apr 01 12:00:45 HostNameXZY audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dhcpcd@wlan0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 01 12:00:46 HostNameXZY systemd[1]: netctl-auto@wlan0.service: Succeeded.
-- The unit netctl-auto@wlan0.service has successfully entered the 'dead' state.
-- Subject: A stop job for unit netctl-auto@wlan0.service has finished
-- A stop job for unit netctl-auto@wlan0.service has finished.
Apr 01 12:00:46 HostNameXZY audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl-auto@wlan0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
-- Subject: A start job for unit sys-subsystem-net-devices-wlan0.device has finished successfully
-- A start job for unit sys-subsystem-net-devices-wlan0.device has finished successfully.
Apr 01 12:00:49 HostNameXZY systemd[1]: Starting dhcpcd on wlan0...
-- Subject: A start job for unit dhcpcd@wlan0.service has begun execution
-- A start job for unit dhcpcd@wlan0.service has begun execution.
-- Subject: A start job for unit netctl-auto@wlan0.service has begun execution
-- A start job for unit netctl-auto@wlan0.service has begun execution.
Apr 01 12:00:53 HostNameXZY systemd-networkd[151]: wlan0: Link UP
Apr 01 12:00:53 HostNameXZY kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Apr 01 12:00:53 HostNameXZY dhcpcd[216]: wlan0: waiting for carrier
Apr 01 12:00:53 HostNameXZY dhcpcd[216]: wlan0: carrier acquired
Apr 01 12:00:53 HostNameXZY dhcpcd[216]: wlan0: IAID ef:80:36:45
Apr 01 12:00:53 HostNameXZY dhcpcd[216]: wlan0: adding address aaaa::bbbb:cccc:dddd:eeee
Apr 01 12:00:53 HostNameXZY dhcpcd[216]: wlan0: carrier lost
Apr 01 12:00:54 HostNameXZY dhcpcd[216]: wlan0: deleting address aaaa::bbbb:cccc:dddd:eeee
-- Subject: A start job for unit netctl-auto@wlan0.service has finished successfully
-- A start job for unit netctl-auto@wlan0.service has finished successfully.
Apr 01 12:00:54 HostNameXZY audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl-auto@wlan0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 01 12:00:54 HostNameXZY kernel: audit: type=1130 audit(1585735254.464:22): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl-auto@wlan0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 01 12:00:55 HostNameXZY kernel: wlan0: authenticate with 12:34:56:78:90:10
Apr 01 12:00:55 HostNameXZY kernel: wlan0: send auth to 12:34:56:78:90:10 (try 1/3)
Apr 01 12:00:55 HostNameXZY kernel: wlan0: authenticated
Apr 01 12:00:55 HostNameXZY kernel: wlan0: associate with 12:34:56:78:90:10 (try 1/3)
Apr 01 12:00:55 HostNameXZY kernel: wlan0: RX AssocResp from 12:34:56:78:90:10 (capab=0x431 status=0 aid=3)
Apr 01 12:00:55 HostNameXZY kernel: wlan0: associated
Apr 01 12:00:56 HostNameXZY dhcpcd[216]: wlan0: carrier acquired
Apr 01 12:00:56 HostNameXZY kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Apr 01 12:00:56 HostNameXZY dhcpcd[216]: wlan0: connected to Access Point `pointXYZ'
Apr 01 12:00:56 HostNameXZY systemd-networkd[151]: wlan0: Gained carrier
Apr 01 12:00:56 HostNameXZY systemd-networkd[151]: wlan0: Connected WiFi access point: pointXYZ (12:34:56:78:90:10)
Apr 01 12:00:56 HostNameXZY dhcpcd[216]: wlan0: IAID ef:80:36:45
Apr 01 12:00:56 HostNameXZY dhcpcd[216]: wlan0: adding address abab::abab:abab:abab:abab
Apr 01 12:00:56 HostNameXZY dhcpcd[266]: wlan0: connected to Access Point `pointXYZ'
Apr 01 12:00:56 HostNameXZY dhcpcd[266]: wlan0: IAID ef:80:36:45
Apr 01 12:00:57 HostNameXZY dhcpcd[216]: wlan0: soliciting an IPv6 router
Apr 01 12:00:57 HostNameXZY dhcpcd[216]: wlan0: soliciting a DHCP lease
Apr 01 12:00:57 HostNameXZY dhcpcd[266]: wlan0: soliciting a DHCP lease
Apr 01 12:00:58 HostNameXZY systemd-networkd[151]: wlan0: Gained IPv6LL
Apr 01 12:01:00 HostNameXZY dhcpcd[216]: wlan0: offered 192.168.1.199 from 192.168.1.1
Apr 01 12:01:00 HostNameXZY dhcpcd[266]: wlan0: offered 192.168.1.199 from 192.168.1.1
Apr 01 12:01:00 HostNameXZY dhcpcd[266]: wlan0: probing address 192.168.1.199/24
Apr 01 12:01:00 HostNameXZY dhcpcd[216]: wlan0: probing address 192.168.1.199/24
Apr 01 12:01:04 HostNameXZY dhcpcd[266]: wlan0: leased 192.168.1.199 for 43200 seconds
Apr 01 12:01:04 HostNameXZY dhcpcd[266]: wlan0: adding route to 192.168.1.0/24
Apr 01 12:01:04 HostNameXZY dhcpcd[266]: wlan0: adding default route via 192.168.1.1
Apr 01 12:01:05 HostNameXZY dhcpcd[216]: wlan0: leased 192.168.1.199 for 43200 seconds
Apr 01 12:01:05 HostNameXZY dhcpcd[216]: wlan0: adding route to 192.168.1.0/24
Apr 01 12:01:05 HostNameXZY dhcpcd[216]: wlan0: adding default route via 192.168.1.1
Apr 01 12:01:07 HostNameXZY systemd[1]: Started dhcpcd on wlan0.
-- Subject: A start job for unit dhcpcd@wlan0.service has finished successfully
-- A start job for unit dhcpcd@wlan0.service has finished successfully.
Apr 01 12:01:07 HostNameXZY audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dhcpcd@wlan0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 01 12:01:07 HostNameXZY kernel: audit: type=1130 audit(1585735267.064:23): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dhcpcd@wlan0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 01 12:01:11 HostNameXZY dhcpcd[340]: wlan0: no IPv6 Routers available
')
docertabum
 
Posts: 2
Joined: Wed Oct 08, 2014 9:08 am

Re: Wifi connection killed when router off

Postby RuneArch » Thu Apr 02, 2020 4:35 pm

Firstly, how many network managers are you running.

Have a look at this thread: https://archlinuxarm.org/forum/viewtopic.php?f=15&t=14188&hilit=netctl+resolved - while that post is about DNS, it might help your problem by looking at whether different services are fighting over each other.

I have had several different Raspberry's that reconnect to the Wifi with no problem - I just setup systemd and wpa_supplicant and everything just works
RuneArch
 
Posts: 8
Joined: Fri Mar 27, 2020 10:23 am

Re: Wifi connection killed when router off

Postby docertabum » Thu Apr 02, 2020 8:13 pm

Hi RuneArch,
You might be right. I found out networkd and netctl runs in parallel. Thanks for heads up.
docertabum
 
Posts: 2
Joined: Wed Oct 08, 2014 9:08 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 2 guests