en cz  
2004-12-02

Version 1.0 released.

RSS
Ipinfo is a simple tool for calculation of IP networks - broadcast address, wildacrd address or count of usable IP addresses in a network, all of it based just on the knowledge of an IP address and network mask (or prefix length). The program is written in C programming language primarily on the Linux platform, however it should be possible to run it on other platforms too.

This software can be distributed and modified freely under the terms of GPL license.

Installation is simple, just unpack the downloaded file, enter the newly created directory, compile and install the program. If compilation or installation fails, check definition values in Makefile:

$ tar xzf ipinfo-x.y.tar.gz
$ cd ipinfo-x.y
$ make
# make install

You need to have these programs installed before you compile ipinfo:

  • make
  • gcc
  • install

The program will be installed into directory /usr/local/bin (you have to have root superuser permission for that probably). If you want to change this directory, change definition of BINDIR in Makefile. A manual page containing execution instruction will be installed too (see MANDIR in Makefile).

The program can be run with a few parameters:

ipinfo [parameters] ip [mask]

List of parameters:

Parameter Function
-a, --all Display everything (default behavior)
-i, --ip Display given IP address
-d, --decimal Display decimal value of given IP address
-c, --class Display class information
-m, --netmask Display network mask
-p, --prefix Display network prefix length
-n, --network Display network address
-w, --wildcard Display wildcard address
-b, --broadcast Display boradcast address
-t, --ipcount Display count af all IP addresses in network
-H, --hostcount Display count of host IP addresses in network
-I, --hostmin Display first usable IP address of a host in network
-A, --hostmax Display last usable IP address of a host
-l, --legend Force display legend (usable only if output has 1 line)
-h, --help, --usage Display help

Ip address can be specified in one of these formats:
(a.b.c.d is IP address, e.f.g.h is network mask, pp is prefix length)

  • a.b.c.d/pp
  • a.b.c.d pp
  • a.b.c.d/e.f.g.h
  • a.b.c.d e.f.g.h
  • a.b.c.d

Select version:

Version:
Date:
Size:
MD5:
Direct link:

Enter IP address
IP address with netmask ot prefix length, i. e. 192.168.0.0/24