Page 1 of 1
ip adress
Posted: Saturday 10 June 2017 14:52
by douwebakker
Hi, Domoticz's ip address on raspberry changed spontaneously. What is the cause of this?
Douwe
Re: ip adress
Posted: Saturday 10 June 2017 14:58
by jvdz
When it is using DHCP to acquire its IP address, it will get it from your DHCP server (likely your router).
So you either hardcode the IPaddress in the PI or set a fix IP address in your DHCP server for the PI's MAC address.
Jos
Re: ip adress
Posted: Saturday 10 June 2017 16:17
by douwebakker
Thanks for the reply. I'm a digibeet.
I thought the ip address automatically would be a fixed address, but not so.
Re: ip adress
Posted: Saturday 10 June 2017 16:27
by jvdz
When you want to fix it on your RPI you could follow this explanation in the WiKi:
https://www.domoticz.com/wiki/Preparing ... _ip-adress
Jos
Re: ip adress
Posted: Sunday 11 June 2017 15:45
by Lebo2d9
Hi. I use an ip adress reservation in my router and leave the pi on dhch.
Re: ip adress
Posted: Sunday 11 June 2017 19:02
by TakeAway
Lebo2d9 wrote:Hi. I use an ip adress reservation in my router and leave the pi on dhch.
I do it the same way, is this a good solution or is it better to fix your ip within your pi?
Re: ip adress
Posted: Sunday 11 June 2017 19:10
by EddyG
I use fixed IP for all my 'fixed' eg. not mobile devices.
So Raspberry gets a fixed IPaddress.
Re: ip adress
Posted: Sunday 11 June 2017 19:16
by Lebo2d9
When you give your RPI a fix IP address and your RPI is for some reason offline,
your router can distribute the IP address that you give to your RPI.
When your RPI comes then online you have an IP confict in your network.
When you did an IP reservation in your router, the router only distribute that IP address to the MAC you specified.
You can also created a smaller DHCP pool on your router. And give your "fixed" devices a FIX address that is not in the pool.
Re: ip adress
Posted: Sunday 11 June 2017 19:24
by jvdz
That is indeed why I use the ip-addresses x.x.x.1-99 for fixed devices and DHCP uses the range x.x.x.100-244.
This ensures you never have these type of conflicts.
So you either do it this way of have the reserve the IP address when it is part of the DHCP scope.
Jos