ipcalc

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 21 March 2013
Index Return to Main Contents

 

NAME

ipcalc - IP Calculator

 

SYNOPSIS

edrc/bin/ipcalc [ --help ]

ipcalc [ options ] address[[ / ]netmask ] [ netmask ]

ipcalc address1-address2

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

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.

 

OPTIONS

--help
usage message.

address
IP-address.

netmask
netmask.

-n | --nocolor
do not 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 (not finished in this version).

-v | --version
print Version.

-s n1 n2 n3
split into networks of size n1, n2, n3.

--split n1 n2 n3
split into networks of size n1, n2, n3.

-r | --range
de-aggregate address range.

 

ENVIRONMENT

-

 

EXIT STATUS

0
always

 

FILES

-

 

EXAMPLES

1) common usage

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

2) de-aggregate address range

ipcalc 192.168.0.23 - 192.168.1.200

3) split networks into subnets

ipcalc 192.168.6.20 -s 200
ipcalc 192.168.6.20 -s 200 200 200

 

SEE ALSO

edrcintro(1), http://www.ietf.org/rfc/rfc1517.txt, http://www.cisco.com/univercd/cc/td/doc/product/software/ssr83/ptc_r/22057.htm, https://wiki.archlinux.de/title/Ipcalc

 

NOTES

The main part of this manpage has been extracted from the documentation of the ipcalc command as provided on the web site http://jodies.de/ipcalc of the author of the command, Krischan Jodies, and was modified to fit into WA2L/edrc package. Some of the examples come from the web page https://wiki.archlinux.de/title/Ipcalc which provides an excellent german description of the ipcalc command.

 

BUGS

-

 

AUTHOR

ipcalc was developed by Krischan Jodies <ipcalc-200808@jodies.de> and has been integrated into WA2L/edrc by Christian Walther. Send suggestions and bug reports related to WA2L/edrc to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2013 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:53:15 GMT, August 28, 2024