| United States-English |
|
|
|
![]() |
HP-UX LAN Administrator's Guide: HP-UX 11i v2 > Chapter 3 Manually
Installing and Configuring HP-UX LANCreating the /etc/hosts File |
|
You must edit the /etc/hosts file to add an IP address and hostname for the LAN card that you are installing.
The /etc/hosts file associates IP host addresses with mnemonic host names and alias names. It contains the names of other nodes in the network with which your system can communicate. HP-UX LAN diagnostics netstat and ping use /etc/hosts. If you install HP-UX Internet Services or HP-UX NFS, those products also use the /etc/hosts file. You can create an /etc/hosts file three ways:
If you copy an /etc/hosts file from another host, you may need to update the file by adding unofficial aliases or unknown hosts, including your own host. A system is known by several names, each with its own purpose: System name: Used for cluster configuration and UUCP communication. Host name and aliases: Used for most network communication. This might be a fully qualified domain name including the DNS domain. For example: turtle.bnio.nmt.edu HP recommends that you try to keep these names as consistent as possible, within their limitations. This will help to minimize confusion. The examples below show how a system with the name, host3, might be referenced in the /etc/hosts and other system and networking files and commands: uname -S host3
Each node has a one line entry in the /etc/hosts file. Each entry in the file takes the following form:
When creating the /etc/hosts file, follow these rules:
HP recommends that the /etc/hosts file be owned by user root and have 0x444 (-r--r--r--) access permission. For more information on /etc/hosts, refer to the hosts(4) man page in the HP-UX Reference Pages.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||