Fixed IP VS DHCP reservation

Author
Discussion

Driller

Original Poster:

8,310 posts

284 months

Tuesday 14th June 2022
quotequote all
I have a shedload of different machines on a 48 channel switch connected to my router.

I have reserved IP addresses for some of the more important machines (PCs, radiography machines etc) but from time to time (like today) I get IP address conflicts which fk up the whole system and lead to some head scratching.

This weekend I’m going to review the whole system to allocate each machine with an address.

Question is, is it best to put s static address on the machine end (for those machines where it’s possible), reserve an address for its MAC address on the router or both?

LordGrover

33,662 posts

218 months

Tuesday 14th June 2022
quotequote all
What is the DHCP server; router or proper windows/linux server?
In most circumstances I prefer DHCP with reservations/fixed IPs where required.

HappyMidget

6,788 posts

121 months

Tuesday 14th June 2022
quotequote all
You should be able to separate out the dhcp range from the range where you have your fixed addresses. IE DHCP .1-.199, fixed .200-.254. Will avoid conflicts.

Ransoman

884 posts

96 months

Tuesday 14th June 2022
quotequote all
Configure the DHCP Pool to a smaller set of addresses e.g. 192.168.1.100-200. Ensure all your static IP's are under 192.168.1.100.

geeks

9,562 posts

145 months

Tuesday 14th June 2022
quotequote all
I always set my DHCP range to 100-250 so that I can assign stuff manually and then keep a spreadsheet of which address is which that way I don't end up with conflicts. You can do address reservation etc as well then that will achieve what you are looking for, DHCP should then only issue that address to that device but it doesn't hurt to belt and braces this stuff.

Driller

Original Poster:

8,310 posts

284 months

Tuesday 14th June 2022
quotequote all
Guys, thanks so much for the replies, that helps a lot. FWIW it’s the router box provided by the internet company.

I like the idea of separating the DHCP pool from a static pool but over the years I’ve allocated reserved DHCP address to various machines and I’m a bit worried about giving these machines new static addresses in case something ducks up somewhere (as it always seems to with networking, he’ll with anything IT lol)

Or maybe I should just bite the bullet…

Captain_Morgan

1,246 posts

65 months

Tuesday 14th June 2022
quotequote all
It could be a bigger picture type issue.

It could be that your isp provided modem/fw/router/access point box is having trouble with the volume of devices you have connected and is hitting cpu/memory constraints hence the dhcp conflicts.

You might consider either running a separate dhcp server on something like a pi if your ‘box’ allows this or perhaps it’s time to place your existing box into modem mode and use a more powerful router, if your isp allows this.

That said from a management perspective it’s easier mange ip reservations from a centralised point than a per device instance, 1-5 devices perhaps not a lot in it, once your above that I’ll take central every time

Bikerjon

2,211 posts

167 months

Tuesday 14th June 2022
quotequote all
A better quality router with DHCP reservation is the way forward. Setting static IP's on each device and maintaining a spreadsheet feels a bit 1990's!

GuyW

1,080 posts

209 months

Tuesday 14th June 2022
quotequote all
Additionally, think about shorterning your DHCP lease time. It'll clear out any devices & release addresses that are no longer on the network.

Trustmeimadoctor

13,267 posts

161 months

Tuesday 14th June 2022
quotequote all
never use dhcp and fixed ip's in that scope
dhcp and reservations yes
a reduced dhcp scope range and fixed ip yes with the fixed ip's been outside of the scope

honestly reservations are a better way to go (if you arnt running domain controllers even then you can just manually assign it after its been reserved)

the only thing that really really needs a static is your DGW

Edited by Trustmeimadoctor on Tuesday 14th June 15:15

Trustmeimadoctor

13,267 posts

161 months

Tuesday 14th June 2022
quotequote all
Bikerjon said:
A better quality router with DHCP reservation is the way forward. Setting static IP's on each device and maintaining a spreadsheet feels a bit 1990's!
thats where ipam comes in fancy spreadsheets biggrin

ARHarh

4,168 posts

113 months

Wednesday 15th June 2022
quotequote all
I use Pihole for my DHCP server. Mostly reserved addresses and 3 fixed addresses outside the reserved range. I have 75 things connected right now, Never have an issue with addresses.

Driller

Original Poster:

8,310 posts

284 months

Wednesday 15th June 2022
quotequote all
A load of great advice here-thanks gentlemen!

If I may and in no particular order :

1) I have about 40-50 machines on the router.

2) It’s a “pro” version router so I don’t think it’s a bottleneck

3) Do I take it then that my belt and braces approach of putting a static address on a machine AND reserving this same address in the DHCP range on the router is not good?

4) At the moment my DHCP range is 90-150 and within this there are some machines with static IPs.

Wouid it be ok to change the DHCP range to say 151-200? That way I can avoid these static addresses being hijacked by the DHCP on the days they are not turned on, which I think is what may be happening.

Are there any down sides to changing the DHCP range in this way?

essayer

9,487 posts

200 months

Wednesday 15th June 2022
quotequote all
set all machines to dynamic IP

then program the router to hardcode specific machines (mac addresses) to allocated IPs, say in the 2-128 range, and release the remainder for dynamic IPs (wifi etc)

anonymoususer

6,498 posts

54 months

Wednesday 15th June 2022
quotequote all
For several years now we had localised IP addresses as my wife calls them or Reserved DHCP addresses to be technical
As we have different devices ie

Computers + Printers
Network Storage
Smart Speakers
TV sets
TV Boxes
And as equipment is changed from time to time sand more stuff is added I have a sort of block think of 20 addies for each section
If say I bought a new network drive I would note its mac address and look at the list and then allocate the next available Network storage ip against it
Sound s a bit anal but it makes it easier to know where the equipment is on your router
Recently though we had an issue with phones appearing with different local addresses and this is due to an android update that pushes the device to use a randomised MAC

Driller

Original Poster:

8,310 posts

284 months

Wednesday 15th June 2022
quotequote all
Je vais “essayer” de comprendre!

essayer said:
set all machines to dynamic IP

then program the router to hardcode specific machines (mac addresses) to allocated IPs, say in the 2-128 range, and release the remainder for dynamic IPs (wifi etc)
So in other words set the DHCP range from 129-X?

buggalugs

9,243 posts

243 months

Wednesday 15th June 2022
quotequote all
I would try to use DNS to address the machines wherever possible, rather than faff about with statics or reservations.

drmotorsport

796 posts

249 months

Wednesday 15th June 2022
quotequote all
Ransoman said:
Configure the DHCP Pool to a smaller set of addresses e.g. 192.168.1.100-200. Ensure all your static IP's are under 192.168.1.100.
+1

This is the simplest approach in a small LAN without a proper DHCP server.

Driller

Original Poster:

8,310 posts

284 months

Wednesday 15th June 2022
quotequote all
drmotorsport said:
Ransoman said:
Configure the DHCP Pool to a smaller set of addresses e.g. 192.168.1.100-200. Ensure all your static IP's are under 192.168.1.100.
+1

This is the simplest approach in a small LAN without a proper DHCP server.
Thank you, the is very clear, concise advice. Can you confirm that changing my DHCP range to the next 100 up should not cause any problems? I don’t see logically why it should

Captain_Morgan

1,246 posts

65 months

Wednesday 15th June 2022
quotequote all
Driller said:
A load of great advice here-thanks gentlemen!

If I may and in no particular order :

1) I have about 40-50 machines on the router.

2) It’s a “pro” version router so I don’t think it’s a bottleneck

3) Do I take it then that my belt and braces approach of putting a static address on a machine AND reserving this same address in the DHCP range on the router is not good?

4) At the moment my DHCP range is 90-150 and within this there are some machines with static IPs.


Wouid it be ok to change the DHCP range to say 151-200? That way I can avoid these static addresses being hijacked by the DHCP on the days they are not turned on, which I think is what may be happening.

Are there any down sides to changing the DHCP range in this way?
2) what router specifically

3) waste of time

4) yep you can do that, but then you are still managing dhcp reservations and static IP’s on devices, managing spreadsheets, devices and the router, it’s easier to drop the dhcp lease time and manage via reservations.


What’s the background here, domestic of business setting, what’s the impact of the conflicts, how many static IP’s do you expect to manage, what’s the rate of change on static IP’s?

Edit: re read the op so it’s a business setting

Edited by Captain_Morgan on Wednesday 15th June 13:45