OSDN Git Service

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