Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > N

networks(4)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

networks — network name data base

DESCRIPTION

The /etc/networks file associates Internet (IP) addresses with official network names and aliases. This allows the user to refer to a network by a symbolic name instead of using an Internet address. For each network, a single line should be present with the following information:

<official network name> <network number> <aliases>

Aliases are other names under which a network is known. For example:

loop 192.46.4 testlan

where the network named loop is also called testlan.

A line cannot start with a blank (tab or space character). Items are separated by any number or combination of blanks. A # character indicates the beginning of a comment. Characters from the # up to the end of the line are not interpreted by routines which search the file. Trailing blanks are allowed at the end of a line. For the Internet, 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 can be specified in conventional Internet dot notation using the inet_network() routine from the internet address manipulation library (see inet(3N). Network names can contain any printable character other than a white space, new-line, or comment character.

EXAMPLES

See /etc/networks.

AUTHOR

networks was developed by the University of California, Berkeley.

FILES

/etc/networks

SEE ALSO

getnetent(3N).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.