Re: HP-UX as DHCP Client Hi Ross
> I have a Netgear DSL/firewall/router. It acts as a DHCP server but I can't
> get HP-UX 11.00 to find it.
Doesn't it find ist or did it boot with wrong values? Assumingly you
have a /etc/dhcpclient.data on the clients. Which prevents thath the
machine works with dynamic DHCP.
Hey, is there really no instruction in the HPUX FAQ about setting up an
dhcp client? So here we go!
Basic instructions, for setting up a HPUX dhcp client
1.)
The name resolution for localhost/loopback must work without any
network. So:
/etc/hosts
==========
127.0.0.1 localhost loopback
/etc/nsswitch.conf
==================
hosts: files [NOTFOUND=continue] dns
2.) Setup the rc-config file for dhcp:
/etc/rc.config.d/netconf:
=========================
HOSTNAME=""
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=
SUBNET_MASK[0]=255.255.255.255
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1
GATED=0
GATED_ARGS=""
RDPD=0
RARP=0
=========================
PAY ATTENTION: In this file the hostname ist NOT set, the subnetmask is
set to 255.255.255.255 and all route entries are removed!
3.) Remove all files, that start with dhcp
# rm /etc/dhcp*
4.) create a blank /etc/dhcpclient.data with permissions 644:
# touch /etc/dhcpclient.data
# chmod 644 /etc/dhcpclient.data
5.)in /etc/inetd.conf comment the line which starts with "bootps"
6.)Create a rc file, that blanks out the /etc/dhcpclient.data at each
shutdown. The link should be a K-Link in /sbin/rc0.d/
(For instructions how to create a working rc script see
/sbin/init.d/template)
Good Luck, Florian |