Two ip adresses Raspberry Pi 3+


I have installed latest openhabian to test openhab 3.
I have modified the /etc/dhcpcd.conf as usual, to set a static ip adress:

interface eth0
static ip_address=
static routers=
static domain_name_servers=

But now I get two ip adresses and
ip a

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:....ff:ff
    inet brd scope global dynamic noprefixroute eth0
       valid_lft 863156sec preferred_lft 863156sec
    inet brd scope global secondary noprefixroute eth0
       valid_lft forever preferred_lft forever

I do not understand where this is defined?

Maybe someone may help?

You are not supposed to set a static IP on openHABian but DHCP as documented.
so any change of the openHABian code may interfere with your settings.
Use a DHCP server and map MAC to IP addresses on there.

1 Like