| United States-English |
|
|
|
![]() |
Installing and Administering LAN/9000 Software > Chapter 3 Manually Installing and Configuring LAN/9000Creating 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. LAN/9000 diagnostics netstat and ping use /etc/hosts. If you install Internet Services/9000 or NFS/9000, 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 bring it up-to-date by adding unofficial aliases or unknown hosts, including your own host. A system is known by several names, each with its own purpose: 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 hostname host3
Each node in the /etc/hosts file has a one line entry. Each entry in the file must be in 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 0444 (-r—r—r—) access permission. For more information on /etc/hosts, refer to the hosts(4) man page in the HP-UX Reference Pages.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||