| 1 |
.\" Copyright 2001, Martin Schulze <[email protected]> |
| 2 |
.\" Copyright, the authors of the Linux man-pages project |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
.\" |
| 6 |
.TH networks 5 2026-02-08 "Linux man-pages 6.18" |
| 7 |
.SH NAME |
| 8 |
networks \- network name information |
| 9 |
.SH DESCRIPTION |
| 10 |
The file |
| 11 |
.I /etc/networks |
| 12 |
is a plain ASCII file that describes known DARPA networks and symbolic |
| 13 |
names for these networks. |
| 14 |
Each line represents a network and has the following structure: |
| 15 |
.P |
| 16 |
.RS |
| 17 |
.I name number aliases .\|.\|. |
| 18 |
.RE |
| 19 |
.P |
| 20 |
where the fields are delimited by spaces or tabs. |
| 21 |
Empty lines are ignored. |
| 22 |
The hash character |
| 23 |
.RB ( # ) |
| 24 |
indicates the start of a comment: |
| 25 |
this character, and the remaining characters up to |
| 26 |
the end of the current line, |
| 27 |
are ignored by library functions that process the file. |
| 28 |
.P |
| 29 |
The field descriptions are: |
| 30 |
.TP |
| 31 |
.I name |
| 32 |
The symbolic name for the network. |
| 33 |
Network names can contain any printable characters except |
| 34 |
white-space characters or the comment character. |
| 35 |
.TP |
| 36 |
.I number |
| 37 |
The official number for this network in numbers-and-dots notation (see |
| 38 |
.BR inet (3)). |
| 39 |
The trailing ".0" (for the host component of the network address) |
| 40 |
may be omitted. |
| 41 |
.TP |
| 42 |
.I aliases |
| 43 |
Optional aliases for the network. |
| 44 |
.P |
| 45 |
This file is read by the |
| 46 |
.BR route (8) |
| 47 |
and |
| 48 |
.BR netstat (8) |
| 49 |
utilities. |
| 50 |
Only Class A, B, or C networks are supported, partitioned networks |
| 51 |
(i.e., network/26 or network/28) are not supported by this file. |
| 52 |
.SH FILES |
| 53 |
.TP |
| 54 |
.I /etc/networks |
| 55 |
The networks definition file. |
| 56 |
.SH SEE ALSO |
| 57 |
.BR getnetbyaddr (3), |
| 58 |
.BR getnetbyname (3), |
| 59 |
.BR getnetent (3), |
| 60 |
.BR netstat (8), |
| 61 |
.BR route (8) |