this post was submitted on 22 Sep 2024
43 points (95.7% liked)

Selfhosted

60526 readers
1068 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Asking for clarification as what I've read suggests yes, but is also sometimes coupled with advice to (still?) set a static IP outside of the DHCP address range as well.

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[–] deadbeef79000@lemmy.nz 31 points 2 years ago (2 children)

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.

[–] BrianTheeBiscuiteer@lemmy.world 12 points 2 years ago

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.

[–] ALostInquirer@lemm.ee 6 points 2 years ago (1 children)

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.

[–] deadbeef79000@lemmy.nz 4 points 2 years ago

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