ipcalc

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 7 Imported by: 0

README

CIDR Range Calculator

ipcalc is a CIDR range calculator.

Installation

You must have Go installed and $GOPATH/bin must be in your path. For example: export PATH=$PATH:$(go env GOPATH)/bin

Download and install the ipcalc binary

go install github.com/andy-trimble/ipcalc@latest

Usage

> ipcalc 10.1.0.0/24
CIDR Range: 10.1.0.0/24
Netmask:    255.255.255.0
First IP:   10.1.0.0
Last IP:    10.1.0.255
Addresses:  256
> echo "10.1.0.0/24" | ipcalc
CIDR Range: 10.1.0.0/24
Netmask:    255.255.255.0
First IP:   10.1.0.0
Last IP:    10.1.0.255
Addresses:  256

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL