ipcalc – perform simple manipulation of IP addresses
This utility is so cool, how many times I did try to figure out netmasks, broadcasts etc, this utility actualy performs simple manipulation of IP addresses:
ipcalc – provides a simple way to calculate IP information for a host. The various options specify what information ipcalc should display on standard out. Multiple options may be specified. An IP address to operate on must always be specified. Most operations also require a netmask or a CIDR prefix as well.
# ipcalc -nbm 192.168.1.254/29
NETMASK=255.255.255.248
BROADCAST=192.168.1.255
NETWORK=192.168.1.248
#
Powered by Yahoo! Answers