• signalsayge@infosec.pub
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 hours ago

    I love that people forget about 127.0.0.0/8 being the loopback network. Everyone just uses .1 when there are so many to choose from.

    • lawks@aussie.zone
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      IPv6: Fuck you, you’re only allowed one, now. Yeah, yeah, I know there are about 340 undecillion addresses in the space, but I know better than you, no one in history has ever needed to bind different services to the same port on the loopback interface, and if they did they were doing it wrong. Oh you made an RFC draft? Well I let the one from 2015 expire, so good luck with your current proposal, pleb.

  • sem@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    3
    ·
    3 hours ago

    IP addresses are one thing, but wtf is a subnet mask??

    Wtf is 255.255.255.255 and why does it keep showing up???

    • chronicledmonocle@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      51 minutes ago

      Subnet Masks are how you get networks. It’s simple binary ANDing math.

      For example, if you have a 192.168.1.1 IP address and a subnet mask of 255.255.255.0, that means the first 3 octets (each block of numbers between the dots representing an 8 bit value) of 255 are the network part of the IP (192.168.1.0/24) and the fourth octet is the host addresses space of the address. It’s saying 192.168.1 is the network and the last number is the host on that network.

      If you take 1 from 192.168.1.X and convert it to binary, you get 00000001. If you convert 255 to binary, you get 11111111.

      If you line them up and “AND” them together sort of like you’re adding them together in a “both must be true” comparison, you get

      00000001

      11111111

      00000001

      A 1 and a 1 makes 1. Anything else makes a 0. Basically the 192 gets ANDed to 255 and comes out as itself. Same for 168 and 1.

      For a 255.0.0.0 (or /8) 255.255.0.0 (or /16), and 255.255.255.0 (or /24) it’s easy, because it’s all 1s or 0s for each block of 8 bits of the 32 bits that make up an IPv4 address. Each block just plops out as itself because it’s all 1s or all 0s for each of the 4 blocks.

      Now try that with 23 bits instead of 24.

      00000001 for the third octet “1” part of 192.168.1.1

      11111110 for “254” part of 255.255.254.0 (aka a /23)

      00000000 or 0 for the third octet.

      This means that the network ID is 192.168.0.0/23 and the usable IP addresses are 192.168.0.1 through 192.168.1.254.

      With a /23 network, you get 512 addresses instead of 256 with a /24 (192.168.0.0-192.168.1.256 versus 1.0 through 1.256). The first IP is the network ID and the last is the broadcast address, both of which are unusable, so you have 510 IP addresses in a /23 to use for devices instead of 254 with a /24.

      This is how basic IPv4 subnetting works and it’s how you size various networks for things like Enterprise that needs more than a small home network of less than 254 devices.

      Congrats. If you understood that, you now have enough knowledge to probably pass some network exams.

    • muusemuuse@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      3 hours ago

      It tells you how to read the IP address. It’s a really cool trick that’s an enormous pain in the ass.

  • Cort@lemmy.world
    link
    fedilink
    arrow-up
    40
    ·
    11 hours ago

    Gateway is .69

    Dhcp is .70 - .254

    Static routes are .68 and below

    I will not be taking any questions

    • MehBlah@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 hours ago

      About twenty years ago I was hired in to straighten up a network at a investment place. They were running all static IP addresses and the guy who set it up set the gateway to 69. I laughed and started converting them to dhcp and seriously considered leaving the gateway alone.

      I have to ask a question now. My question is, is that you?

    • Limonene@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      Gateway has multiple IP addresses, from .1 through .10 . (I used to have multiple OpenWRT servers for different things, but consolidated them all into a single rackmount server.)

  • hansolo@lemmy.today
    link
    fedilink
    arrow-up
    17
    ·
    11 hours ago

    My home server is at 192.168.1.230 because that’s what IP was assigned to the machine at the moment I set it up.

    Yep. Love that chaos, ya know?

  • TheGingerNut@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    102
    ·
    15 hours 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
      37
      ·
      15 hours 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.

  • shalafi@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    11 hours ago

    10.10.10.70 here. There was a reason in the distant past that I did this and now it’s stuck that way forever.

  • Opisek@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    2
    ·
    13 hours ago

    First address? As in, the network address? Last address? As in, the broadcast address? Suspicious.