Pi has 2 IPv4 addresses

I don’t know when and how but suddenly my Pi4 has two IPv4 addresses. The “original” one (192.168.178.65) and a 169.xxx.

  • /etc/network/interfaces - is standard. no definitions here
  • /etc/dhcpcd.conf - no static IP addresses defined here
  • /etc/sysctl.d/ - no definitions here

what else can I check to find where the 2nd IP address is coming from?

Some Linux systems assign 169.* addresses if they fail to obtain a DHCP address.
But that now has nothing to do with OH so may I suggest you g**gle this on your own?

thanks.

I already did without any luck. I checked all various files like the above.
I was hoping that maybe someone else here was facing also this problem.

I know, and in my case the 192.168.178.65 is provided by dhcp server and works without any problems

It’s called APIPA (see RFC 3330 for more details) and is very common (for example every Windows system is using APIPA if no DHCP Server is reachable) :wink:

Hi Udo,
thanks for jumping in.

But in my case the dhcp server is reachable

What’s the output of ip a?


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether dc:a6:32:ea:29:57 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.65/24 brd 192.168.178.255 scope global dynamic noprefixroute eth0
       valid_lft 839563sec preferred_lft 731563sec
    inet 169.254.95.32/16 brd 169.254.255.255 scope global noprefixroute eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::22da:e86:50c0:3c39/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever