ipcalc(1)

ipcalc1

An ipv4 netmask/broadcast/etc calculator

Usage

ipcalc [options] ADDRESS [[/] NETMASK] [NETMASK]

Overview

ipcalc takes an IPv4 address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values.

--help

Display help usage

-n, --nocolor

Don't display ANSI color codes

-b, --nobinary

Suppress the bitwise output

-c, --class

Just print bit-count-mask of given address

-h, --html

Display results as HTML

-v, --version

Print Version

-s, --split n1 n2 n3.

Split into networks of size n1, n2, n3

-r, --range

Deaggregate address range

Examples

ipcalc 192.168.0.1/24

ipcalc 192.168.0.1/255.255.128.0

ipcalc 192.168.0.1 255.255.128.0 255.255.192.0

ipcalc 192.168.0.1 0.0.63.255

deaggregate address range

ipcalc <ADDRESS1> - <ADDRESS2>

split network to subnets where a b c fits in

ipcalc <ADDRESS>/<NETMASK> -s a b c

Releases

12 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1–5.0
  2. 6.0–7
  3. 8–Arch

--class since Debian 8 (Jessie); --help since Debian 8 (Jessie); --html since Debian 8 (Jessie); --nobinary since Debian 8 (Jessie); --nocolor since Debian 8 (Jessie); --range since Debian 8 (Jessie); --version since Debian 8 (Jessie); -r since Debian 8 (Jessie).

-help until Debian 5.0 (Lenny).

Author

Written by Krischan Jodies <[email protected]>

From ipcalc 0.51-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.