• gastroglizzy@piefed.social
      link
      fedilink
      English
      arrow-up
      10
      ·
      3 days ago

      My soho setup is:

      1-100 = DHCP

      101 = Default gateway

      102 - 199 = Unused

      201-254 = Static, manually assigned IPs (if any)

      I came up with it before I got my Net+. I told myself I’d change it as soon as it caused any problems. That was 12 years ago.

      • Midnight Wolf@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 days ago

        Mine is 1 for router/gateway, 2-199 is static with 2-9 (technically 1-9) being network gear, 10-19 being servers/related, 20-29 computers, 30-39 phones… all the way up to 100-119 for cameras and access, currently. And then 200+ for dhcp.

        Everything on the network runs dhcp but gets a static ip from the router. If I ever forget to assign a new device, it’s obvious since it won’t be near the related equipment, and it’ll be like 213 or something, sticking out like a sore thumb.

      • j3tt@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        .1 gateway .2-.99 static range .100-.254 dynamic range (dhcp)

        btw. /23 networks are cool, too.

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      2 days ago

      DHCP first is unhinged bruh

      1-127 is static, DHCP starts at 128.

      Libvirt/QEMU agrees with me so I must be right

    • nitrolife@hikki.team
      link
      fedilink
      arrow-up
      6
      ·
      3 days ago

      I set the gateway to .1 and everything up to 100 I move out of DHCP into static pool for some nodes (speakers, servers, gateways, SIP phones, access points, switches, printers, vacuum cleaners, etc.). Simply because in this case, you have to type fewer digits to log into these boxes.

            • hylobates@jlai.luOP
              link
              fedilink
              arrow-up
              8
              ·
              3 days ago

              I’m quite fond of 10.0.0.0/8. That gives you a lot of wiggle room, just in case.

            • Lodespawn@aussie.zone
              link
              fedilink
              English
              arrow-up
              4
              ·
              3 days ago

              Well technically a 10. network could be a /8 if you really wanted to. But in this case the /23 was specified above. I don’t think it’s necessary but that’s what op was talking about and the 212.255 is a valid address, as is 213.0

              • BluescreenOfDeath@lemmy.world
                link
                fedilink
                English
                arrow-up
                3
                ·
                3 days ago

                Sure, you could. But you’d be going out of your way to setup an internal IP scope you’ll never fully utilize.

                I suppose it doesn’t really matter, but it just feels wrong.

                • Lodespawn@aussie.zone
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  2 days ago

                  Yeah that’s fair. Maybe OP is planning a nonsense amount of IoT devices and cameras? or they just want to use some unorthodox IPs like .255 or .0 for fun 🤷

                • remotelove@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  edit-2
                  3 days ago

                  Thanks for the correction on the the broadcast address, btw. The details are important.

                  At home, I have 172.16/12 scoped out for my cluster subnet and just use the second and third octet to denote service function. It’s excessive scoping, but it’s an internal scope for a private network and broadcasts are generally contained to the cluster network. It would be trivial to split that into a 172.16/16 if I ever had the desire. (Speaking bluntly, it really doesn’t matter much in this case. I’ll need to split it out to keep Longhorn traffic segregated later, but it’s not an issue now.)

                  The rest of the network is reasonably scoped out across 192.168 ranges and chopped up across a few VLANs.

                  My addressing scheme is split into “public” and “stay the fuck out”, with most 172 addresses being the latter. At home this is great. In a large network, scoping out such a large 172 subnet could be detrimental. (“It depends” on the detrimental bit and requires proper planning and understanding about why subnets were even built into IPv4 from the get-go.)

                  Edit: Most addressing is static on my cluster network, with DHCP only handing out addresses based on MAC address. The 172 subnet has very restricted dynamic IP ranges.

                  Regardless of what is what, it’s a scheme I recognize and that is the more important bit.

                • draeath@lemmy.sdf.org
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  3 days ago

                  It might also make you really grumpy if you decide to use a VPN or containers - those often use 10/24 subnets and having an overlap with your LAN can make things spicy.

            • SpaghettiMaster@feddit.uk
              link
              fedilink
              arrow-up
              3
              ·
              3 days ago

              I could see something like /20 being useful not so much for the number of addresses but to group things by use case, then /8 because you don’t care and it doesn’t matter. Also 10.0 is quicker to type and cleaner to look at than 192.168

          • Onomatopoeia@lemmy.cafe
            link
            fedilink
            English
            arrow-up
            3
            ·
            3 days ago

            I had students like you when teaching Cisco classes…

            Their peers heads would always explode, lol.

            • zurohki@aussie.zone
              link
              fedilink
              English
              arrow-up
              3
              ·
              3 days ago

              If you use a /23 you can use the middle .0 too.

              My favourite dumb networking trick though is that Linux lets you use an IPv6 address as an IPv4 gateway.

              ip -4 route add default via inet6 fe80::1 dev eth0
              

              That works so long as the gateway is running dual stack.