HP-UX HB v13.00 Ch-09 - Networking Basics

HP-UX Handbook Rev 13.00 Page 13 (of 27)
Chapter 09 Network Basics
October 29, 2013
1000Base-T Dual-port Adapter
To configure the network on your system you should also check/edit the file /etc/hosts.
It should contain at least the line “127.0.0.1 localhost loopback” and one additional line for each
local IP address. For interoperability with other name services you should use the following
syntax:
<IP address> <full qualified name> <one or more aliases>
Even if it is not mandatory, it is strongly recommended to create/activate the file
/etc/nsswitch.conf to prevent problems caused by the fact that different versions of libc
(libc.1, libc.2) behave differently from the side effects of IPv6 enablement.
In a standard IPv4 environment the following entries in nsswitch.conf should be present:
hosts: files [NOTFOUND=continue] dns
ipnodes: files
Replace dns by nis or ldap or add some additional name resolution services if needed;
# man nsswitch.conf
If your system uses DNS, (many applications today will use name resolution) check/create the
file /etc/resolv.conf.
It has to contain a domain or search statement, which defines the local domain name(s) and up to
three lines with nameserver definitions. Compare with this simple example:
# cat /etc/resolv.conf
search deu.hp.com emea.hpqcorp.com
nameserver 16.58.37.124
The init process will use this information during startup (/sbin/rc2.d/S*) to configure the NIC
correctly. It will be done using the commands:
ifconfig - initialize interface
route - add routes
lanadmin - change speed/duplex settings
Starting with 11.31 the nwmgr command became available.
nwmgr - network interface management command for LAN and RDMA interfaces.
# nwmgr --get
Name/ Interface Station Sub- Interface Related
ClassInstance State Address system Type Interface