The process of manually configuring networking on an HP is very similar to doing so under Solaris or on an SGI with a couple exceptions. The /etc/hosts file must be edited and should look something like this:
129.79.149.254 hper2-149.ucs.indiana.edu hper2-149
129.79.149.123 ohmy.uwsg.indiana.edu ohmy
129.79.1.9 iugate
127.0.0.1 localhost loopback
The first line contains the IP address, full name and alias of the default router. The second line contains the host machines IP address, full name and alias. The third line is an entry for a DNS server. The final line is the standard loopback address for all machines using TCP/IP.
The default gateway IP address must be added to /usr/sbin/route with the following command:
/usr/sbin/route add default 129.79.149.254 1
The environmental variables in /etc/rc.config.d/netconf must be set:
HOSTNAME="full name of machine
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]="IP address of machine"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]=
LANCONFIG_ARGS[0]="ether"
ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]="IP address of default router"
ROUTE_COUNT[0]="1"
Another program, /sbin/set_parms is automatically run when the system is first booted. This program sets certain system parameters such as the time zone, hostname and IP address. If the hostname or IP address are changed after the system is up this script will have to be run manually to change the system parameters. The script is called with the following command:
# /sbin/set_parms option
Options include:
addl_network is used to set the subnet mask, default gateway, DNS and NIS. font_c-s refers to the network font service.
The program is interactive and fairly self-explanatory. Here is an example of what appears on the screen after /sbin/set_parms addl_network has been entered.
_______________________________________________________________________________ You may configure some additional network parameters at this time: * Subnetwork Mask and Default Gateway * Domain Name System (DNS) * Network Information Service (NIS) Your local network administrator can tell you which if any of these parameters should be configured for your system, and provide you the appropriate values. If you do not have these values now, you can configure them later. _______________________________________________________________________________ Do you want to configure these additional network parameters? Press [y] for yes or [n] for no, then press [Return] _______________________________________________________________________________ Additional Network Parameters: Subnetwork Mask and Default Gateway This section enables you to specify the subnetwork mask and default network gateway. This information is necessary if your network has gateways and you wish to communicate beyond your local subnetwork. You will need to know the following information: * Subnetwork mask * Default gateway host name * Default gateway IP address _______________________________________________________________________________ Do you wish to specify this information? Press [y] for yes or [n] for no, then press [Return] _______________________________________________________________________________ Additional Network Parameters: Subnetwork Mask and Default Gateway Enter the subnetwork mask and default gateway information. Example: Subnetwork mask: 255.255.255.0 Gateway host name: lab_gw Gateway IP address: 129.79.149.1 Current Settings: -> Subnetwork mask: 255.255.255.0 Gateway host name: hper2-149.ucs.indiana.edu Gateway IP address: 129.79.149.254 _______________________________________________________________________________
The system will need to be rebooted for changes to take affect.
These changes can also be made using SAM.