Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
Infinite DHCP lease?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Infinite DHCP lease? (Read 4132 times)
epoch
Newbie
Posts: 35
Karma: 3
Infinite DHCP lease?
«
on:
August 06, 2017, 03:56:35 pm »
I would like to set a few hosts with an infinite DHCP lease on the LAN.
In dnsmasq I would set "infinite" next to the host entry.
Although I don't use ISC DHCPD much,
I've read
that setting the requested value to '-1' should do the trick.
In the web interface, -1 is not valid.
Is it possible to specify an infinite lease?
NB: Very minor issue for me. 1d is good enough and the target hosts will probably be set to static IP anyway --although not by me
Edit. To be clear: my question is about lease
infinite duration
.
«
Last Edit: August 07, 2017, 01:56:18 am by epoch
»
Logged
opnfwb
Sr. Member
Posts: 331
Karma: 47
Re: Infinite DHCP lease?
«
Reply #1 on:
August 06, 2017, 04:21:56 pm »
I use DHCP lease reservations to accomplish the same thing on my network. Ideally you'll need to know the MAC address of the systems that you want to set a static lease for. If you don't know the MAC and the systems already have a static IP set, you can use a faked MAC and just set the IPs that you want to reserve within the address pool.
Another option that you've probably also considered is just sizing the DHCP pool to only lease address outside of the range of systems that need a static address. However, this may not work if your network has grown and now needs both within the same lease pool range.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
Infinite DHCP lease?