]>
Commit | Line | Data |
---|---|---|
792fd7dc | 1 | .TH IPCALC 1 "April 30 2001" "Red Hat, Inc." RH \" -*- nroff -*- |
7e04fe0e | 2 | .SH NAME |
3 | ipcalc \- perform simple manipulation of IP addresses | |
4 | .SH SYNOPSIS | |
5 | .B ipcalc | |
792fd7dc | 6 | [\fIOPTION\fR]... <\fBIP address\fR>[\fI/prefix\fR] [\fInetmask\fR] |
7e04fe0e | 7 | |
8 | .SH DESCRIPTION | |
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 | |
792fd7dc AM |
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. | |
7e04fe0e | 14 | |
15 | .SH OPTIONS | |
16 | .TP | |
792fd7dc AM |
17 | .TP |
18 | \fB\-b\fR, \fB\-\-broadcast\fR | |
7e04fe0e | 19 | Display the broadcast address for the given IP address and netmask. |
20 | ||
792fd7dc AM |
21 | .TP |
22 | \fB\-h\fR, \fB\-\-hostname\fR | |
7e04fe0e | 23 | Display the hostname for the given IP address. |
24 | ||
792fd7dc AM |
25 | .TP |
26 | \fB\-m\fR, \fB\-\-netmask\fR | |
7e04fe0e | 27 | Calculate the netmask for the given IP address. It assumes that the IP |
792fd7dc | 28 | address is in a complete class A, B, or C network. Many networks do |
7e04fe0e | 29 | not use the default netmasks, in which case an inappropriate value will |
30 | be returned. | |
31 | ||
792fd7dc AM |
32 | .TP |
33 | \fB\-p\fR, \fB\-\-prefix\fR | |
34 | Show the prefix for the given mask/IP address. | |
d2d2296f | 35 | |
792fd7dc AM |
36 | .TP |
37 | \fB\-n\fR, \fB\-\-network\fR | |
7e04fe0e | 38 | Display the network address for the given IP address and netmask. |
39 | ||
792fd7dc AM |
40 | .TP |
41 | \fB\-s\fR, \fB\-\-silent\fR | |
42 | Don't ever display error messages. | |
43 | ||
44 | .SH AUTHORS | |
7e04fe0e | 45 | .nf |
46 | Erik Troan <ewt@redhat.com> | |
792fd7dc AM |
47 | .nf |
48 | Preston Brown <pbrown@redhat.com> | |
7e04fe0e | 49 | .fi |
792fd7dc AM |
50 | .SH "REPORTING BUGS" |
51 | Report bugs to our bugtracking system: | |
52 | http://bugzilla.redhat.com/bugzilla. | |
53 | .SH COPYRIGHT | |
54 | Copyright \(co 1997-2001 Red Hat, Inc. | |
55 | .br | |
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 | |
58 | PURPOSE. |