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

Troubleshooting • Re: Rapberry Pi Zero randomly gets DHCP address

$
0
0
The Pi does not have any DHCP server running inside it. I am sharing the connection from my ethernet and it is set to autometic.
Screenshot 2024-06-07 202513.png

The Pi's address is autometically set by the DNS server if I understand it correctly.Screenshot 2024-06-07 202759.png

As of writing this, the Pi is not responding to DHCP server again.
What's weird is even though the screenshot says - 192.168.137.1 is the ip address
this is what I am getting from the Pi

Code:

pi@raspberrypi:~ $ hostname -I169.254.251.5

Looks to me like what you're seeing is the expected behaviour when no DHCP server responds. You get a self assigned, random IP address in the link local subnet (169.254.0.0/16)

Are you using the USB ethernet gadget? If so have you manually set MAC addresses for it? If you haven't you'll get new, random MAC addresses at each boot of the Pi which will result in new IP addresses even if a DHCP server is present on the PC.

Statistics: Posted by thagrol — Sat Jun 08, 2024 1:12 am



Viewing all articles
Browse latest Browse all 4741

Trending Articles