| Developer's Daily | Unix by Example |
| main | java | perl | unix | dev directory | web log |
|
ipcalc − perform simple manipulation of IP addresses |
|
ipcalc [--hostname] [--broadcast] [--network] [--netmask] ip [netmask] |
|
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. |
--broadcast
|
Display the broadcast address for the given IP address and netmask. |
|
--hostname |
|
Display the hostname for the given IP address. |
|
--netmask |
|
Calculate the netmask for the given IP address. It assumes that the IP address is in a complete Class A, B, or C network. Many networks do not use the default netmasks, in which case an inappropriate value will be returned. |
|
--network |
|
Display the network address for the given IP address and netmask. |
|
--silent |
|
Don’t ever display error messages. |
Erik Troan <ewt@redhat.com> |