Posts: 341
Threads: 0
Joined: Apr 2016
Reputation:
23
I just have tested it. But everything incl. dhcpcd work OK.
Can you reproduce the situation?
Can you check
"systemctl status dhcpcd" and
"route -n"
before and after?
I have watched that sometimes the standard gateway doesn't change.
Posts: 1,199
Threads: 101
Joined: Mar 2016
Reputation:
71
OK, didn't see dhcpcd in htop max out a core but with a laptop connected to 10.10.10.1 and openplotter usb wifi dongle connected to mobile hotspot on 192.168.43.97, disabling the hotspot resulted in the laptop being kicked off 10.10.10.1, unable to connect.
Before:>>>>>>>
pi@openplotter:~ $ systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-11-10 15:57:34 GMT; 28min ago
Process: 341 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Main PID: 415 (dhcpcd)
Tasks: 2 (limit: 1633)
Memory: 4.6M
CGroup: /system.slice/dhcpcd.service
├─415 /sbin/dhcpcd -q -b
└─517 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan1 -Dnl80211,wext
Nov 10 15:57:44 openplotter dhcpcd[415]: wlan1: adding default route via 192.168.43.219
Nov 10 16:08:51 openplotter dhcpcd[415]: wlan1: carrier lost
Nov 10 16:08:51 openplotter dhcpcd[415]: wlan1: deleting route to 192.168.43.0/24
Nov 10 16:08:51 openplotter dhcpcd[415]: wlan1: deleting default route via 192.168.43.219
Nov 10 16:13:36 openplotter dhcpcd[415]: wlan1: carrier acquired
Nov 10 16:13:37 openplotter dhcpcd[415]: wlan1: rebinding lease of 192.168.43.97
Nov 10 16:13:37 openplotter dhcpcd[415]: wlan1: probing address 192.168.43.97/24
Nov 10 16:13:42 openplotter dhcpcd[415]: wlan1: leased 192.168.43.97 for 3600 seconds
Nov 10 16:13:42 openplotter dhcpcd[415]: wlan1: adding route to 192.168.43.0/24
Nov 10 16:13:42 openplotter dhcpcd[415]: wlan1: adding default route via 192.168.43.176
pi@openplotter:~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.43.176 0.0.0.0 UG 304 0 0 wlan1
0.0.0.0 10.10.10.1 0.0.0.0 UG 510 0 0 wlan9
10.10.10.0 0.0.0.0 255.255.255.0 U 510 0 0 wlan9
192.168.43.0 0.0.0.0 255.255.255.0 U 304 0 0 wlan1
pi@openplotter:~ $
after ->>>>>
pi@openplotter:~ $ systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-11-10 15:57:34 GMT; 29min ago
Process: 341 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Main PID: 415 (dhcpcd)
Tasks: 2 (limit: 1633)
Memory: 5.0M
CGroup: /system.slice/dhcpcd.service
├─415 /sbin/dhcpcd -q -b
└─517 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan1 -Dnl80211,wext
Nov 10 16:08:51 openplotter dhcpcd[415]: wlan1: deleting default route via 192.168.43.219
Nov 10 16:13:36 openplotter dhcpcd[415]: wlan1: carrier acquired
Nov 10 16:13:37 openplotter dhcpcd[415]: wlan1: rebinding lease of 192.168.43.97
Nov 10 16:13:37 openplotter dhcpcd[415]: wlan1: probing address 192.168.43.97/24
Nov 10 16:13:42 openplotter dhcpcd[415]: wlan1: leased 192.168.43.97 for 3600 seconds
Nov 10 16:13:42 openplotter dhcpcd[415]: wlan1: adding route to 192.168.43.0/24
Nov 10 16:13:42 openplotter dhcpcd[415]: wlan1: adding default route via 192.168.43.176
Nov 10 16:26:51 openplotter dhcpcd[415]: wlan1: carrier lost
Nov 10 16:26:51 openplotter dhcpcd[415]: wlan1: deleting route to 192.168.43.0/24
Nov 10 16:26:51 openplotter dhcpcd[415]: wlan1: deleting default route via 192.168.43.176
pi@openplotter:~ $ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.10.10.1 0.0.0.0 UG 510 0 0 wlan9
10.10.10.0 0.0.0.0 255.255.255.0 U 510 0 0 wlan9
pi@openplotter:~
Posts: 341
Threads: 0
Joined: Apr 2016
Reputation:
23
I can see the same entrys when I disable my mobil hotspot. No high cpu strain.
Then I switched on mobile hotspot again. Auto connecting and everything is fine.