LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sipcalc

IPv4 and IPv6 subnet calculator

TLDR

Calculate subnet
$ sipcalc [192.168.1.0/24]
copy
Split network into /26 subnets
$ sipcalc -s [26] [192.168.1.0/24]
copy
IPv6 address
$ sipcalc [2001:db8::1/64]
copy
Show all info
$ sipcalc -a [192.168.1.100/24]
copy
Interface addresses
$ sipcalc [eth0]
copy
CIDR bitmap output
$ sipcalc -b [192.168.1.0/24]
copy
Classful info
$ sipcalc -c [10.0.0.0]
copy
Convert Cisco wildcard to netmask
$ sipcalc -w [0.0.0.255]
copy
IPv6 reverse DNS
$ sipcalc -r [2001:db8::1/48]
copy

SYNOPSIS

sipcalc [-s size] [-a] [-b] [options] address

DESCRIPTION

sipcalc is an advanced IP subnet calculator that handles both IPv4 and IPv6 addresses. Given an address with a prefix length or netmask, it displays the network address, broadcast address, host range, and other details in both CIDR and traditional netmask notation.The subnet splitting option (-s) divides a network into smaller subnets at a specified prefix length, showing all resulting ranges. Interface mode accepts a network interface name instead of an address, reading the system's configured addresses for analysis. The -b option adds binary representations for bit-level understanding of subnet boundaries.

PARAMETERS

-a

Give all possible information about an address or interface.
-b
Display CIDR based bitmaps (IPv4).
-c
Display classful address information (IPv4).
-d
Enable name resolution.
-e
Display v4inv6 address information (IPv6).
-i
Display CIDR address information (default IPv4).
-n NUM
Display NUM extra subnets starting from the current subnet.
-r
Display IPv6 reverse DNS information.
-s MASK
Split IPv4 network into subnets of MASK size.
-S MASK
Split IPv6 network into subnets of MASK size.
-t
Display standard IPv6 address information (default IPv6).
-u
Verbose mode for network splitting.
-w
Convert Cisco wildcard (inverse mask) to regular netmask.
-4 ADDR
Explicitly add an IPv4 address.
-6 ADDR
Explicitly add an IPv6 address.

CAVEATS

Complex subnetting may need verification. IPv6 output is verbose. Interface mode needs permissions.

HISTORY

sipcalc was written by Simon Ekstrand for IP address calculations. It supports both protocol versions with consistent output.

SEE ALSO

ipcalc(1), ip(8), ifconfig(8)

Copied to clipboard
Kai