OSDN Git Service

LDP: Update original to LDP v3.78
[linuxjm/LDP_man-pages.git] / original / man5 / networks.5
1 .\" Copyright (c) 2001 Martin Schulze <joey@infodrom.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
22 .\" %%%LICENSE_END
23 .\"
24 .\" 2008-09-04, mtk, taken from Debian downstream, with a few light edits
25 .\"
26 .TH NETWORKS 5 2008-09-04 "GNU/Linux" "Linux System Administration"
27 .SH NAME
28 networks \- network name information
29 .SH DESCRIPTION
30 The file
31 .I /etc/networks
32 is a plain ASCII file that describes known DARPA networks and symbolic
33 names for these networks.
34 Each line represents a network and has the following structure:
35
36 .RS
37 .I name number aliases ...
38 .RE
39
40 where the fields are delimited by spaces or tabs.
41 Empty lines are ignored.
42 The hash character (\fB#\fP) indicates the start of a comment:
43 this character, and the remaining characters up to
44 the end of the current line,
45 are ignored by library functions that process the file.
46
47 The field descriptions are:
48 .TP
49 .I name
50 The symbolic name for the network.
51 Network names can contain any printable characters except
52 white-space characters or the comment character.
53 .TP
54 .I number
55 The official number for this network in numbers-and-dots notation (see
56 .BR inet (3)).
57 The trailing ".0" (for the host component of the network address) may be omitted.
58 .TP
59 .I aliases
60 Optional aliases for the network.
61 .LP
62
63 This file is read by the
64 .BR route (8)
65 and
66 .BR netstat (8)
67 utilities.
68 Only Class A, B or C networks are supported, partitioned networks
69 (i.e., network/26 or network/28) are not supported by this facility.
70 .SH FILES
71 .TP
72 .I /etc/networks
73 The networks definition file.
74 .SH SEE ALSO
75 .BR getnetbyaddr (3),
76 .BR getnetbyname (3),
77 .BR getnetent (3),
78 .BR netstat (8),
79 .BR route (8)
80 .SH COLOPHON
81 This page is part of release 3.78 of the Linux
82 .I man-pages
83 project.
84 A description of the project,
85 information about reporting bugs,
86 and the latest version of this page,
87 can be found at
88 \%http://www.kernel.org/doc/man\-pages/.