ip adress

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
douwebakker
Posts: 2
Joined: Friday 29 January 2016 12:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: vledder
Contact:

ip adress

Post by douwebakker »

Hi, Domoticz's ip address on raspberry changed spontaneously. What is the cause of this?
Douwe
User avatar
jvdz
Posts: 2334
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ip adress

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
douwebakker
Posts: 2
Joined: Friday 29 January 2016 12:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: vledder
Contact:

Re: ip adress

Post by douwebakker »

Thanks for the reply. I'm a digibeet.
I thought the ip address automatically would be a fixed address, but not so.
User avatar
jvdz
Posts: 2334
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ip adress

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: ip adress

Post by Lebo2d9 »

Hi. I use an ip adress reservation in my router and leave the pi on dhch.
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
TakeAway
Posts: 21
Joined: Monday 20 June 2016 11:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7722
Location: Netherlands
Contact:

Re: ip adress

Post 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?
Raspberry Pi 3 - Domoticz 3.7722 - Aeon Labs Z-Stick GEN5 - RFXcom version: Ext/1012- Logitech Harmony Elite - Homebridge - Fibaro FGMS-001-ZW5 - Fibaro FGDW-002-01 - KAKU stuff.
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: ip adress

Post by EddyG »

I use fixed IP for all my 'fixed' eg. not mobile devices.
So Raspberry gets a fixed IPaddress.
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: ip adress

Post 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.
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
User avatar
jvdz
Posts: 2334
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: ip adress

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest