1IPCALC(1)                   General Commands Manual                  IPCALC(1)
2
3
4

NAME

6       ipcalc - perform simple manipulation of IP addresses
7

SYNOPSIS

9       ipcalc [OPTION]... <IP address>[/prefix] [netmask]
10
11

DESCRIPTION

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

OPTIONS

21       -c, --check
22              Validate  the  IP address under the specified family.  If
23              no address family is specified, IPv4 is assumed.
24
25
26       -4, --ipv4
27              Specify IPv4 address family (default).
28
29
30       -6, --ipv6
31              Specify IPv6 address family.
32
33
34       -b, --broadcast
35              Display the broadcast address for the  given  IP  address
36              and netmask.
37
38
39       -h, --hostname
40              Display the hostname for the given IP address.
41
42
43       -m, --netmask
44              Calculate  the  netmask  for  the  given  IP  address. It
45              assumes that the IP address is in a complete class A,  B,
46              or  C  network. Many networks do not use the default net‐
47              masks, in which  case  an  inappropriate  value  will  be
48              returned.
49
50
51       -p, --prefix
52              Show the prefix for the given mask/IP address.
53
54
55       -n, --network
56              Display  the network address for the given IP address and
57              netmask.
58
59
60       -s, --silent
61              Don't ever display error messages.
62
63

AUTHORS

65       Erik Troan <ewt@redhat.com>
66       Preston Brown <pbrown@redhat.com>
67
68
69       IPv6 supported wedged in by David Cantrell <dcantrell@redhat.com>
70

REPORTING BUGS

72       Report bugs at http://bugzilla.redhat.com/
73
75       Copyright © 1997-2008 Red Hat, Inc.
76       This is free software; see the source  for  copying  conditions.
77       There  is  NO  warranty; not even for MERCHANTABILITY or FITNESS
78       FOR A PARTICULAR PURPOSE.
79
80
81
82Red Hat, Inc.                    April 30 2001                       IPCALC(1)
Impressum