![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() | |
![]() | ![]() |
IPInfo command line tool - online help |
Usage: IPInfo [IPNET] [OPTION] ...
Show information on IPNET (NetMask, HostMask, Bits, BaseAddress ...)
Example: IPInfo 192.168.1.25/255.255.0.0
Example: IPInfo 192.168.1.25/16
will result in a netmask with 16 bits set = 255.255.0.0
Example: IPInfo 192.168.1.25!5
will result in smallest valid net holding at least
5 addresses (including base and broadcast address),
which in this case is a net of 8 IPs, resulting in
a netmask of 255.255.255.248 or a /29 net.
Example: IPInfo /27
will show netmask, bits and IP count for a /27 net,
which here is 255.255.255.224, 27 bits and 32 IPs.
Example: IPInfo !5
will show netmask, bits and IP count for a net holding 5 addresses,
which here is 255.255.255.248, 29 bits and 8 IPs.
Example: IPInfo *
will show all IPs assigned to the current host.
Example: IPInfo 2
will show second IP address only.
Example: IPInfo *!8
will show all IPs assigned to the current host,
faking all nets to a net holding 8 IP addresses (/29),
which will result in displaying wrong masks for IPs that
really do not have a /29 net assigned. A (suppressable)
warning is printed on each IP whose mask gets faked!
Example: IPInfo */29
same as *!8
Example: IPInfo 2/29
like */29, while only IP 2 of the current host is displayed.
IPNET: [IP][/Mask|/Bits|!Count]
IP: valid IPv4 address, dotted decimals
or omitted, then ignored,
when missing, options default to -n -b -c, which is useful to get
the netmask on a given number of IP addresses (e.g. IPInfo !16)
or "*" which is replaced by all locally assigned IP addresses
defaults to "0.0.0.0" if no local IP assigned
(e.g. IPInfo * -i lists all local IPs)
or a decimal number N, which is replaced by the Nth locally
assigned IP address
Mask: valid IPv4 Network Mask, dotted decimals
Bits: number of set bits in Network Mask, 0..32
Count: number of IP addresses in network, rounded up to next 2^n
definied as "Count := 2^(32-Bits)"
OPTIONS:
Alter display format:
-nlf suppress output of CR[-LF]
-pau[se] wait for ENTER keypress at end
-par[am] display parameters and options
-bin[ary] add "dotted binary" output to each IPv4 address/mask
-zer[os] dotted decimals with leading zeroes (e.g. 192.168.001.025)
-lab[els] label each output information (see below)
is default on -all or on no options given, otherwise off
-nol[ab] suppress labels (when -lab defaults to "on")
-now[arn] suppress warning on */x, *!x, n!x and n/x (see examples)
Information to include in output:
-inf[o] show local network information, like "ipconfig -all" does
-all show complete information (default, except of -inf),
overrides all of the following "display" options;
shows base and broadcast, when Bits=32 (=host address given)
-i IP address
-n, -m (network) mask as given by /Mask, /Bits or !Count
-h host mask, derived from network mask
hostmask := !netmask
-b network bits, derived from network mask
netmask := !(2^(32-bits)-1))
-a, -ba network base address
-r, -br network broadcast address
-c count number of IP addresses in IPNET
count := 2^(32-Bits)
-im output of IP/mask (e.g. 192.168.1.25/255.255.0.0)
-ib output of IP/bits (e.g. 192.168.1.25/16)
-bm output of base/mask (e.g. 192.168.0.0/255.255.0.0)
-bb output of base/bits (e.g. 192.168.0.0/16)
ATTN: joining options like "-i -b -c" to "-ibc" is not allowed!
Report bugs to chris@gensler.to
|
Christoph Gensler IT-Support, Werner-Artus-Straße 10, 97645 Ostheim v. d. Rhön eMail:chris@gensler.to, Web: http://www.gensler.to/, USt-IdNr.: DE271189417, StNr: 206/220/31168 Datenschutzerklärung | |
![]() | Letzte Änderung am 26.11.2014 durch webmaster@gensler.to |