]>
Commit | Line | Data |
---|---|---|
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 | .\" | |
45186a5d | 7 | .TH NETWORKS 5 2008-09-04 "Linux man-pages (unreleased)" |
ed26d24c MK |
8 | .SH NAME |
9 | networks \- network name information | |
10 | .SH DESCRIPTION | |
11 | The file | |
12 | .I /etc/networks | |
13 | is a plain ASCII file that describes known DARPA networks and symbolic | |
14 | names for these networks. | |
15 | Each 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 |
21 | where the fields are delimited by spaces or tabs. |
22 | Empty lines are ignored. | |
23 | The hash character (\fB#\fP) indicates the start of a comment: | |
24 | this character, and the remaining characters up to | |
25 | the end of the current line, | |
26 | are ignored by library functions that process the file. | |
2dad4c59 | 27 | .PP |
ed26d24c | 28 | The field descriptions are: |
ed26d24c MK |
29 | .TP |
30 | .I name | |
31 | The symbolic name for the network. | |
1661524f | 32 | Network names can contain any printable characters except |
ed26d24c MK |
33 | white-space characters or the comment character. |
34 | .TP | |
35 | .I number | |
36 | The official number for this network in numbers-and-dots notation (see | |
37 | .BR inet (3)). | |
15f0b7af AC |
38 | The trailing ".0" (for the host component of the network address) |
39 | may be omitted. | |
ed26d24c MK |
40 | .TP |
41 | .I aliases | |
42 | Optional aliases for the network. | |
dd3568a1 | 43 | .PP |
ed26d24c MK |
44 | This file is read by the |
45 | .BR route (8) | |
46 | and | |
47 | .BR netstat (8) | |
48 | utilities. | |
735334d4 | 49 | Only 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 | |
54 | The 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) |