Go to advanced search

by hollymcr
Mon Jul 29, 2019 4:41 pm
Forum: Troubleshooting
Topic: Pi3/Buster - Wifi getting assigned multiple IP via DHCP
Replies: 11
Views: 599

Re: Pi3/Buster - Wifi getting assigned multiple IP via DHCP

/var/lib you mean? Yes, sorry. See this https://wiki.archlinux.org/index.php/dhcpcd#Remove_old_DHCP_lease I suspect your trouble comes from the multiple restarts combined with a little too much RO filesystem. Perhaps in combination with the behavior of the DHCP server. The above is why it's now in ...
by hollymcr
Mon Jul 29, 2019 3:19 pm
Forum: Troubleshooting
Topic: Pi3/Buster - Wifi getting assigned multiple IP via DHCP
Replies: 11
Views: 599

Re: Pi3/Buster - Wifi getting assigned multiple IP via DHCP

(Usually an RO system is the result of an accident or a defect.) Ah, fair enough. No, this isn't a kernel trying to protect itself, this is a Pi I'm trying to make robust enough to handle unplanned power loss. /var/log/dhcpcd is a symlink to /tmp (which is in memory). The cmdline.txt was to check i...
by hollymcr
Mon Jul 29, 2019 2:53 pm
Forum: Troubleshooting
Topic: Pi3/Buster - Wifi getting assigned multiple IP via DHCP
Replies: 11
Views: 599

Re: Pi3/Buster - Wifi getting assigned multiple IP via DHCP

Reboot your router. Can I ask why that might cause the Pi to have multiple IP addresses? If I can work out what might have caused it that gives me something I can test. As it happens the router is set to reboot nightly anyway (and my logs go back far enough to know that the other IP addresses pre-d...
by hollymcr
Mon Jul 29, 2019 2:49 pm
Forum: Troubleshooting
Topic: Pi3/Buster - Wifi getting assigned multiple IP via DHCP
Replies: 11
Views: 599

Re: Pi3/Buster - Wifi getting assigned multiple IP via DHCP

Trying to fix the issue on a semi-broken system could be a waste of time... You may call it broken.... The fact that it's running on a read-only system is obviously not accidental. The upgrade from stretch (because I want to test it on a Pi4 at some point) might have ideally been better as a clean ...
by hollymcr
Mon Jul 29, 2019 2:31 pm
Forum: Troubleshooting
Topic: Pi3/Buster - Wifi getting assigned multiple IP via DHCP
Replies: 11
Views: 599

Re: Pi3/Buster - Wifi getting assigned multiple IP via DHCP

What changes have you made to /etc/network/interfaces? Undo everything in there. # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interf...
by hollymcr
Mon Jul 29, 2019 1:38 pm
Forum: Troubleshooting
Topic: Pi3/Buster - Wifi getting assigned multiple IP via DHCP
Replies: 11
Views: 599

Pi3/Buster - Wifi getting assigned multiple IP via DHCP

My Pi currently has 3 IP addresses on my network via wifi (one of which is also the Ethernet IP). Any suggestions why, or how I can work out why? To complicate things (maybe, anyway): It is running Debian 10 (Buster) but as an upgrade from 9 (Stretch) so it may be related to that. It is also running...
by hollymcr
Thu Jan 03, 2019 12:03 pm
Forum: Advanced users
Topic: Boot differences between Pi and Pi Zero
Replies: 2
Views: 381

Boot differences between Pi and Pi Zero

Specifically in my case Pi 3B vs ZeroW, but ideally more generally: What are the differences between the two from a boot perspective (other than are obvious from the differing hardware)? The reason for asking: I have been playing with Plymouth to change the boot visuals, and on a 3B I have no proble...
by hollymcr
Tue Apr 03, 2018 4:57 pm
Forum: Advanced users
Topic: Raspbian hw clock reset after reboot
Replies: 6
Views: 3033

Re: Raspbian hw clock reset after reboot

This way, kernel will write the time to RTC when user space reports time as synched. Proof: timedatectl will show ntp synched: yes right after reboot. Did you ever find a good solution to this? I am working with a board that has an onboard RTC but which doesn't present itself to the Pi as such (I h...
by hollymcr
Mon Jan 22, 2018 2:38 pm
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 17883

Re: Changing IP config without rebooting

I had the same problem and wanted a general way to (1) Make modifications to /etc/dhcpcd.conf and (2) restart all network interfaces without a reboot. The missing piece is that each network interface needs the IP to be flushed so that on restart the system configures the device. Perfect, thanks - I...
by hollymcr
Sun Dec 17, 2017 1:34 pm
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 17883

Re: Changing IP config without rebooting

Don't bother trying, it only generates the same internal commands as sudo ip addr change ... , so in my view it's a million times easier to just use that ip addr change command rather than mucking about wasting time trying to hack dhcpcd into submission. Actually, that gives me an idea. The dhcpcd ...
by hollymcr
Sun Dec 17, 2017 10:51 am
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 17883

Re: Changing IP config without rebooting

It's this boot only, you need to change /etc/dhcpcd.conf if you want to make the changes permanent. There has to be a way to tell the Pi to reread dhcpcd.conf for the current session (and wpa_supplicant.conf) instead of requiring a reboot. The reason I haven't tested your initial suggestions yet is...
by hollymcr
Sun Dec 17, 2017 10:30 am
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 17883

Re: Changing IP config without rebooting

DougieLawson wrote:
Thu Dec 14, 2017 6:59 pm
Try using

sudo ip addr change dev eth0 192.168.3.14/24
sudo ip route add default via 192.168.3.254
Thanks, I'll try this, but I'm assuming this won't (on its own) be persistent?

(Also doesn't help with the similar WiFi issue but at this point I'll take any suggestions going!)
by hollymcr
Wed Dec 13, 2017 11:37 am
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 13
Views: 17883

Changing IP config without rebooting

I'm using stretch and trying to change my IP settings (cabled and/or wifi) without rebooting. If I make changes to /etc/dhcpcd.conf and/or /etc/wpa_supplicant/wpa_supplicant.conf and then: sudo systemctl daemon-reload sudo systemctl restart dhcpcd then changes are applied (eg if I switch from DHCP t...
by hollymcr
Thu Feb 11, 2016 9:48 pm
Forum: Advanced users
Topic: 1-wire devices not being removed
Replies: 1
Views: 455

Re: 1-wire devices not being removed

Minor correction to earlier post: it turns out that the removal is happening but not on the next scan, it can be several minutes.
by hollymcr
Thu Feb 11, 2016 7:23 pm
Forum: Advanced users
Topic: 1-wire devices not being removed
Replies: 1
Views: 455

1-wire devices not being removed

I'm running Raspbian 2012-02-09, and I'm trying to detect the presence (or otherwise) of Dallas iButton devices. I have set dtoverlay=w1-gpio in /boot/config.txt and sure enough if I put the iButton next to the reader (and wait 10s for it to be scanned) I can see the device: $cat /sys/devices/w1_bus...

Go to advanced search