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:
1 Hour
1 Day
1 Week
1 Month
Forever
Home
Help
Search
Login
Register
Pages: [
1
]
Go Down
« previous
next »
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
Posts: 14
Can't make static lease within range?
«
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
Posts: 1580
Re: Can't make static lease within range?
«
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
Posts: 1559
Re: Can't make static lease within range?
«
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
Posts: 14
Re: Can't make static lease within range?
«
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
Posts: 1580
Re: Can't make static lease within range?
«
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
Posts: 321
Re: Can't make static lease within range?
«
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
Posts: 921
Re: Can't make static lease within range?
«
Reply #6 on:
July 25, 2012, 04:02:33 pm »
Quote from: NOYB 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.
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
Posts: 321
Re: Can't make static lease within range?
«
Reply #7 on:
July 25, 2012, 05:04:04 pm »
Quote from: dhatz on July 25, 2012, 04:02:33 pm
Quote from: NOYB 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.
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.
Logged
cmb
Administrator
Hero Member
Offline
Posts: 6028
Re: Can't make static lease within range?
«
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
Posts: 321
Re: Can't make static lease within range?
«
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.
Logged
dhatz
Hero Member
Offline
Posts: 921
Re: Can't make static lease within range?
«
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
Posts: 6028
Re: Can't make static lease within range?
«
Reply #11 on:
July 29, 2012, 08:36:11 pm »
Quote from: dhatz on July 29, 2012, 08:20:22 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
Posts: 921
Re: Can't make static lease within range?
«
Reply #12 on:
July 30, 2012, 08:22:16 am »
Quote from: NOYB 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.
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Administrative
-----------------------------
=> Forum rules
=> Messages from the pfSense Team
=> Feedback
-----------------------------
pfSense English Support
-----------------------------
=> Installation and Upgrades
=> General Questions
=> 2.1 Snapshot Feedback and Problems
=> Post a bounty
===> Completed Bounties
===> Expired/Withdrawn Bounties
=> Hardware
=> Firewalling
=> NAT
=> CARP/VIPs
=> Routing and Multi WAN
=> Traffic Shaping
=> DHCP and DNS
=> IPv6
=> IPsec
=> PPTP
=> PPPoE Server
=> Captive Portal
=> webGUI
=> Wireless
=> SNMP
=> Packages
=> Virtualization installations and techniques
=> OpenVPN
=> Gaming
-----------------------------
Development/Documentation
-----------------------------
=> Documentation
=> Development
-----------------------------
General Category
-----------------------------
=> General Discussion
-----------------------------
International Support
-----------------------------
=> Indonesian
=> Deutsch
=> Español
=> Français
=> Italiano
=> Russian
=> Nederlands
=> Norwegian
=> Portuguese
=> Polish
=> Romanian
=> Swedish
=> Turkish
-----------------------------
Retired
-----------------------------
=> 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
=> 1.2.1-RC Snapshot Feedback and Problems-RETIRED
=> 2.0-RC Snapshot Feedback and Problems - RETIRED
=> DNS Server testing area - RETIRED
Loading...