ipcalc(1) General Commands Manual ipcalc(1)

# [NAME](#NAME)

ipcalc - An IPv4 Netmask/broadcast/etc calculator

# [SYNOPSIS](#SYNOPSIS)

**ipcalc** \[options] *ADDRESS*\[\[/]*NETMASK*] \[*NETMASK*]

# [DESCRIPTION](#DESCRIPTION)

**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**](#help)

Display help usage

[**-n**, **--nocolor**](#n)

Don't display ANSI color codes

[**-b**, **--nobinary**](#b)

Suppress the bitwise output

[**-c**, **--class**](#c)

Just print bit-count-mask of given address

[**-h**, **--html**](#h)

Display results as HTML

[**-v**, **--version**](#v)

Print Version

[**-s**, **--split** *n1* *n2* *n3*.](#s)

Split into networks of size n1, n2, n3

[**-r**, **--range**](#r)

Deaggregate address range

# [EXAMPLES](#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 &lt;ADDRESS1&gt; - &lt;ADDRESS2&gt;**

split network to subnets where a b c fits in

**ipcalc &lt;ADDRESS&gt;/&lt;NETMASK&gt; -s a b c**

# [AUTHOR](#AUTHOR)

Written by Krischan Jodies &lt;krischan@jodies.de&gt;

# [SEE ALSO](#SEE_ALSO)

[**ipsc**(1)](/man/enterprise-packages/ipcalc/ipsc.1) [**gipsc**(1)](/man/enterprise-packages/ipcalc/gipsc.1)

The ipcalc website: http://jodies.de/ipcalc

.

---

Document: ipcalc(1) from ipcalc 0.51-r1 (Chainguard OS)
Source: https://github.com/kjokjo/ipcalc
