I’m setting up DHCP reservations on my home network and came up with a simple schema to identify devices: .100 is for desktops, .200 for mobiles, .010 for my devices, .020 for my wife’s, and so on. Does anyone else use schemas like this? I’ve also got .local DNS names for each device, but having a consistent schema feels nice to be able to quickly identify devices by their IPs.

  • Oisteink@feddit.nl
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    2
    ·
    1 year ago

    TLDR; don’t reserve IP’s

    We all did back in the 90’s. But this is kinda counter to the idea of dynamic leasing of IP addresses.
    The only reason I see for reserving IP’s would be to do some based on cidr ranges (bad practice) or because you need some shitty software that only handle IP’s and not hostnames.

    Just liberate yourself and get used to not having control over IP. It will prepare you for ipv6 where dynamic addresses are part of the spec.

    Your local dns server should be set up to register devices on ip lease - something all dns servers I’ve worked with last 20 years can manage. With properly set ip search domains this means that you can reach your devices by hostname, or by fqdn if you’d want that.

    Also note that .local is a special tld reserved for mdns/zeroconf. Do not set up your dns server to serve this. You’d be better off using something like .LAN - this means that mdns/zeroconf can co-exist nicely on your lan.

    Regarding vlans: this is something completely different as this is level 2 in osi. Each vlan is like a separate network - there needs to be routing to reach one from the other. I would agree that vlans are nice when used properly - to section and separate devices. One vlan for IoT devices - to keep them out of your safe home network - is a fairly common thing. A separate vlan for servers, one for management perhaps, one for guest-network and one for your normal home devices.

    I use 4 vlans at home each with a /16 network from the 10/8 range. And the only static (not reserved dhcp) that I use are for dns and gateway. At work I still set up some sites where infrastructure like switches/routers etc are on static - and take this into account when I set up the ip pool(s). I’m those cases I’ll exclude the top end of the network and put the rest in the pool. Some like to do the opposite end, and some don’t care and just use all as pool and count on arp/ping to avoid conflicting leases (bad practice).

  • Solar Bear@slrpnk.net
    link
    fedilink
    English
    arrow-up
    31
    ·
    edit-2
    1 year ago

    We all go down this hole at the start. The truth is, you should only reserve IPs if you actually need it to stay the same. You don’t need to check IPs as often as you think, I promise. The only segmentation and planning you should do for a home network is for subnets/vlans; LAN, Guest, IOT, Server, etc.

    Instead of managing the IP addresses, just manage hostnames. Make sure every device with a customizable hostname is easily identifiable. This will help you so much more in the long run.

  • chiisana@lemmy.chiisana.net
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 year ago

    10.0.0.0/8; so much room for activity.

    I currently use 10.0.0.0/24 as infrastructure; 10.10.0.0/24 for hard wired devices; 10.20.0.0/24 for wireless devices; and 10.42.0.0/16 for docker containers provisioned by Rancher.

  • SheeEttin@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    I don’t.

    I currently use 192.168.6.0/24, set DHCP to 100-199, and statically assign a few servers outside that range. Anything else can use DNS via DHCP because I use Windows for AD/DNS/DHCP.

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year ago

    I don’t see the need, everything gets IDed by its hostname.

    The only thing with static DHCP is IoT stuff that needs a consistent IP for HA to connect to it, and servers.

    • redcalcium@lemmy.institute
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      It can be useful to assign a static IP address for your kids’ devices so you can set parental control on pihole/adguard.

        • redcalcium@lemmy.institute
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Wouldn’t that require you to use pihole as DHCP though? Afaik DNS packets doesn’t contain Mac address, right?

          • DreadPotato@sopuli.xyz
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            I think it will just identify the device by MAC and use whatever IP that MAC has assigned to block queries. I just noticed the other day that i can select devices by MAC and assign to groups, and my pihole isn’t the DHCP.

  • Bimbleby@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    I use it for enterprise scale infrastructure deployments. But for a home network, it seems like unnecessary work.

  • GreyBeard@lemmy.one
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    For work we have standards, ideally we separate VLANs by device type and firewall off their communication, but on a home network, I’d generally group by category. .1-9 network gear like switches and firewalls. .10-19 IOT. .20-29 servers & NAS. So on and so forth.

    • Oisteink@feddit.nl
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I see no reason to put iot devices on the same lan as my servers/home network, and I never suggest that to friends.

    • preciouspupp@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I’m paranoid so I have created a physically separate network for the IoT stuff. Everything gets its IP from the same server from a /25. The lower is the trusted network, high IPs are not. IoT network devices cannot open connections to the other network. A bit awkward, but works fine.

  • ShunkW@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 year ago

    I live alone. So I just have reserved IPs for each of my devices. Any new device gets assigned >200 so that I can easily identify new stuff, or rogue devices - which hasn’t happened lol. The only special IP is my pihole that gets 192.168.1.2 next to my router since I consider it infrastructure basically. Plus pihole is my dhcp server and dns obviously

      • ShunkW@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Yeah makes it easier to identify new stuff. Like I recently added a new NAS into my network, and I didn’t have to try and figure out which device it was identified as. Just sitting at 200.1 so I could give it a name and assign a static IP.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    8 months ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    AP WiFi Access Point
    DNS Domain Name Service/System
    HA Home Assistant automation software
    ~ High Availability
    IP Internet Protocol
    IoT Internet of Things for device controllers
    NAS Network-Attached Storage
    Unifi Ubiquiti WiFi hardware brand
    Zigbee Wireless mesh network for low-power devices

    8 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

    [Thread #71 for this sub, first seen 20th Aug 2023, 22:05] [FAQ] [Full list] [Contact] [Source code]

  • PuppyOSAndCoffee@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Sounds like fun but watch out for man in middle…home tech support!

    Remember upper executive mgmt (wife) will have priority demands and expect to bypass all support/ticketing processes c/o direct access/shoulder tap, 24x7.

    Tip - create high priority user stories for your upper exec mgmt needs and your rest activities (sports, call of duty, tinkering in garage/shop/man cave, etc etc etc et al) so your impl supports your key stakeholders while also aligning with your favorite best practices.

    .local is the important part imo—actually, tbh I am not a super fan of the .local dns method and how it punks networks (basically like entering a crowded bar and yelling YO BRAH!) BUT it is simple and low effort (see high pri user stories).

    Good luck with your PI plan, could you include us in PI retrospective so we can learn from you? Godspeed.

    :]

  • InvertedParallax@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Many, many, many subnets, so many subnets, different subnets for vms, for jailed services, for guest wifi, ‘secure’ wifi, ‘normal’ wifi (ie phones and shit), my workstation has a routed subnet for its lxc containers, I have remote subnets for my wifi routers over vpn when I travel (with restrictions similar to home access and the same 3 ssids), an unrouted subnet for stuff like bmcs, switches and infrastructure, a subnet in my dmz with statics, the backside of that subnet, the subnet that subnet uses for upstream access.

    I have a lot of subnets.

  • FeminalPanda@lemmings.world
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    The only one I set static is the servers and that’s for port forwarding. So I set it to what it was using at the time. Unifi IDs the devices for me otherwise.

    • DrakeRichards@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I know they exist and vaguely what they do, but I don’t know how to set them up. What’s their advantage over simple DHCP reservations for a small client list?

      • GreyBeard@lemmy.one
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        VLANs are a way of separating your network into logical networks without physically separating them. They are useful, but generally require your networking equipment to support them. Most cheap home switches don’t really support VLANs, nor do most consumer routers.

        • Oisteink@feddit.nl
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          I do believe vlans has a place in a home network - to separate guests from home network. Several of the home routers that provide a guest SSID will use vlans. It’s a basic part of openWRT and most home routers. One vlan for upstream and one or two(guest) for inside

          • GreyBeard@lemmy.one
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            The guest wifi may use VLANs on the backend, but it is in no way surfaced to the person managing it. I run Unifi equipment at home, which gives me the power to do all of that however I want, but it doesn’t sound like the OP is there yet.

            • Oisteink@feddit.nl
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              I have a dream machine myself and I’m so sorry I got it. It can do quite a bit, but I can’t have more than one vlan upstream - and it can’t handle igmp forwarding…. It’s shiny though with a nice gui and apps

              • GreyBeard@lemmy.one
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                They certainly have their limitations. I think the same limits are one the gateway I have(I run my own controller, so a dream machine is overkill). Can’t say I’ve encountered a situation where I need WAN VLANs on a home system, though.

                • Oisteink@feddit.nl
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

                  The “normal” use-case would be that some IPTV providers will have iptv and “internet” on separate vlans

      • dartanjinn@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        How small a client list are we talking? If it’s that small, then that would beg the question, why would you need dedicated ranges in the first place?

        • DrakeRichards@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          A couple dozen devices maybe. I don’t really need dedicated ranges, but it’s nice to know exactly which device I’m looking at just by the IP when reading logs.

          • dartanjinn@lemm.ee
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            1
            ·
            1 year ago

            I’m not saying in anyway that what you’re doing is in anyway wrong. It’s good that you’re thinking the way you are. Just saying, if you’re in this frame of mind now, it’s a good time to look at vlans. Think dedicated ranges with the benefit of reduced traffic saturation.

          • Oisteink@feddit.nl
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Checking logs is perhaps the only real reason I can see for reserved ip-s. But then again you can do reverse lookups - and like I said in another reply ipv6 is dynamic by nature, so any device will only stay on the same ip for the configured amount of time.
            You might not know, but several of your devices might already be communicating using ipv6 on your home network. Both windows and iOS will use link (osi layer 2) local IPv6 and mdns for discovery and communication. This is not true if your switch denies IPv6 but you’d need a level 2 switch or some way to block IPv6 multicast for that.

  • richdotward@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    I put them into groups, servers, consoles, computers, phones, smart devices, media. Between 10 to 20 per range.

    Everything else the dhcp server gives out ip over x.x.x.150 so easy to see new stuff.