Why DHCP is on random order?

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Post Reply
SergeS
Posts: 58
Joined: Tue Aug 07, 2012 9:09 pm

Why DHCP is on random order?

Post by SergeS »

Hi there,

What is the reason to assign IPs from the DHCP pool on random basis? I believe, if it would be done starting from the begining of DHCP range it will give you extra ability to set "default" group rules (quotas, restrictions, etc) for non-static IPs, for example - for wifi guests, or for any other unknoun devices...

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Why DHCP is on random order?

Post by ispyisail »

I tend to agree

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Why DHCP is on random order?

Post by Eric »

There is actually a very good reason for doing things the way they are currently done. It's not so much entirely random, as based on a hash of the MAC address. That means so long as there isn't a hash conflict with another machine on the network the IP address will be fairly consistent instead of switcfhing order based on who connects first every time the the router reboots. That's better than just assigining them sequentially.

SergeS
Posts: 58
Joined: Tue Aug 07, 2012 9:09 pm

Re: Why DHCP is on random order?

Post by SergeS »

yes, it has some sense, agree, sounds reasonable. But what approach would you recommend to setup some common rules for mentioned above "default" group? And what is the advantage to provide all those people the same IP (but not guarantee :-) ) vs of keeping them (guarantee!) in one range? If someone really need the same IP - there is other engine to assign it...

Post Reply