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 LAN Administrator's Guide: HP-UX 11i v2 > Chapter 3 Manually Installing and Configuring HP-UX LAN

Activating Optional Network Features

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To activate special network features, you may also want to configure /etc/services, /etc/networks, and /etc/protocols. Each of these steps is optional.

NOTE: If you are using NIS, modifications to the /etc/services, /etc/networks and /etc/protocols files should only be made on the NIS Master Server. Refer to the NFS Services Administrator’s Guide for more information

Modifying the /etc/services File

The /etc/services file associates port numbers with mnemonic service names and alias names. The /etc/services file contains the names, protocol names, and port numbers of all services known to your local host. The netstat diagnostic uses the /etc/services file.

If you install HP-UX Internet Services or HP-UX NFS, these products will also use the /etc/services file.

NOTE: You can modify this file if you have special requirements, but it is properly configured when you receive HP-UX LAN.

/etc/services

Each service has a one line entry in the /etc/services file. Each entry in /etc/services file takes the following form:

Syntax

service_name port_num/protocol [alias]...

Parameters

service_name

Name of the service. Service names can contain any printable character except spaces, newline, or the comment character (#).

port_num / protocol

port_num is the protocol port number assigned to this service. All requests for this service must use this port number. protocol is the protocol name, as listed in /etc/protocols, that the service uses.

alias

Common name or names for the service. An alias is a substitute for service_name. Alias names are optional.

/etc/services 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/services Permissions

The /etc/services file should be owned by user bin, group bin, and it should have 0x444 (-r--r--r--) access permission.

Refer to the /etc/services file for examples of actual format and contents. For more information on /etc/services, refer to the services(4) man page in the HP-UX Reference Pages.

/etc/services Example

The following /etc/services entry contains the service name, port number, protocol name, and alias name for the shell service.

shell		 514/tcp cmd	 #remote command, no passwd used

Creating the /etc/networks File

The /etc/networks file associates network addresses with mnemonic names and alias names. The /etc/networks file contains the name and address of known internet networks with which your host can communicate. The HP-UX LAN diagnostic netstat and the route command use the /etc/networks file. You must configure this file for your host if you want route or netstat to use symbolic network names instead of addresses.

You can create an /etc/networks file two ways:

  • From scratch, entering the known nodes in the format shown below.

  • By copying the file from another node.

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.

/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.

  • Blank line entries are allowed.

  • Only one entry per line is allowed.

/etc/protocols Permissions

The /etc/protocols file should be owned by user bin, group bin, and it should have 0x444 (-r--r--r--) access permission.

Refer to the /etc/protocols file for examples of actual format and contents. For more information on /etc/protocols, refer to the protocols(4) man page in the HP-UX Reference Pages.

/etc/protocols Example

The following /etc/protocols entry contains a protocol name, protocol number and an alias name.

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