• TheGingerNut@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    23 days ago

    10.0.0.0/8 address space with a gateway address that gets randomized every 24 hours. Tomorrow’s address is advertised on a HTTP server local to the network that cannot be externally accessed. For security reasons.

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

      Nothing advertises hostnames, and the DHCP table is dumped and every client gets new address at the same time, too.

      Just make sure the MAC addresses randomize, too, and then you’ve got yourself a proper fucking mess for a hacker to sort out.

        • stoy@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          19 days ago

          I have never found the number 69 joke/reference funny, just annoying.

          You are very welcome to use that IP adress yourself, but I am going to stick to 10.13.37.42

    • gastroglizzy@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      23 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.

      • j3tt@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        23 days ago

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

        btw. /23 networks are cool, too.

      • Midnight Wolf@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        23 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.

          • Onomatopoeia@lemmy.cafe
            link
            fedilink
            English
            arrow-up
            0
            ·
            23 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
              0
              ·
              23 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.

            • Lodespawn@aussie.zone
              link
              fedilink
              English
              arrow-up
              0
              ·
              23 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
                0
                ·
                23 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.

                • draeath@lemmy.sdf.org
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  23 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.

                • remotelove@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  edit-2
                  23 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.

            • SpaghettiMaster@feddit.uk
              link
              fedilink
              arrow-up
              0
              ·
              23 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

            • hylobates@jlai.luOP
              link
              fedilink
              arrow-up
              0
              ·
              23 days ago

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

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      23 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
      0
      ·
      23 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.

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    23 days ago

    Also change the random address daily without announcing it. If the 7th floor wants internet they can damn well work for it. 😆

    • moodoovoodoo@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      23 days ago

      I work for a French company that does this, I don’t know if all French companies do this, but it threw me for a loop for sure.

    • xylogx@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      22 days ago

      A typical ip address scheme is to assign lower blocks to dhcp pools and reserve high ip addresses to servers and network gear. Anything over 250 is typically a switch or a router in this case.

    • chronicledmonocle@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      22 days ago

      There are reasons to put it at the end. For example, 192.168.1.254/24 can be expanded to /23 and have the same gateway address while you migrate clients that are statically assigned or while waiting on DHCP leases to expire, since /23 is a supernet of /24.

      • pepeSilvia@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        22 days ago

        What am I missing here?

        192.168.1.1/24 would also be a valid gateway for a /23, with the benefit of not having a gateway in the middle of your /23 network?

        I feel like this example is a greater justification for putting the gateway on the network/CIDR + 1, like a civilized person.

        • chronicledmonocle@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          22 days ago

          I shared another post here with how subnetting works. Basically, if you start with 192.168.1.254 on a /24 for your gateway and move to a /23, your usable range goes from 192.168.1.1-192.168.1.254 to 192.168.0.1-192.168.1.254.

          In this situation, the gateway address stays the same and since the /24 is contained within the /23, they can still connect to the gateway and keep working while you migrate things. The only thing they cannot talk to is clients in the 192.168.0.0/24 space until they pull new DHCP or have their static address updated. As such, it can make future expansion easier, if necessary.

          If you used 192.168.1.1/24 as the gateway initially, you’ll notice that in this same expansion plan it’s now smack in the middle of the subnet in a /23. Is that the end of the world? No, but it looks like shit and complicates things if you did something like I usually do and allocate certain “sections” of the subnet to non-DHCP space. Also, now you need to manage two DHCP pools, one below 192.168.1.1 and one above it. It’s one of those small things that compounds with each bandaid until you’re dying by a thousand cuts.

          I’m theory you would design your network with a large enough subnet from the get-go for expansion, but sometimes you screw up, so habits like this can make those screw ups less painful.

      • cynar@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        22 days ago

        My guess is that enough people were buying routers and using them as access points. They all tend to be on 192.168.0.1 .254 means you don’t get as bad collisions when that happens. It would cut down on technical support calls.

      • shalafi@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        23 days ago

        My new fibre modem is .254. It was a bitch to get into (whatever the mode’s called that makes it a simple gateway).

  • toynbee@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    22 days ago

    I used to use 1.2.3.4 as my gateway.

    At the time I didn’t understand why this offended … Basically everybody.

        • chronicledmonocle@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          22 days ago

          That’s mostly because it violates established standards, but you know that already. Lol.

          Also, if you’re talking to a network engineer, they probably have PTSD dealing with a client that did this with a 1.0.0.0/8 used internally or some shit and now huge swathes of the internet doesn’t work, but somehow it’s “our fault” that they can’t load random web sites.

          • jj4211@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            22 days ago

            That’s mostly because it violates established standards, but you know that already. Lol.

            Hey, for all you know he might actually be the proper owner of that subnet…

            I know if by some crazy coincedence I had that in my subnet I’d be using it for fun.

            • chronicledmonocle@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              22 days ago

              I recently had a ticket for a university that had a /12 of public IPs. They gave every computer, printer, etc. a public IP on their whole network. Nothing has NAT. It was insane. They could buy an entire other university building with the money they’d make selling some of that address space down to even a /24.

          • toynbee@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            22 days ago

            Fwiw, I now use 10.10.220.0/24. I now know what class A, B and C are. I didn’t then.

            Hopefully that offers you some comfort.

            • Billegh@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              19 days ago

              Thankfully, the internet is now as classless as I am. I don’t miss having to align to those.

            • jj4211@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              22 days ago

              Everyone knows you need to be using a network like fd25:c74c:a5e9::/64. So much more fun that way.

                • jj4211@lemmy.world
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  22 days ago

                  It’s just a ‘proper’ IPv6 private address, the IPv6 equivalent of ‘10.’.

                  I say proper as a private address in ipv6 is supposed to be fd, then 40 random bits, then whatever you want. Nothing stops you from having fd::/64 as your private network though. The thinking was people who got tired of merging networks that happened to choose the same 10.x.x.x scheme and/or vpn connecting to multiple sites similarly with the same private address. So they thought it would be swell if every private network on earth would likely be unique, so they said you ‘must’ randomize 5 bytes of it. Then no renumbering/no conflicting vpn connections.

  • Taleya@aussie.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    21 days ago

    I’m the cat

    1 is my pc. 254 is the managed micro switch i use to isolate work stuff. Most things are neatly arranged - eg: 70 is the testbed proxmox, 79 is its idrac, 71-78 are the vms, same with 80 on my production proxmox. DHCP is zoned from 101 to 199, IoT are assigned fixed IPs in similar ranges, etc.

    Modem is 11

  • kamen@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    22 days ago

    It’s good to be reminded that some things are just conventions rather than hard rules. I forget things like that (if I ever knew them to begin with).

    On topic, I usually do 192.168.0.1 or 192.168.1.1 depending on the situation.