1NETMASK(1)                       Debian Linux                       NETMASK(1)
2
3
4

NAME

6       netmask - a netmask generation and conversion program
7

SYNOPSIS

9       netmask [ options ] spec [ spec ... ]
10

DESCRIPTION

12       This  program  accepts and produces a variety of common network address
13       and netmask formats.  Not only can it convert address and netmask nota‐
14       tions,  but it will optimize the masks to generate the smallest list of
15       rules.  This is very handy if you've  ever  configured  a  firewall  or
16       router  and  some  nasty  network administrator before you decided that
17       base 10 numbers were good places to start and end groups of machines.
18

OPTIONS

20       -h, --help
21              Print a summary of the options
22
23       -v, --version
24              Print the version number
25
26       -d, --debug
27              Print status/progress information
28
29       -s, --standard
30              Output address/netmask pairs
31
32       -c, --cidr
33              Output CIDR format address lists
34
35       -i, --cisco
36              Output Cisco style address lists
37
38       -r, --range
39              Output ip address ranges
40
41       -x, --hex
42              Output address/netmask pairs in hex
43
44       -o, --octal
45              Output address/netmask pairs in octal
46
47       -b, --binary
48              Output address/netmask pairs in binary
49
50       -n, --nodns
51              Disable DNS lookups for addresses
52

DEFINITIONS

54       A spec is an address specification, it can look like:
55
56       address
57              One address.
58
59       address1:address2
60              All addresses from address1 to address2.
61
62       address1:+address2
63              All addresses from address1 to address1+address2.
64
65       address/mask
66              A group starting at address spanning mask.
67
68       An address is an internet network address, it can look like:
69
70       ftp.gnu.org
71              An internet hostname.
72
73       209.81.8.252
74              A standard dotted quad internet address notation.
75
76       100    A decimal number (100 in this case).
77
78       0100   An octal number preceded by "0" (64 in this case).
79
80       0x100  A hexadecimal number preceded by "0x" (256 in this case).
81
82       A mask is a network mask, it can look like:
83
84       255.255.224.0
85              A dotted quad netmask (netmask will complain  if  it  is  not  a
86              valid netmask).
87
88       0.0.31.255
89              A Cisco style inverse netmask (with the same checks).
90
91       8      The number of bits set to one from the left (CIDR notation).
92
93       010    The number of bits set to one from the left in octal.
94
95       0x10   The number of bits set to one from the left in hexadecimal.
96

AUTHOR

98       netmask  was  written by Robert Stone.  Some algorithm design and opti‐
99       mization was provided by Tom Lear.  This manual  page  was  written  by
100       Robert Stone.
101

BUGS

103       Let  me  know  if you find any.  This man page is a bit more simplistic
104       than I'd like, but I've forgotten most of the groff I once knew.
105

SEE ALSO

107       ipchains(1), ipfwadm(8),  netstat(8),  route(8),  routed(8),  gated(8),
108       tcpd(8)
109
110
111
112Debian Project                    15 May 1999                       NETMASK(1)
Impressum