Operating System - HP-UX
1833207 Members
2982 Online
110051 Solutions
New Discussion

Re: How to config DHCP client in HPUX 11.0?

 
Platinum
Occasional Advisor

How to config DHCP client in HPUX 11.0?

I can't enable DHCP in my workstation, here's the method I tried:
1. Change DHCP_ENABLE to 1 and INTERNET BROADCAST ADDRESS to 255.255.255.255 in /etc/rc.config.d/netconf;
2. Enable DHCP in sam.
But I failed, it's still using the static IP I assigned before.
Thx!
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: How to config DHCP client in HPUX 11.0?

Did you reboot?


Personally I find that using DHCP on unix servers and workstations a little weird. For M$ PC's it makes sense!

live free or die
harry
Live Free or Die
Steven E. Protter
Exalted Contributor

Re: How to config DHCP client in HPUX 11.0?

I concur with Mr. Brown. A server needs a fixed IP address for a lot of reasons. Reboot is the fast way to test the change, otherwise, from the console you can bring down networking and bring it up again.

init 1
wait a while
init 3


Also take a looka at /etc/rc.config.d/netconf

A fixed IP addy in here will probably override DHCP settings.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Platinum
Occasional Advisor

Re: How to config DHCP client in HPUX 11.0?

Of course I rebooted the workstation, but the DHCP seems do not work, and I found that in /etc/rc.config.d/netconf, the value of DHCP_ENABLE is 0.
Ravi_8
Honored Contributor

Re: How to config DHCP client in HPUX 11.0?

Platinum
Occasional Advisor

Re: How to config DHCP client in HPUX 11.0?

Sorry, the link is bad.
Would you please post it again?
Ravi_8
Honored Contributor

Re: How to config DHCP client in HPUX 11.0?

Hi, again

Check /etc/inetd.conf for the bootps entry, is it commented out ?

uncomment this and verify its setup in sevices and
inetd.conf. do an inetd -c and it should add the service correctly.

try a dhcpclient -b lan0 -u, it should create an /etc/dhcpclient.data file.

Finally =>

Edit /etc/rc.config.d/netconf and reset
the DHCP_ENABLE flag to 1
2) Edit /etc/rc.config.d/netconf and remove
the hostname for this system. The hostname
field should just be ""
3) Remove all dhcp* files that may exist from /etc
4) In /etc, run touch dhcpclient.data so that a 0 byte
file is created.
5) Reboot the system, and it should run through the setup
script. You may also have a failure after the auto_parms
script has rebooted the system since it may force you to
put in an NIS domain. You will need to let the system
timeout and then login.
6) After logging into the system, edit the
/etc/rc.config.d/namesvrs file and set the NIS_CLIENT=
field to "" instead of 1.
7) Reboot and the system should now boot up properly.
never give up