Ancestors

Toot

Written by ALostInquirer@lemm.ee on 2024-09-22 at 17:50

Does setting/reserving a static IP via router prevent its allocation to other devices in its network?

https://lemm.ee/post/42971271

=> More informations about this toot | More toots from ALostInquirer@lemm.ee

Descendants

Written by gwindli@lemy.lol on 2024-09-22 at 17:55

the best practice is to keep your dhcp pool and reservations from overlapping, but on a home network its usually easier to let a device acquire an ip via dhcp and then create the reservation for that address.

=> More informations about this toot | More toots from gwindli@lemy.lol

Written by Link@rentadrunk.org on 2024-09-22 at 17:56

Yes it does. Only the MAC address you assigned to that IP will get it.

=> More informations about this toot | More toots from Link@rentadrunk.org

Written by owenfromcanada@lemmy.world on 2024-09-22 at 17:57

I usually move static assignments outside the DHCP range, but in general, most routers will avoid re-allocating it even if it’s within the DHCP range.

=> More informations about this toot | More toots from owenfromcanada@lemmy.world

Written by 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍 on 2024-09-22 at 17:58

Probably. It depends on the device, because there’s no standard dictating this, but I would guess most routers reserve reserved IPs.

=> More informations about this toot | More toots from sxan@midwest.social

Written by Toes♀ on 2024-09-22 at 18:00

So it depends. For example some legacy apple stuff had a bad DHCP implementation where it would try to hold onto an IP address it had before.

When there’s one DHCP server with a reserved ip it won’t assign that ip to the wrong device. (Unless you’re running some buggy software that takes your configuration as suggestions)

Where the advice to set it anyways comes from scenarios where that DHCP server goes down for long enough that everyone starts self assigning addresses. It’s a real hassle to find the correct system when that happens.

=> More informations about this toot | More toots from Toes@ani.social

Written by ad_on_is@lemm.ee on 2024-09-22 at 19:52

I would suggest not to rely on that. Give the DHCP a range, use manual IPs outside of that range

=> More informations about this toot | More toots from ad_on_is@lemm.ee

Written by BCsven@lemmy.ca on 2024-09-22 at 20:05

I have never had issues with anu router when setting static inside dhcp range. Adding IP and MAC has always worked. Not saying you won’t have issues, just I haven’t yet

=> More informations about this toot | More toots from BCsven@lemmy.ca

Written by Kadaj21@lemmy.world on 2024-09-22 at 20:31

Someone who might be more familiar with MacOs and iOS please correct me if I’m wrong but i think if certain settings are turned on they will periodically randomize their MAC addresses for security/privacy.

I’m running pihole in a docker container and set the IP to be static on the router. After either a reboot or the update to Sequoia (or both?) The IP address chsnged due to a new MAC address and broke my pihole settings until i updated it.

=> More informations about this toot | More toots from Kadaj21@lemmy.world

Written by mark3748@sh.itjust.works on 2024-09-22 at 20:50

Apple will randomize your MAC when connecting to networks to maintain privacy. It’s a per-network setting that can be toggled off for your own private network if you want to.

=> More informations about this toot | More toots from mark3748@sh.itjust.works

Written by Kadaj21@lemmy.world on 2024-09-23 at 00:22

Ah okay, i remember that setting in iOS. Will check the network setting on my Mac Mini to see if thats an option.

Love the network name lol.

Did I age myself there?

=> More informations about this toot | More toots from Kadaj21@lemmy.world

Written by MangoPenguin@lemmy.blahaj.zone on 2024-09-23 at 02:14

Android too.

=> More informations about this toot | More toots from MangoPenguin@lemmy.blahaj.zone

Written by deadbeef79000@lemmy.nz on 2024-09-22 at 20:44

TL;DR: it depends entirely on the DHCP server software.

Generally the safe/reliable policy is to assign a smaller DHCP range (or ranges) and allocate static assignments outside of the DHCP range(s).

Assume your network is 192.168.1.0/24.

Specify 192.168.1.128/25 for DHCP, which means all DHCP addresses will be above 192.168.1.128.

This leaves you everything below 192.168.1.127 for static assignments.

=> More informations about this toot | More toots from deadbeef79000@lemmy.nz

Written by ALostInquirer@lemm.ee on 2024-09-22 at 21:20

Appreciate the example! It’s when handling a DHCP range and the related CIDR notation that I tend to get especially muddled in this area. It certainly doesn’t help that each router’s interface and terminology tends to vary just enough to add uncertainty.

Regardless, the comments here and more focus on this have helped clear some of this up for me.

=> More informations about this toot | More toots from ALostInquirer@lemm.ee

Written by deadbeef79000@lemmy.nz on 2024-09-22 at 22:17

I still double-check my CIDR’s/netmasks and expected ranges with a tool (some online one or other). Easier to avoid silly mistakes or typo’s

=> More informations about this toot | More toots from deadbeef79000@lemmy.nz

Written by BrianTheeBiscuiteer@lemmy.world on 2024-09-22 at 21:49

I’d agree with this recommendation. I believe there were multiple occasions where my router assigned a dynamic IP the same as some other reserved IP. Hard as hell to diagnose. Key indicator was that roughly half the packets were being lost.

=> More informations about this toot | More toots from BrianTheeBiscuiteer@lemmy.world

Written by hperrin@lemmy.world on 2024-09-23 at 00:31

If it doesn’t, I would consider that a bug in the router.

=> More informations about this toot | More toots from hperrin@lemmy.world

Written by node815@lemmy.world on 2024-09-23 at 12:29

I use Technitium DNS as both my DHCP and DNS Server on my network. I then have my ISP Router’s DHCP turned off, and point the primary DNS IP To Technitium’s on my network. I have roughly 66-67 network devices at a given time on my network, mostly wireless. (Think wiFi locks, Lights, Outlets etc) then I have my phones and gaming systems an any given thing.

To manage my IP’s I use an Airtable type of database via BaseRow, also self hosted. Through my router’s records, I copied/pasted every single MAC address I found, into a column in my BaseRow table there, and then added the device name or friendly name to another with an assigned IP I want to use. I have a more organized system of ranges 192.168.1.1-10 is mobile devices, 192.168.1.11-30 is IoT etc…

By having my network setup in this fashion, I accomplish a few things, all new devices which power on or connect to the router to get their IP assignment fail to get it since it’s turned off there, and they search the network for an available DHCP Server which lands squarely on the TechnitiumDNS server and are assigned it through there. I also have adblocking enabled through the same server so I have a more home wide adblock which works. (You’d be amazed at how much Telemetry a TV Sends out for every single remote keypress!) I have been able to block those with the adblock enabled. With the DNS server, you can also assign DHCP ranges address, it is really an overly complex server and probably overkill for a home network. I’ve only scratched the surface of what it can do.

If you don’t want to fuss with TechnitiumDNS, there’s AdguardHome, or even PiHole you can use if you want to block Ads (or you can simply disable that function) and those also act as a DHCP Server.

Or, if you are wanting to spend a few hours configuring it, you could run your own DHCP Server in a VM or dedicated device such as a Raspberry Pi.

With all of these settings, it’s important to set your DHCP lease offer long enough that if you have to reboot the DHCP Server for kernel update, or it crashes, you won’t have any devices fail as some do regular polling to check for connectivity (My Linux computer does this a lot). I don’t remember if it’s KDE or Arch. Anyway, running the DNS Server also allows you to custom build your own “domain” system if you will. So could assign maybe your self hosted Calendar for example to calendar.local or calendar.internal.

By setting up a dedicated DHCP Server, using the manual method or one of the different AdBlock systems, you can also turn off DHCP registration for ‘foreign’ devices or those which aren’t in your DHCP table. This offers a small element of extra security for your WiFi, but it’s not 100% secure if someone knows your IP ranges and Subnet Mask. Also, this will make it easier in the future for you if you upgrade your router or replace it as there’s just two settings to change. (DCHP Server off and the optional self hosted DNS).

=> More informations about this toot | More toots from node815@lemmy.world

Written by Treczoks@lemmy.world on 2024-09-23 at 18:07

You should put fixed IP addresses outside the DHCP allocation range. While a DHCP server might be smart enough to exclude a fixed address automatically, this is not a must. So better safe than sorry.

=> More informations about this toot | More toots from Treczoks@lemmy.world

Written by Blaster M on 2024-09-23 at 19:52

DHCP, when set up properly, makes for less work. Reservations will have the DHCP server hand out the same IP to the same hardware (MAC address) whwn it asks. If you have a device that is from the dinosaur age that doesn’t play nice with DHCP, then make sure you give it an address that is outside the DHCP range on the same subnet. ex: Some home routers use 192.168.1.101 to 192.168.1.200 as the dhcp range. Setting anything from 192.168.1.1 (or 2 if the router is on 1) to 192.168.1.99 is fine, as is 192.168.1.201-192.168.1.254 (or 253 if the router is on 254). However, by setting static ips, you have to remember those ips specifically to interconnect devices on the lan, whereas reserving via dhcp allows you to use local dns resolution to connect to devices via their hostname instead. In additon, you run the risk of ip conflicts from forgetting which device has what ip in an increasingly complex system, and if you change internet providers or routers, you have a lot of extra work to do to fix the network settings to get those static ips working again.

Alternately, just use the link-local ipv6 address to interconnect on the lan. That doesn’t change on most devices, as it is based on the MAC address, and is always reachable on the lan.

=> More informations about this toot | More toots from Blaster_M@lemmy.world

Written by Shimitar on 2024-09-24 at 13:59

Nope!

Just wasted 3 days debugging an IP assigned to two devices… Not fun, don’t do it…

=> More informations about this toot | More toots from Shimitar@feddit.it

Written by Captain Howdy on 2024-09-24 at 17:49

Only reserve IPs that are outside of the DHCP range you’ve configured.

=> More informations about this toot | More toots from CaptainHowdy@lemm.ee

Written by RememberTheApollo_@lemmy.world on 2024-09-25 at 03:20

Interesting reading the responses here. I set static addresses all the time and have had zero issue over a decade +.

=> More informations about this toot | More toots from RememberTheApollo_@lemmy.world

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113182468317552043
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
472.804256 milliseconds
Gemini-to-HTML Time
4.809529 milliseconds

This content has been proxied by September (3851b).