Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
DHCPv4 Server, is it normal to set in this way?
« previous
next »
Print
Pages: [
1
]
Author
Topic: DHCPv4 Server, is it normal to set in this way? (Read 1992 times)
sw.mok
Newbie
Posts: 8
Karma: 0
DHCPv4 Server, is it normal to set in this way?
«
on:
November 15, 2019, 07:31:29 am »
version of my OPNsense: OPNsense 19.1.10_1-amd64
The DHCPv4 server is set to ON
When the range for IP leasing is set "From 10.100.130.1 to 10.100.132.254",
the unwanted IP will be leased out e.g 10.100.130.
255
, 10.100.131.
0
Is it normal to lease these IP to clients?
If "NO", is it a bug need to be fixed?
If "YES", I can prevent the problem by set into 3 ranges 10.100.130.(1--254), 10.100.131.(1--254), 10.100.132.(1--254) ==> problem solved
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: DHCPv4 Server, is it normal to set in this way?
«
Reply #1 on:
November 15, 2019, 08:34:59 am »
Your network mask needs to match your DHCP range. For the 10.100.130.1 - 10.100.130.254 range this will be 10.100.130.0/22. The unusable addresses for that subnet are 10.100.130.0 (the network address) and 10.100.133.255 (the broadcast address). There is nothing to stop you using 10.100.130.255 and 10.100.131.0 since they are well in the middle of your range.
The next question of course, is if you really need over a thousand IP addresses
Bart...
Logged
sw.mok
Newbie
Posts: 8
Karma: 0
Re: DHCPv4 Server, is it normal to set in this way?
«
Reply #2 on:
November 15, 2019, 01:25:24 pm »
surely, the netmask is set correctly
what I mean is:
Should the OPNsense let the DHCP server lease the IPs like xxx.xxx.xxx.0 or xxx.xxx.xxx.255?
or can hide these IPs in the DHCP server?
Logged
Maurice
Hero Member
Posts: 1213
Karma: 158
Re: DHCPv4 Server, is it normal to set in this way?
«
Reply #3 on:
November 15, 2019, 01:45:12 pm »
Quote from: sw.mok on November 15, 2019, 01:25:24 pm
Should the OPNsense let the DHCP server lease the IPs like xxx.xxx.xxx.0 or xxx.xxx.xxx.255?
Every
DHCPv4 server should do this. These are perfectly fine IPv4 addresses within the range you specified. What's wrong with them? What "problem" are you trying to solve?
Cheers
Maurice
Logged
OPNsense virtual machine images
OPNsense aarch64 firmware repository
Commercial support & engineering available. PM for details (en / de).
sw.mok
Newbie
Posts: 8
Karma: 0
Re: DHCPv4 Server, is it normal to set in this way?
«
Reply #4 on:
November 15, 2019, 03:27:35 pm »
thanks for you reply
now, I found that I misunderstand the meaning of 0 and 255
after reading few passages, I just keep unleasing the first and last IPs
thanks for your reply again
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
DHCPv4 Server, is it normal to set in this way?