Welcome, Guest. Please login or register.
Did you miss your activation email?
+  pfSense Forum
|-+  pfSense English Support» DHCP and DNS» Can't make static lease within range?
Username:
Password:
 
 

Pages: [1]   Go Down
  Print  
Author Topic: Can't make static lease within range?  (Read 1434 times)
0 Members and 1 Guest are viewing this topic.
r5a
Newbie
*
Offline Offline

Posts: 14


View Profile
« on: July 17, 2012, 04:15:34 pm »

Using
   2.0.1-RELEASE (i386)
built on Mon Dec 12 17:53:52 EST 2011

It seems I am not able to make a static reservation with an IP thats in the DHCP range?

That seems a little weird. Almost any other DHCP server I've used lets me do that.

Doesn't really make much sense to do that either.
Logged
podilarius
Hero Member
*****
Offline Offline

Posts: 1580


View Profile
« Reply #1 on: July 17, 2012, 04:19:43 pm »

Well ... other DHCP servers do allow this, but iirc, they are not supposed to. Just shorten your range a bit so that you can make the reservations you want.
Logged
Metu69salemi
Hero Member
*****
Offline Offline

Posts: 1559


View Profile
« Reply #2 on: July 17, 2012, 04:26:41 pm »

There was also "hack" mentioned on this forum. use google search to find it
Logged
r5a
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #3 on: July 17, 2012, 04:33:30 pm »

So I see the reasons behind from reading a few threads.

Times have changed. If you make a static reservation for something on any newer device (I can vouch for these, Windows DHCP, SonicWall, Watchguard, NetGear, D-Link & Linksys) that IP will NOT be assigned to anything but that programmed MAC. Regardless if it's on or not. If the machine is off, no device can take that IP (unless you spoof the mac)

What happens is that it will take the next IP above it, for example

range: .100 - .120
ips: .100 - .105 in use
.106 is static reserved - but machine is off
new user comes in and is assigned .107 since .106 is considered taken

even in windows dhcp you will see inactive/active depending on if the machine the static mapping belonged too is on or off.


in real world scenarios where this is common some users machines will be assigned in the middle of near the end of the scope, we assign them that static IP and then program a port forward for their service (typically RDP) with it is now I would have to rework the entire scope to accommodate one user - in certain setups .2-.254 is dhcpd)

« Last Edit: July 17, 2012, 04:36:34 pm by r5a » Logged
podilarius
Hero Member
*****
Offline Offline

Posts: 1580


View Profile
« Reply #4 on: July 17, 2012, 05:43:14 pm »

It not a bad rework ... set the range to .3 -.254 and give the reservation .2 and then assign from there (use a release/renew to get the new IP). And then go on from there. Also I don't use that wide of a scope. I usually save 10 for reservations and 10 for servers or other statics (network admin PCs and such, troubleshooting). If I need to go more than that I would use a /23 network to have 2 times the range so I can accommodate the DHCP range I need along with the statics and reservation I might need.
It is frustrating, but not unmanageable.
Logged
NOYB
Sr. Member
****
Offline Offline

Posts: 321


View Profile
« Reply #5 on: July 25, 2012, 01:36:04 pm »

 
Yup.  Adhering to a standard just for the sake of the standard when there is a more desirable de facto standard (what nearly everyone else is implementing) is senseless.
 
http://en.wikipedia.org/wiki/De_facto_standard
 
Maybe someone should add an "Official or De Facto Standard Adherence" option.
 
« Last Edit: July 25, 2012, 01:39:01 pm by NOYB » Logged
dhatz
Hero Member
*****
Offline Offline

Posts: 921


View Profile
« Reply #6 on: July 25, 2012, 04:02:33 pm »

Yup.  Adhering to a standard just for the sake of the standard when there is a more desirable de facto standard (what nearly everyone else is implementing) is senseless.

I understand that this limitation is due to the behavior of the underlying software, i.e. ISC dhcpd ... it's not by choice and it's not as simple as removing the bounds check in php code.

But perhaps one should check if ISC dhcpd still has this limitation, or has added this feature in recent versions.
Logged
NOYB
Sr. Member
****
Offline Offline

Posts: 321


View Profile
« Reply #7 on: July 25, 2012, 05:04:04 pm »

Yup.  Adhering to a standard just for the sake of the standard when there is a more desirable de facto standard (what nearly everyone else is implementing) is senseless.

I understand that this limitation is due to the behavior of the underlying software, i.e. ISC dhcpd ... it's not by choice and it's not as simple as removing the bounds check in php code.

But perhaps one should check if ISC dhcpd still has this limitation, or has added this feature in recent versions.

Don't know where the enforcement is taking place but they should relax a little.   Wink
 
Logged
cmb
Administrator
Hero Member
*****
Offline Offline

Posts: 6028


View Profile WWW
« Reply #8 on: July 25, 2012, 10:52:24 pm »

Wrong place to complain, we have nothing to do with dhcpd, just are enforcing sane practices with it. Take it to ISC.

http://doc.pfsense.org/index.php/Why_can't_I_have_static_mappings_inside_my_DHCP_range%3F
Logged

pfSense Commercial Support

Paying customers receive support priority and as in depth of assistance as desired through the official commercial support channels at portal.pfsense.org. Forum users receive as much help as time permits.
NOYB
Sr. Member
****
Offline Offline

Posts: 321


View Profile
« Reply #9 on: July 26, 2012, 02:17:41 pm »

 
Complaining to ISC wouldn’t help either.  Even if they made the change, by the time pfSense upgraded to a version of FreeBSD that used it, IPv6 would be a distant footnote in internet history.   Wink
 
Logged
dhatz
Hero Member
*****
Offline Offline

Posts: 921


View Profile
« Reply #10 on: July 29, 2012, 08:20:22 pm »

What about the infinite-is-reserved directive?

Quote
                   infinite-is-reserved flag;

                    ISC DHCP now supports 'reserved' leases.  See the  sec-
                    tion on RESERVED LEASES below.  If this flag is on, the
                    server will automatically reserve leases  allocated  to
                    clients which requested an infinite (0xffffffff) lease-
                    time.

                    The default is off.

https://lists.isc.org/pipermail/dhcp-users/2007-January/002723.html
Logged
cmb
Administrator
Hero Member
*****
Offline Offline

Posts: 6028


View Profile WWW
« Reply #11 on: July 29, 2012, 08:36:11 pm »

What about the infinite-is-reserved directive?

AFAIK the clients must request an indefinite lease, which isn't related.
Logged

pfSense Commercial Support

Paying customers receive support priority and as in depth of assistance as desired through the official commercial support channels at portal.pfsense.org. Forum users receive as much help as time permits.
dhatz
Hero Member
*****
Offline Offline

Posts: 921


View Profile
« Reply #12 on: July 30, 2012, 08:22:16 am »

Complaining to ISC wouldn’t help either.  Even if they made the change, by the time pfSense upgraded to a version of FreeBSD that used it, IPv6 would be a distant footnote in internet history.   Wink

LOL, funny but not entirely accurate. Actually just in the past few months pfSense has upgraded several packages (e.g. the above mentioned ISC dhcpd, or lighttpd) to their very latest stable version, mostly to address vulnerability issues.

Anyway, I know what you meant, but it's a direct consequence of the development model. Unless someone is willing to fund a certain pfSense feature, it might take years before it's implemented (just look at how long it took for the Snort package).

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

 

Page created in 0.033 seconds with 20 queries.