Choose style:

Author Topic: Static leases outside of DHCP-range?  (Read 18457 times)

0 Members and 1 Guest are viewing this topic.

Offline Fire69

  • Backer
  • *
  • Posts: 344
  • Thanks: 0
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Static leases outside of DHCP-range?
« on: October 05, 2014, 03:25:16 pm »
So... I've been cursing at the A+ for 2 days now because of the dhcp-bug.  >:(

I want to use 192.168.1.x-range because that is how my network was configured up until now.
I didn't know about the bug before getting the A+ so I configured DHCP and everything just stopped working...

Now I have set the IP to 192.168.1.1 and didn't touch the start-end range and it's working.
But I had a lot of static addresses starting from .2 to .25 which I can't use anymore now.

Can I keep the dhcp-leases at the 100-150 range and define the static leases at 2-25?
Or do the static leases have to be in the 100-150 range?

Thanks

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #1 on: October 06, 2014, 12:40:42 am »
So... I've been cursing at the A+ for 2 days now because of the dhcp-bug.  >:(

I want to use 192.168.1.x-range because that is how my network was configured up until now.
I didn't know about the bug before getting the A+ so I configured DHCP and everything just stopped working...

Now I have set the IP to 192.168.1.1 and didn't touch the start-end range and it's working.
But I had a lot of static addresses starting from .2 to .25 which I can't use anymore now.

Can I keep the dhcp-leases at the 100-150 range and define the static leases at 2-25?
Or do the static leases have to be in the 100-150 range?

Thanks

I'm on R065, but yes, I have static leases outside my dhcp range.

LGNilsson

  • Guest
Re: Static leases outside of DHCP-range?
« Reply #2 on: October 06, 2014, 01:49:06 am »
It's not a bug, it's simply poor wording and we've corrected it in R066.
It should be start and end address, not lease count.

Offline Fire69

  • Backer
  • *
  • Posts: 344
  • Thanks: 0
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #3 on: October 06, 2014, 02:20:52 am »
Not a bug?  So why does it stop giving out addresses then when I change anything?

When I set the ip to 192.168.1.1, start at 2, end at 150 everything stops working.
I read several posts from users who had the same problem.

I only changed the ip now and didn't touch the range, and it appeared to work.  But I'll have to wait until the 12h run out to see if it's renewing correctly.

All in all, I'm finding the sofware unstable as bunny...  :-\
1 example:
I'm at work now, I log in at connect.securifi.com.
Everything appears to be working, but my laptop is still shown as connected at home.
I do a refresh, thinking maybe it's not up to date
Result: 'Could not retrieve router data'

Great...  >:(

LGNilsson

  • Guest
Re: Static leases outside of DHCP-range?
« Reply #4 on: October 06, 2014, 03:00:22 am »
Uhm, ok, this might be different, what people tried to do before was to put in 100 and then something like 50 for 50 leases due to the text description being wrong. It's supposed to be start and end address and that works just fine in R065. So that's not the same issue you're having.

As to why you're having an issue, I'm not sure. I know we've had some issues if you change the IP range, but I'm not sure if this was addressed in R066 or not.

We never said that we don't have work to do on the software side and yes, it's really frustrating. We're working on solving the issues everyone's having though, it's just taking a bit of time to try and figure what's going on in many of the cases.

Offline Fire69

  • Backer
  • *
  • Posts: 344
  • Thanks: 0
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #5 on: October 06, 2014, 03:38:06 am »
I'm on R066, so the translation is OK, no problem there.

I don't know what's going on actually, I'm at work and I can't reach anything at home anymore...
Website and app both show the sensors as they should, they update when motion is detected or doors are opened.
But when I go to the router-tab, it says 'fetching router info' and nothig happens.

I understand that there is still (lots) of work on the software, but basic stuff should be working out of the box.

Do you know why the default ip has been changed to 10.x?

LGNilsson

  • Guest
Re: Static leases outside of DHCP-range?
« Reply #6 on: October 06, 2014, 03:42:39 am »
Hmmm, not sure what's going on with the cloud side of things. that's really odd.

What do you mean by the default IP address has changed to 10.x?
The Almond has always shipped with its default IP being 10.10.10.254 and so will all of our future products, including the Almond+.
Yes, the beta/dev units used 192.168.1.1, but that's not how we'd sell any of our products, so it's not as if the "default" IP was changed, it is what it's supposed to be.

The fact that there are issues changing it something else is another matter and if that's still not working properly, then it's something that needs to be addressed.

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #7 on: October 06, 2014, 03:44:44 am »
Hmm, you want to tell the DHCP server to assign IP's outside the range that you define?

That does not make sense...
Either you want the DHCP server to assign an address or not.
You can combine static IP addresses with DHCP. For example if you want your static addresses in the range of 2-25 then you would tell it to assign for example 26-150 and then you configure each client to wahtever IP you want it to have. You don't need to tell the router about the static addresses, as long as your IP's are in the routers subnet, it will route the traffic correctly.

But if you want static leases(DHCP reservations), so in the sense that you have the DHCP server on the router always assign the same address to a certain client, then it should be included in the range that you configure on the DHCP server so in the above example you would tell it to assign in the range of 2-150, and you should add the clients to the list of static leases that should always get the same address.

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #8 on: October 06, 2014, 03:51:13 am »
I have actually configured it very similar to what you want.

My previous network was also in the 192.168.1.0/24 subnet, so I wanted to keep this, I also had a few computers that I always wanted to get the same IP due to port mapping, so I reconfigured the DHCP server as I described. with starting at 2 and ending at 150, and then I added 4 devices that always get the same IP.

I had this setup running for about a week now with a lease time of 12 hours, and it works great.

Offline Fire69

  • Backer
  • *
  • Posts: 344
  • Thanks: 0
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #9 on: October 06, 2014, 04:06:42 am »
Hmmm, not sure what's going on with the cloud side of things. that's really odd.

What do you mean by the default IP address has changed to 10.x?
The Almond has always shipped with its default IP being 10.10.10.254 and so will all of our future products, including the Almond+.
Yes, the beta/dev units used 192.168.1.1, but that's not how we'd sell any of our products, so it's not as if the "default" IP was changed, it is what it's supposed to be.

The fact that there are issues changing it something else is another matter and if that's still not working properly, then it's something that needs to be addressed.

It's probably not the cloud side of things.  My wife just called me from home to say that the internet wasn't working.  I made her switch over to the 'backup' wifi from my isp-router.
Weird that the sensor-data is still working though...

Ok, so you always use 10.x for your products?  I wonder why your beta-testers get a device configured with 192.x then  :D

Hmm, you want to tell the DHCP server to assign IP's outside the range that you define?

That does not make sense...
[...]


That's why I came here to ask if I had to include them in the range or not.  ;)
I've had routers before where you had to separare the dhcp-leases from the dhcp-reservations.
Not with the A+ apparently.  :)

Although it does work, because my range is set to the default 100-150, and I set a static lease for my server at 192.168.1.20 and it did get that IP.
Portforwarding worked, I could reach it through my domain-name.
However, this morning, nothing worked anymore...

I have actually configured it very similar to what you want.

My previous network was also in the 192.168.1.0/24 subnet, so I wanted to keep this, I also had a few computers that I always wanted to get the same IP due to port mapping, so I reconfigured the DHCP server as I described. with starting at 2 and ending at 150, and then I added 4 devices that always get the same IP.

I had this setup running for about a week now with a lease time of 12 hours, and it works great.

Thanks for the info!
That's how I've been trying to set it up from the start, but it just stops working after a couple of hours.
I'll give it another try this evening...  :-\
« Last Edit: October 06, 2014, 04:10:16 am by Fire69 »

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #10 on: October 06, 2014, 04:14:37 am »
I wonder why your beta-testers get a device configured with 192.x then  :D

Well I think what he meant was that earlier firmwares, (those that were included with the Dev and Beta units) had 192.168.1.0/24 as default. But in later firmwares this was changed to 10.10.10.0/24

Quote
stops working after a couple of hours.

Well if it happens exactly 12 hours (or whatever lease time you have) after the device get the IP, then it might be DHCP, but if it happens as you say after a couple of hours, it might be something completely different.

LGNilsson

  • Guest
Re: Static leases outside of DHCP-range?
« Reply #11 on: October 06, 2014, 04:24:35 am »
It's probably not the cloud side of things.  My wife just called me from home to say that the internet wasn't working.  I made her switch over to the 'backup' wifi from my isp-router.
Weird that the sensor-data is still working though...

Ok, so you always use 10.x for your products?  I wonder why your beta-testers get a device configured with 192.x then  :D

That's really odd, I wonder what's going on there.

As for the IP address, it was the default of the SDK we got, we simply changed it to our default range some time back.

Offline Fire69

  • Backer
  • *
  • Posts: 344
  • Thanks: 0
  • Registered : 03/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #12 on: October 06, 2014, 09:44:55 am »
I asked my wife to reboot the A+ a couple of hours ago.
After that, I could reach it again through the app and website.

Last reboot: 2h48min ago
Devices & User: 0 connected

So again, no ip's are being distributed anymore.
Maybe it stops working because my dhcp reservations are outside the dhcp range?
For troubleshouting, I'll do these steps
- Do a full reset (again) tonight and leave everything as default (10.x)
- If it keeps working like that, I'll change the IP to 192. without touching anything else.
- If that's OK, I'll set the dhcp-range from 2 to 150
- After that, I can put in the reservations

Seems OK for troubeshooting, right?
If I still have problems then, you can send me a new one  ;)

Offline Gleb

  • Backer
  • *
  • Posts: 7
  • Thanks: 1
  • Registered : 30/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #13 on: October 07, 2014, 05:54:24 pm »
But if you want static leases(DHCP reservations), so in the sense that you have the DHCP server on the router always assign the same address to a certain client, then it should be included in the range that you configure on the DHCP server so in the above example you would tell it to assign in the range of 2-150, and you should add the clients to the list of static leases that should always get the same address.
Does it really not make sense to want dynamic addresses clearly separated from static ones? BTW, it's possible in dd-wrt and generic dhcpd.conf.
I expected to be asked for the dynamic addresses range. Let the computer compute the aggregate range if it needs to.

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Static leases outside of DHCP-range?
« Reply #14 on: October 09, 2014, 03:12:07 am »
Does it really not make sense to want dynamic addresses clearly separated from static ones? BTW, it's possible in dd-wrt and generic dhcpd.conf.
I expected to be asked for the dynamic addresses range. Let the computer compute the aggregate range if it needs to.

Static lease is not the same as Static address.

A static address is one you set on the client and has nothing to do with DHCP, when you use a static address you tell the client NOT to use DHCP.
A static lease is one you set on the DHCP server, and you leave the client on DHCP so that the server can assign it.

In Almond+ you tell what range you want to DHCP server to give out, so if you want to use Static Leases, they need to be included in that range. But you should not include your static addresses.

 

Page created in 0.051 seconds with 16 queries.