dhcpcd-discuss

RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspoints

bls s

Fri Dec 25 00:23:58 2020

Wasn't able to run all tests. Can't easily test roaming without household network wars, and don't have multiple nameservers.

Resolvconf -i results:
Wlan0 only: wlan0.dhcp (attached t-wifionly.txt)
Wlan0+eth0, no metrics set: eth0.dhcp wlan0.dhcp (attached t-wifiandether.txt)
Wlan0+eth0, lower wlan0 metric: wlan0.dhcp eth0.dhcp (attached t-wifiandetherwifiwins.txt)

I did notice one error in the dhcpcd output stream: ipv6_addaddr1: Permission denied

For the roaming test, my Asus RT-AC68 router and both 2.4 and 5 GHz bands enabled, and with different names (foobar and foobarX). But when I try to connect to the 5Ghz network for some reason it falls back to the 2.4. I don't understand how it even found the 2.4 SSID, they are different. The only way I can test roaming is to start with 5GHz, and then disable it (safe to do since nobody in the house uses it). But no joy.

bls

-----Original Message-----
From: Roy Marples <roy@xxxxxxxxxxxx> 
Sent: Wednesday, December 23, 2020 7:18 PM
To: bls s <bls3427@xxxxxxxxxxx>; Boris Krasnovskiy <borkra@xxxxxxxxx>
Cc: dhcpcd-discuss@xxxxxxxxxxxx
Subject: Re: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspoints

On 24/12/2020 01:46, bls s wrote:
> My duh. Started it from the command line and seems to be working correctly. 
> Previously it failed immediately, this has gone through 5 renewals with no problem.

Great, but we should be testing wireless roaming keeping the DNS yes?

Ideally test with an ethernet cable attached as well.
Set the metric of the wireless interface lower than the wired interface in dhcpcd.conf

`resolvconf -i` should list the wireless over the ethernet

Let the wireless roam and they should swap.

dhcpcd will do the same as well without resolvconf, but you would need to ensure both interfaces used a different nameserver and then inspect /etc/resolv.conf to ensure they swapped.

Let the wireless connect and they should swap again.

Let me know how it works out.

Roy
2020-12-24 15:53:40  main: control_open: Connection refused
2020-12-24 15:53:40  dhcpcd-9.3.4 starting
2020-12-24 15:53:40  lo: ignoring due to interface type and no config
2020-12-24 15:53:40  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
2020-12-24 15:53:40  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks CARRIER
2020-12-24 15:53:40  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
2020-12-24 15:53:40  wlan0: connected to Access Point: KinkyBits
2020-12-24 15:53:40  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks CARRIER
2020-12-24 15:53:40  eth0: delaying IPv4 for 0.5 seconds
2020-12-24 15:53:40  wlan0: delaying IPv4 for 0.8 seconds
2020-12-24 15:53:40  eth0: using ClientID 01:dc:a6:32:c5:07:a7
2020-12-24 15:53:40  eth0: reading lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 15:53:40  eth0: discarding expired lease
2020-12-24 15:53:40  eth0: soliciting a DHCP lease
2020-12-24 15:53:40  eth0: sending DISCOVER (xid 0x2a26fc81), next in 4.4 seconds
2020-12-24 15:53:40  eth0: offered 192.168.92.222 from 192.168.92.3
2020-12-24 15:53:40  eth0: sending REQUEST (xid 0x2a26fc81), next in 4.4 seconds
2020-12-24 15:53:40  eth0: acknowledged 192.168.92.222 from 192.168.92.3
2020-12-24 15:53:40  eth0: leased 192.168.92.222 for 300 seconds
2020-12-24 15:53:40  eth0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:53:40  eth0: writing lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 15:53:40  eth0: adding IP address 192.168.92.222/24 broadcast 192.168.92.255
2020-12-24 15:53:40  eth0: adding route to 192.168.92.0/24
2020-12-24 15:53:40  eth0: adding default route via 192.168.92.1
2020-12-24 15:53:40  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks BOUND
2020-12-24 15:53:41  wlan0: using ClientID 01:dc:a6:32:c5:07:a8
2020-12-24 15:53:41  wlan0: reading lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:53:41  wlan0: rebinding lease of 192.168.92.223
2020-12-24 15:53:41  wlan0: sending REQUEST (xid 0xf43874d4), next in 3.3 seconds
2020-12-24 15:53:41  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:53:41  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:53:41  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:53:41  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:53:41  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:53:41  wlan0: adding route to 192.168.92.0/24
2020-12-24 15:53:41  wlan0: adding default route via 192.168.92.1
2020-12-24 15:53:41  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks REBOOT
2020-12-24 15:53:41  wlan0: bound, ignoring 192.168.92.223 from 192.168.92.3
2020-12-24 15:56:10  eth0: renewing lease of 192.168.92.222
2020-12-24 15:56:10  eth0: sending REQUEST (xid 0xef0fcb15), next in 4.5 seconds
2020-12-24 15:56:10  eth0: acknowledged 192.168.92.222 from 192.168.92.3
2020-12-24 15:56:10  eth0: leased 192.168.92.222 for 300 seconds
2020-12-24 15:56:10  eth0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:56:10  eth0: writing lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 15:56:11  eth0: adding IP address 192.168.92.222/24 broadcast 192.168.92.255
2020-12-24 15:56:11  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:56:11  wlan0: renewing lease of 192.168.92.223
2020-12-24 15:56:11  wlan0: sending REQUEST (xid 0x2926f19d), next in 4.6 seconds
2020-12-24 15:56:11  eth0: redirecting DHCP message to wlan0
2020-12-24 15:56:11  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:56:11  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:56:11  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:56:11  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:56:11  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:56:11  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:58:40  eth0: renewing lease of 192.168.92.222
2020-12-24 15:58:41  eth0: sending REQUEST (xid 0xdbafc680), next in 3.5 seconds
2020-12-24 15:58:41  eth0: acknowledged 192.168.92.222 from 192.168.92.3
2020-12-24 15:58:41  eth0: leased 192.168.92.222 for 300 seconds
2020-12-24 15:58:41  eth0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:58:41  eth0: writing lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 15:58:41  eth0: adding IP address 192.168.92.222/24 broadcast 192.168.92.255
2020-12-24 15:58:41  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:58:41  wlan0: renewing lease of 192.168.92.223
2020-12-24 15:58:41  wlan0: sending REQUEST (xid 0x7d7c03c), next in 3.6 seconds
2020-12-24 15:58:41  eth0: redirecting DHCP message to wlan0
2020-12-24 15:58:41  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:58:41  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:58:41  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:58:41  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:58:41  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:58:41  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:59:42  main: control_open: Connection refused
2020-12-24 15:59:42  dhcpcd-9.3.4 starting
2020-12-24 15:59:42  lo: ignoring due to interface type and no config
2020-12-24 15:59:42  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
2020-12-24 15:59:42  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks CARRIER
2020-12-24 15:59:42  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
2020-12-24 15:59:42  wlan0: connected to Access Point: KinkyBits
2020-12-24 15:59:42  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks CARRIER
2020-12-24 15:59:42  DUID 00:01:00:01:27:77:e7:ee:dc:a6:32:c5:07:a7
2020-12-24 15:59:42  eth0: IAID 32:c5:07:a7
2020-12-24 15:59:42  eth0: adding address fe80::cd0a:b79d:dc3e:3dfa
2020-12-24 15:59:42  eth0: pltime infinity, vltime infinity
2020-12-24 15:59:42  ipv6_addaddr1: Permission denied
2020-12-24 15:59:42  eth0: delaying IPv6 router solicitation for 0.0 seconds
2020-12-24 15:59:42  eth0: delaying IPv4 for 0.8 seconds
2020-12-24 15:59:42  wlan0: IAID 32:c5:07:a8
2020-12-24 15:59:42  wlan0: adding address fe80::82b9:6710:2cfc:24d6
2020-12-24 15:59:42  wlan0: pltime infinity, vltime infinity
2020-12-24 15:59:42  ipv6_addaddr1: Permission denied
2020-12-24 15:59:42  wlan0: delaying IPv6 router solicitation for 0.7 seconds
2020-12-24 15:59:42  wlan0: delaying IPv4 for 1.7 seconds
2020-12-24 15:59:42  eth0: soliciting an IPv6 router
2020-12-24 15:59:42  eth0: delaying Router Solicitation for LL address
2020-12-24 15:59:42  wlan0: soliciting an IPv6 router
2020-12-24 15:59:42  wlan0: delaying Router Solicitation for LL address
2020-12-24 15:59:43  eth0: using ClientID 01:dc:a6:32:c5:07:a7
2020-12-24 15:59:43  eth0: reading lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 15:59:43  eth0: rebinding lease of 192.168.92.222
2020-12-24 15:59:43  eth0: ARP announcing 192.168.92.222 (1 of 2), next in 2.0 seconds
2020-12-24 15:59:43  eth0: sending REQUEST (xid 0x6008636c), next in 4.3 seconds
2020-12-24 15:59:43  eth0: acknowledged 192.168.92.222 from 192.168.92.3
2020-12-24 15:59:43  eth0: leased 192.168.92.222 for 300 seconds
2020-12-24 15:59:43  eth0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:59:43  eth0: writing lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 15:59:43  eth0: adding IP address 192.168.92.222/24 broadcast 192.168.92.255
2020-12-24 15:59:43  eth0: adding route to 192.168.92.0/24
2020-12-24 15:59:43  eth0: adding default route via 192.168.92.1
2020-12-24 15:59:43  eth0: ARP announcing 192.168.92.222 (1 of 2), next in 2.0 seconds
2020-12-24 15:59:43  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks REBOOT
2020-12-24 15:59:43  eth0: bound, ignoring 192.168.92.222 from 192.168.92.3
2020-12-24 15:59:43  wlan0: using ClientID 01:dc:a6:32:c5:07:a8
2020-12-24 15:59:43  wlan0: reading lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:59:43  wlan0: rebinding lease of 192.168.92.223
2020-12-24 15:59:43  wlan0: ARP announcing 192.168.92.223 (1 of 2), next in 2.0 seconds
2020-12-24 15:59:44  wlan0: sending REQUEST (xid 0xb629fff5), next in 4.6 seconds
2020-12-24 15:59:44  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:59:44  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:59:44  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:59:44  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:59:44  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:59:44  wlan0: adding route to 192.168.92.0/24
2020-12-24 15:59:44  wlan0: adding default route via 192.168.92.1
2020-12-24 15:59:44  wlan0: ARP announcing 192.168.92.223 (1 of 2), next in 2.0 seconds
2020-12-24 15:59:44  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks REBOOT
2020-12-24 15:59:44  wlan0: bound, ignoring 192.168.92.223 from 192.168.92.3
2020-12-24 15:59:45  eth0: ARP announcing 192.168.92.222 (2 of 2)
2020-12-24 15:59:46  wlan0: ARP announcing 192.168.92.223 (2 of 2)
2020-12-24 16:02:13  eth0: renewing lease of 192.168.92.222
2020-12-24 16:02:13  eth0: sending REQUEST (xid 0x837dcb7f), next in 3.8 seconds
2020-12-24 16:02:13  eth0: acknowledged 192.168.92.222 from 192.168.92.3
2020-12-24 16:02:13  eth0: leased 192.168.92.222 for 300 seconds
2020-12-24 16:02:13  eth0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 16:02:13  eth0: writing lease: /var/lib/dhcpcd5/eth0.lease
2020-12-24 16:02:13  eth0: adding IP address 192.168.92.222/24 broadcast 192.168.92.255
2020-12-24 16:02:13  eth0: ARP announcing 192.168.92.222 (1 of 2), next in 2.0 seconds
2020-12-24 16:02:13  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 16:02:14  wlan0: renewing lease of 192.168.92.223
2020-12-24 16:02:14  wlan0: sending REQUEST (xid 0x48eb0dbe), next in 4.8 seconds
2020-12-24 16:02:14  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 16:02:14  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 16:02:14  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 16:02:14  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 16:02:14  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 16:02:14  wlan0: ARP announcing 192.168.92.223 (1 of 2), next in 2.0 seconds
2020-12-24 16:02:14  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 16:02:15  eth0: ARP announcing 192.168.92.222 (2 of 2)
2020-12-24 16:02:16  wlan0: ARP announcing 192.168.92.223 (2 of 2)
2020-12-24 15:42:42  main: control_open: Connection refused
2020-12-24 15:42:42  dhcpcd-9.3.4 starting
2020-12-24 15:42:42  lo: ignoring due to interface type and no config
2020-12-24 15:42:42  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
2020-12-24 15:42:42  eth0: executing: /lib/dhcpcd/dhcpcd-run-hooks NOCARRIER
2020-12-24 15:42:42  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks PREINIT
2020-12-24 15:42:42  wlan0: connected to Access Point: KinkyBits
2020-12-24 15:42:42  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks CARRIER
2020-12-24 15:42:42  eth0: waiting for carrier
2020-12-24 15:42:42  wlan0: delaying IPv4 for 0.9 seconds
2020-12-24 15:42:43  wlan0: using ClientID 01:dc:a6:32:c5:07:a8
2020-12-24 15:42:43  wlan0: reading lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:42:43  wlan0: rebinding lease of 192.168.92.223
2020-12-24 15:42:43  wlan0: sending REQUEST (xid 0x39f827fd), next in 3.1 seconds
2020-12-24 15:42:43  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:42:43  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:42:43  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:42:43  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:42:43  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:42:43  wlan0: adding route to 192.168.92.0/24
2020-12-24 15:42:43  wlan0: adding default route via 192.168.92.1
2020-12-24 15:42:43  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks REBOOT
2020-12-24 15:42:43  wlan0: bound, ignoring 192.168.92.223 from 192.168.92.3
2020-12-24 15:45:13  wlan0: renewing lease of 192.168.92.223
2020-12-24 15:45:13  wlan0: sending REQUEST (xid 0x83bf8fc9), next in 3.9 seconds
2020-12-24 15:45:17  wlan0: sending REQUEST (xid 0x83bf8fc9), next in 8.1 seconds
2020-12-24 15:45:18  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:45:18  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:45:18  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:45:18  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:45:18  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:45:18  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:47:48  wlan0: renewing lease of 192.168.92.223
2020-12-24 15:47:48  wlan0: sending REQUEST (xid 0x33df3d3f), next in 4.7 seconds
2020-12-24 15:47:53  wlan0: sending REQUEST (xid 0x33df3d3f), next in 7.7 seconds
2020-12-24 15:47:53  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:47:53  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:47:53  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:47:53  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:47:53  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:47:53  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:50:23  wlan0: renewing lease of 192.168.92.223
2020-12-24 15:50:23  wlan0: sending REQUEST (xid 0x3818cd6b), next in 3.7 seconds
2020-12-24 15:50:27  wlan0: sending REQUEST (xid 0x3818cd6b), next in 8.2 seconds
2020-12-24 15:50:28  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:50:28  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:50:28  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:50:28  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:50:28  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:50:28  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW
2020-12-24 15:52:58  wlan0: renewing lease of 192.168.92.223
2020-12-24 15:52:58  wlan0: sending REQUEST (xid 0x10017d43), next in 4.4 seconds
2020-12-24 15:52:58  wlan0: acknowledged 192.168.92.223 from 192.168.92.3
2020-12-24 15:52:58  wlan0: leased 192.168.92.223 for 300 seconds
2020-12-24 15:52:58  wlan0: renew in 150 seconds, rebind in 262 seconds
2020-12-24 15:52:58  wlan0: writing lease: /var/lib/dhcpcd5/wlan0-KinkyBits.lease
2020-12-24 15:52:58  wlan0: adding IP address 192.168.92.223/24 broadcast 192.168.92.255
2020-12-24 15:52:58  wlan0: executing: /lib/dhcpcd/dhcpcd-run-hooks RENEW

Follow-Ups:
RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspointsBoris Krasnovskiy
Re: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspointsRoy Marples
References:
dhcpcd kills all connections on Wi-Fi roaming between access pointsBoris Krasnovskiy
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsRoy Marples
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsBoris Krasnovskiy
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsRoy Marples
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsBoris Krasnovskiy
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsRoy Marples
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsBoris Krasnovskiy
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsRoy Marples
Re: dhcpcd kills all connections on Wi-Fi roaming between access pointsRoy Marples
RE: dhcpcd kills all connections on Wi-Fi roaming between access pointsbls s
RE: dhcpcd kills all connections on Wi-Fi roaming between accesspointsBoris Krasnovskiy
RE: dhcpcd kills all connections on Wi-Fi roaming between accesspointsbls s
RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspointsBoris Krasnovskiy
RE: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspointsbls s
Re: dhcpcd kills all connections on Wi-Fi roaming betweenaccesspointsRoy Marples
Archive administrator: postmaster@marples.name