Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4495

Troubleshooting • Rapberry Pi Zero randomly gets DHCP address

$
0
0
At the time of posting this, Pi is getting the DHCP address and internet is working.

Code:

pi@raspberrypi:~ $ hostname -I192.168.137.49

Code:

pi@raspberrypi:~ $ ping 8.8.8.8PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=18.8 ms64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=16.0 ms
But often time the pi ip will be - 169.254.x.x. and there will be no ping/no internet connection.

And I haven't found a reliable solution yet.
  • Sometimes turning the firewall off make it works
  • Sometime sharing/unsharing my ethernet connection make it works
  • Sometimes rebooting the PC or the Pi make it works.
I don't really have a clue on how to trouble shoot this.
I am running a headless raspberry pi zero, connected to my PC using a microUSB - RNDIS. and it is running the latest Buster lite.

Thanks for reading and really appriciate any input or the steps to trouble shoot this

Statistics: Posted by did773 — Fri Jun 07, 2024 5:57 pm — Replies 1 — Views 46



Viewing all articles
Browse latest Browse all 4495

Trending Articles