]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man5/networks.5
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man5 / networks.5
CommitLineData
ed26d24c
MK
1.\" Copyright (c) 2001 Martin Schulze <joey@infodrom.org>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
6a717e5e 4.\"
ed26d24c
MK
5.\" 2008-09-04, mtk, taken from Debian downstream, with a few light edits
6.\"
4c1c5274 7.TH networks 5 (date) "Linux man-pages (unreleased)"
ed26d24c
MK
8.SH NAME
9networks \- network name information
10.SH DESCRIPTION
11The file
12.I /etc/networks
13is a plain ASCII file that describes known DARPA networks and symbolic
14names for these networks.
15Each line represents a network and has the following structure:
2dad4c59 16.PP
ed26d24c
MK
17.RS
18.I name number aliases ...
19.RE
2dad4c59 20.PP
ed26d24c
MK
21where the fields are delimited by spaces or tabs.
22Empty lines are ignored.
23The hash character (\fB#\fP) indicates the start of a comment:
24this character, and the remaining characters up to
25the end of the current line,
26are ignored by library functions that process the file.
2dad4c59 27.PP
ed26d24c 28The field descriptions are:
ed26d24c
MK
29.TP
30.I name
31The symbolic name for the network.
1661524f 32Network names can contain any printable characters except
ed26d24c
MK
33white-space characters or the comment character.
34.TP
35.I number
36The official number for this network in numbers-and-dots notation (see
37.BR inet (3)).
15f0b7af
AC
38The trailing ".0" (for the host component of the network address)
39may be omitted.
ed26d24c
MK
40.TP
41.I aliases
42Optional aliases for the network.
dd3568a1 43.PP
ed26d24c
MK
44This file is read by the
45.BR route (8)
46and
47.BR netstat (8)
48utilities.
735334d4 49Only Class A, B, or C networks are supported, partitioned networks
dd8e0737 50(i.e., network/26 or network/28) are not supported by this file.
ed26d24c
MK
51.SH FILES
52.TP
53.I /etc/networks
54The networks definition file.
47297adb 55.SH SEE ALSO
ed26d24c
MK
56.BR getnetbyaddr (3),
57.BR getnetbyname (3),
58.BR getnetent (3),
3e5c319e
MK
59.BR netstat (8),
60.BR route (8)