Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

networks(5) [php man page]

NETWORKS(5)						    Linux System Administration 					       NETWORKS(5)

NAME
networks - network name information DESCRIPTION
The file /etc/networks is a plain ASCII file that describes known DARPA networks and symbolic names for these networks. Each line repre- sents a network and has the following structure: name number aliases ... where the fields are delimited by spaces or tabs. Empty lines are ignored. The hash character (#) indicates the start of a comment: this character, and the remaining characters up to the end of the current line, are ignored by library functions that process the file. The field descriptions are: name The symbolic name for the network. Network names can contain any printable characters except white-space characters or the comment character. number The official number for this network in numbers-and-dots notation (see inet(3)). The trailing ".0" (for the host component of the network address) may be omitted. aliases Optional aliases for the network. This file is read by the route(8) and netstat(8) utilities. Only Class A, B or C networks are supported, partitioned networks (i.e., net- work/26 or network/28) are not supported by this facility. FILES
/etc/networks The networks definition file. SEE ALSO
getnetbyaddr(3), getnetbyname(3), getnetent(3), netstat(8), route(8) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU
/Linux 2008-09-04 NETWORKS(5)

Check Out this Related Man Page

networks(4)							   File Formats 						       networks(4)

NAME
networks - network name database SYNOPSIS
/etc/inet/networks /etc/networks DESCRIPTION
The networks file is a local source of information regarding the networks which comprise the Internet. The networks file can be used in conjunction with, or instead of, other networks sources, including the NIS maps networks.byname and networks.byaddr and the NIS+ table networks. Programs use the getnetbyname(3SOCKET) routines to access this information. The network file has a single line for each network, with the following information: official-network-name network-number aliases Items are separated by any number of SPACE or TAB characters. A `#' indicates the beginning of a comment. Characters up to the end of the line are not interpreted by routines which search the file. This file is normally created from the official network database maintained at the Network Information Control Center (NIC), though local changes may be required to bring it up to date regarding unofficial aliases and/or unknown networks. Network numbers may be specified in the conventional dot (`.') notation using the inet_network routine from the Internet address manipula- tion library, inet(7P). Network names may contain any printable character other than a field delimiter, NEWLINE, or comment character. SEE ALSO
getnetbyaddr(3SOCKET), getnetbyname(3SOCKET), inet(3SOCKET), nsswitch.conf(4), inet(7P) NOTES
The official SVR4 name of the networks file is /etc/inet/networks. The symbolic link /etc/networks exists for BSD compatibility. The network number in networks database is the host address shifted to the right by the number of 0 bits in the address mask. For example, for the address 24.132.47.86 that has a mask of fffffe00, its network number is 803351. This is obtained when the address is shifted right by 9 bits. The address maps to 12.66.23. The trailing 0 bits should not be specified. The network number here is different from that described in netmasks(4). For this example, the entry in netmasks would be 24.132.46.0 fffffe00. SunOS 5.11 17 Jan 2002 networks(4)
Man Page