HP-UX LAN Administrator's Guide (Feburary 2007)

Table Of Contents
DRAFT COPY Manually Installing and Configuring HP-UX LAN
Activating Optional Network Features
Chapter 4 33
If you copy an /etc/networks file from another host, you may need to update the file by
adding unofficial aliases or unknown networks, including your own network.
/etc/networks
Each network has a one line entry in the /etc/networks file. Each entry in /etc/networks
file takes the following form:
Syntax
network_name
network_address
[
alias
]...
Parameters
network_name
Name of the internet network. Network names can contain any printable
character except spaces, newline, or the comment character (#).
network_address
Network address that uniquely identifies the network. This address can be
a subnet or supernet address. It may also contain the netmask translation.
network_address
must be in dot notation. See Chapter 6 for details on
network addresses.
alias
Common name or names for the network. An alias is a substitute for
network_name
. Alias names are optional.
/etc/networks Format
Lines cannot start with a blank or tab character.
Fields can have any number of blanks or tab characters separating them.
Comments are allowed and designated by a pound sign (#) character preceding the
comment text.
Trailing blank and tab characters are allowed.
Blank line entries are allowed.
Only one entry per line is allowed.
/etc/networks Permissions
The /etc/networks file should be owned by user bin, group bin, and it should have 0x444
(-r--r--r--)access permission.
For more information on /etc/networks, refer to the networks(4) man page in the HP-UX
Reference Pages.