1IPCALC(1) RH IPCALC(1)
2
3
4
6 ipcalc - perform simple manipulation of IP addresses
7
9 ipcalc [OPTION]... <IP address>[/prefix] [netmask]
10
11
13 ipcalc provides a simple way to calculate IP information for a host.
14 The various options specify what information ipcalc should display on
15 standard out. Multiple options may be specified. An IP address to
16 operate on must always be specified. Most operations also require a
17 netmask or a CIDR prefix as well.
18
19
21 -b, --broadcast
22 Display the broadcast address for the given IP address
23 and netmask.
24
25
26 -h, --hostname
27 Display the hostname for the given IP address.
28
29
30 -m, --netmask
31 Calculate the netmask for the given IP address. It
32 assumes that the IP address is in a complete class A, B,
33 or C network. Many networks do not use the default net‐
34 masks, in which case an inappropriate value will be
35 returned.
36
37
38 -p, --prefix
39 Show the prefix for the given mask/IP address.
40
41
42 -n, --network
43 Display the network address for the given IP address and
44 netmask.
45
46
47 -s, --silent
48 Don't ever display error messages.
49
50
52 Erik Troan <ewt@redhat.com>
53 Preston Brown <pbrown@redhat.com>
54
56 Report bugs to our bugtracking system: http://bugzilla.red‐
57 hat.com/bugzilla.
58
60 Copyright © 1997-2001 Red Hat, Inc.
61 This is free software; see the source for copying conditions.
62 There is NO warranty; not even for MERCHANTABILITY or FITNESS
63 FOR A PARTICULAR PURPOSE.
64
65
66
67Red Hat, Inc. April 30 2001 IPCALC(1)