Two ip adresses Raspberry Pi 3+

Hi!

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=10.0.0.99/24
static routers=10.0.0.138
static domain_name_servers=10.0.0.138

But now I get two ip adresses 10.0.0.1 and 10.0.0.99
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 10.0.0.1/24 brd 10.0.0.255 scope global dynamic noprefixroute eth0
       valid_lft 863156sec preferred_lft 863156sec
    inet 10.0.0.99/24 brd 10.0.0.255 scope global secondary noprefixroute eth0
       valid_lft forever preferred_lft forever
...

I do not understand where this 10.0.0.1 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