Oliver2
(Oliver)
May 29, 2021, 9:34pm
1
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?
mstormi
(Markus Storm)
May 29, 2021, 9:51pm
2
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?
Oliver2
(Oliver)
May 29, 2021, 9:59pm
3
thanks.
mstormi:
you g**gle this on your own
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.
mstormi:
169.* addresses if they fail to obtain a DHCP address.
I know, and in my case the 192.168.178.65 is provided by dhcp server and works without any problems
mstormi:
Some Linux systems assign 169.* addresses if they fail to obtain a DHCP address.
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)
Oliver2
(Oliver)
May 29, 2021, 10:22pm
5
Hi Udo,
thanks for jumping in.
But in my case the dhcp server is reachable
What’s the output of ip a
?
Oliver2
(Oliver)
May 29, 2021, 10:32pm
7
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