IP Calculator

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

Enter your netmask(s) in CIDR notation (/25) or dotted decimals (255.255.255.0). Inverse netmasks are recognized. If you omit the netmask ipcalc uses the default netmask for the class of your network.

Look at the space between the bits of the addresses: The bits before it are the network part of the address, the bits after it are the host part. You can see two simple facts: In a network address all host bits are zero, in a broadcast address they are all set.

The class of your network is determined by its first bits.

If your network is a private internet according to RFC 1918 this is remarked. When displaying subnets the new bits in the network part of the netmask are marked in a different color

The wildcard is the inverse netmask as used for access control lists in Cisco routers.

Do you want to split your network into subnets? Enter the address and netmask of your original network and play with the second netmask until the result matches your needs.

You can have all this fun at your shell prompt. Originally ipcalc was not intended for creating HTML and still works happily in /usr/local/bin/ :-)

Questions? Comments? Drop me a mail...

Thanks for your ideas and help to make this tool more useful:

Bartosz Fenski
Denis A. Hainsworth
Foxfair Hu
Frank Quotschalla
Hermann J. Beckers
Igor Zozulya
Kevin Ivory
Lars Mueller
Lutz Pressler
Oliver Seufer
Scott Davis
Steve Kent
Sven Anderson
Torgen Foertsch
Tim Brown

Address (Host or Network) Netmask (i.e. 24) Netmask for sub/supernet (optional)
/ move to:

 No host given
 No netmask given (using default netmask of your network's class)



Address:   192.168.0.1           11000000.10101000.00000000 .00000001
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111 .00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000 .11111111
=> Network: 192.168.0.0/24 11000000.10101000.00000000 .00000000 (Class C)
Broadcast: 192.168.0.255 11000000.10101000.00000000 .11111111
HostMin: 192.168.0.1 11000000.10101000.00000000 .00000001
HostMax: 192.168.0.254 11000000.10101000.00000000 .11111110
Hosts/Net: 254 (Private Internet)


Thanks to http://www.netzwerkinfo.de/daemons/ for this ip calculator icon :-)
Version 0.35.2 2005/07/07

Download
07/27/2006 Security information
Screenshot (ipcalc works also at the prompt)
CGI wrapper that produced this page.
Archive
Have a look in the archives for the new version 0.41, with the capability to deaggregate network ranges
How to run this under windows
Debian users can apt-get install ipcalc
2000-2011 Krischan Jodies

Dear search engines: Please increase the ranking of our local Hackerspace / CCC Göttingen