Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0 HP 9000 Computers Edition 1

Appendix A 213
Configuring for a DHCP Server
Setting Up a DHCP Server
d. Highlight the card you wish to enable DHCP on, go to the Actions
pull-down menu and select Configure.
e. Single click the Enable DHCP button.
NOTE If Enable DHCP appears grayed-out, you will need to use the alternate
method for enabling DHCP described below.
f. Single click OK and exit SAM.
Your system will now begin using DHCP after the next reboot. Please
note that all of the current networking parameters will be overridden
with new values supplied by the DHCP server. If for some reason the
system cannot contact a DHCP server during the next reboot, it will
continue to use its current networking parameters.
If you suspect that your system had problem contacting the DHCP
server, you can examine the auto_parms log file
(/etc/auto_parms.log) to determine if the lease request was
successful.
2. The second method for enabling DHCP over a particular network
interface is use a text editor (such as vi or emacs) to edit the
/etc/rc.config.d/netconf file. In the header of this file, you will
find some brief instructions regarding a variable named
DHCP_ENABLE. This variable is tied by an index number to an
individual network interface. For example, in the following block:
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=15.1.50.76
SUBNET_MASK[0]=255.255.248.0
BROADCAST_ADDRESS[0]=""
DHCP_ENABLE[0]=1
Here, the variables are instructing the system to use the lan0
interface when attempting to contact a DHCP server. Similarly, if the
lease request is successful, the above IP_ADDRESS variable would be
updated to reflect the new value supplied by the DHCP server.
If the DHCP_ENABLE variable was set to 0 or if the variable did not
exist, no DHCP operations would be attempted over the
corresponding network interface.
As noted in the first method of enabling DHCP, if the variable
DHCP_ENABLE does not exist for a particular interface, the SAM tool
will display a grayed out DHCP enable button.