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

Table Of Contents
Manually Installing and Configuring HP-UX LANDRAFT COPY
Activating Optional Network Features
Chapter 434
/etc/networks Example
The following /etc/networks entry contains a network name, network address, and an alias
name for the network neta.
neta 192.6.1 testlan
Modifying the /etc/protocols File
The /etc/protocols file associates port numbers with mnemonic names and alias names.
The /etc/protocols file contains the names and protocol numbers of all protocols known to
your local host. The netstat diagnostic uses the /etc/protocols file. If you install HP-UX
Internet Services or HP-UX NFS, those products will also use the /etc/protocols file.
NOTE You can modify this file if you have special requirements, but it is properly
configured when you receive the HP-UX LAN software.
/etc/protocols
Each protocol has a one line entry in the /etc/protocols file. Each entry in /etc/protocols
file takes the following form:
Syntax
protocol_name
protocol_num
[
alias
]...
Parameters
protocol_name
Name of the protocol. Protocol names can contain any printable character
except spaces, newline, or the comment character (#).
protocol_num
Protocol number that identifies this protocol.
alias
Common name or names for the protocol. An alias is a substitute for
protocol_name
. Alias names are optional.
/etc/protocols 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.