Skip to content

d4nilpzz/ipcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ipcalc

A fast and minimal IPv4/CIDR calculator for the command line, written in Rust.

Note

IPv4 only. IPv6 is not supported.


Features

  • Calculate network address, broadcast, and host range from a CIDR or subnet mask
  • Works with both CIDR notation and dotted-decimal subnet masks
  • Lightweight single binary — no dependencies

Installation

One-liner (Windows, PowerShell)

irm "https://github.com/d4nilpzz/ipcalc/releases/download/1.0.0-C/install.ps1" | iex

This downloads ipcalc.exe and adds it to your PATH automatically.

Manual

  1. Download ipcalc.exe from the releases page
  2. Place it in any folder that is in your PATH
  3. Run ipcalc from any terminal

Usage

ipcalc <IP>/<prefix>
ipcalc <IP> <subnet mask>

Examples

ipcalc 10.10.1.0/24
ipcalc 10.10.1.0 255.255.255.0

License

MIT

About

This Rust program is a simple IPv4/CIDR calculator built for the command line. It's important to know that this only calculate IPv4.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages