IPINFO(1)

NAME
ipinfo - a tool for displaying IP address information

DESCRIPTION
This program gives as much information about an IP address (and netmask) as possible, i.e. network, broadcast class etc.

SYNOPSIS
ipinfo [options] ip [netmask]

OPTIONS
  -a, --all            Display all (default)
  -i, --ip             Display given IP address
  -c, --class          Display class information
  -m, --netmask        Display netmask
  -p, --prefix         Display prefix
  -n, --network        Display network address
  -w, --wildcard       Display wildcard
  -b, --broadcast      Display broadcast address
  -t, --ipcount        Display count af all IP addresses
  -H, --hostcount      Display count of host IP addresses
  -I, --hostmin        Display first usable IP address of a host
  -A, --hostmax        Display last usable IP address of a host

  -l, --legend         Force display legend
  -h, --help, --usage  Print usage information

  ip and netmask can be specified in one of these formats:
    a.b.c.d/prefix   (mask is not specified)
    a.b.c.d prefix
    a.b.c.d/e.f.g.h  (IP address/netmask address)
    a.b.c.d e.f.g.h
    a.b.c.d          (netmask will be determined)

OUTPUT
If no options are defined, the program displays all possible information.

If only one information is selected to be displayed, legend will not be displayed (only if -l is set), this can be usefull in scripts. If there are more information to display, legend is allways displayed.

If -a is set, all other options are ignored and everything will be displayed.

Values Host count, Host min and Host max have no sense if prefix is higher than 30, in this case these values will not be displayed. This can cause no output.

EXAMPLES
ipinfo 192.168.0.1

IP address: 192.168.0.1
Class: C (private 192.168/16)
Netmask: 255.255.255.0
Prefix: 24
Network: 192.168.0.0
Wildcard: 0.0.0.255
Broadcast: 192.168.0.255
IP count: 256
Host count: 254
Host min: 192.168.0.1
Host max: 192.168.0.254

ipinfo -n -b 10.0.0.1/24

Network: 10.0.0.0
Broadcast: 10.0.0.255

ipinfo -l -n 10.0.0.0 255.255.255.0

Network: 10.0.0.0

ipinfo -n 10.0.0.0

10.0.0.0

AUTHOR
Written by C. McCohy <mccohy@kyberdigi.cz>
See http://www.kyberdigi.cz/projects/ipinfo/ for more information.