jeffreydivi / cirdCalc

A basic Web application for calculating CIDR values.

Home Page:https://cidr.divi.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cidrCalc

cidrCalc is a Web-based CIDR (Classless InterDomain Routing) calculator. It, when given an IP address range in CIDR notation, will print the range and relevant bitmasks.

Features

  • All done in client-side JavaScript without additional libraries and frameworks
  • Given an IP address range in CIDR notation, it will calculate:
    • The CIDR subnet prefix
    • The wildcard mask (what bits influence the range?)
    • The subnet mask (what bits are not in the range?)
    • The starting and ending IP addresses

Known Bugs and Pitfalls

  • Only supports IPv4 in the standard a.b.c.d/x format.
    • While a.d/x is a valid format, this tool will not properly resolve it as a.0.0.d/x.
  • The code and UI could be prettier/more optimised.

Demo

The canonical instance can be found at cidr.divi.sh.

About

A basic Web application for calculating CIDR values.

https://cidr.divi.sh

License:MIT License


Languages

Language:JavaScript 62.6%Language:CSS 19.3%Language:HTML 18.1%