from Hacker News

Visual Subnet Calculator

by thisisastopsign on 1/12/20, 6:18 PM with 17 comments

  • by yuvadam on 1/12/20, 9:22 PM

    Nicely done. Another alternative albeit without the calculator part, shamelessly self-promoting:

    https://cidr.xyz/

  • by iod on 1/12/20, 10:07 PM

    For those of you who are looking for similar tool doing IPv6 subnets you might want to check out SubnetOnline.com ¹

    ¹ https://www.subnetonline.com/pages/subnet-calculators/ipv6-s...

  • by dublin on 1/15/20, 2:26 AM

    Actually, neither this one nor cidr.xyz is fully compliant with the RFCs. Although I don't recommend it for pretty obvious reasons (and most routers probably won't handle it correctly, either), at least in the pre-CIDR RFCs, there is no requirement that subnet bits be contiguous. (I'm actually not sure if the CIDR RFC's address this - I don't keep up with this stuff anymore, and more recent RFC's my finally have discouraged these literally mindfcking netmasks...)

    As for IPv6, yuck - it's the most brain-dead nomenclature ever written - if we'd tried* to make IP addresses as impossible to use and communicate as possible, this is wheat we'd do.

  • by jaimex2 on 1/12/20, 11:01 PM

    sudo apt install ipcalc

    ipcalc 192.168.0.0/24

    and even better...

    ipcalc 192.168.0.0 255.255.255.0

    There's also ipv6calc

  • by Eikon on 1/12/20, 9:13 PM

    Somewhat related but I feel really sad that IPv6 is so slow to be adopted.

    IPv4 scarcity is going to increase centralization as it’s going to cost more than ever to even operate an AS.

    It’s pretty much going to be impossible to run an AS as an individual too for the same reason as a /24, the smallest block that you can pretty much announce on the Internet already sells for 5k+.

  • by rusteh1 on 1/13/20, 2:28 AM

    I've used this one for years http://jodies.de/ipcalc this doesn't seem to offer anything further unless I'm missing something?
  • by a012 on 1/13/20, 1:09 AM

    Some years ago I used this exact website to calculate non-overlap subnets when at work where I manage AWS VPCs for multiple projects. It's manual task when bootstraping a project, but it get done fast.
  • by nyx_ on 1/12/20, 9:19 PM

    There's some overflow happening if you feed it 0.0.0.0/0 and the like.
  • by p1mrx on 1/12/20, 9:15 PM

    Correction: "Visual IPv4 Subnet Calculator"