1 .TH IPCALC 1 "April 30 2001" "Red Hat, Inc." RH \" -*- nroff -*-
3 ipcalc \- perform simple manipulation of IP addresses
6 [\fIOPTION\fR]... <\fBIP address\fR>[\fI/prefix\fR] [\fInetmask\fR]
9 \fBipcalc\fR provides a simple way to calculate IP information for a host.
10 The various options specify what information \fBipcalc\fR should display
11 on standard out. Multiple options may be specified. An IP address to
12 operate on must always be specified. Most operations also require a
13 netmask or a CIDR prefix as well.
18 \fB\-b\fR, \fB\-\-broadcast\fR
19 Display the broadcast address for the given IP address and netmask.
22 \fB\-h\fR, \fB\-\-hostname\fR
23 Display the hostname for the given IP address.
26 \fB\-m\fR, \fB\-\-netmask\fR
27 Calculate the netmask for the given IP address. It assumes that the IP
28 address is in a complete class A, B, or C network. Many networks do
29 not use the default netmasks, in which case an inappropriate value will
33 \fB\-p\fR, \fB\-\-prefix\fR
34 Show the prefix for the given mask/IP address.
37 \fB\-n\fR, \fB\-\-network\fR
38 Display the network address for the given IP address and netmask.
41 \fB\-s\fR, \fB\-\-silent\fR
42 Don't ever display error messages.
46 Erik Troan <ewt@redhat.com>
48 Preston Brown <pbrown@redhat.com>
51 Report bugs to our bugtracking system:
52 http://bugzilla.redhat.com/bugzilla.
54 Copyright \(co 1997-2001 Red Hat, Inc.
56 This is free software; see the source for copying conditions. There is NO
57 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR