Operating System - HP-UX
1832506 Members
4799 Online
110043 Solutions
New Discussion

Re: how to config a W/S as a DHCP client?

 
SOLVED
Go to solution
discoverer
Frequent Advisor

how to config a W/S as a DHCP client?

Hi All,

Currently my network use the fixed IPs.

Today I want to test the DHCP service:
I setuped a HP W/S as a DHCP server, it was ok to assign temporary IPs for new W/Ss, during OS installation using IGNITE.
But I failed to config an old W/S(used a fixed IP currently) as a DHCP client.
(
Note:
1. server & client are in the same subnet
2. I only set "DHCP_ENABLE[0]=1" in the old W/S's /etc/rc.config.d/netconf, then reboot.
)

Are there any other things I should do?

Thanks in advance !

/Listener
Listen, then discover, then succeed!
3 REPLIES 3
Marcel Boon
Trusted Contributor
Solution

Re: how to config a W/S as a DHCP client?

Maybe this helps...

Problem Description

I need to use DHCP (Dynamic Host Configuration Protocol)
on an already-networked workstation to retrieve a new IP
address. Despite having already enabled the DHCP_ENABLE=1
flag in /etc/rc.config.d/netconf, I never seem to get a DHCP
address.

What causes this problem?

Configuration Info

Operating System - HP-UX
Version - 10.20
Hardware System - HP 9000
Series - 700

Solution

Since the workstation already is partially configured, the
auto_parms script seems to ignore the DHCP setting in the
netconf file.

The following workaround can be used to obtain a DHCP address:

1) 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.

mb...
See the man pages
Hari Prasad_2
New Member

Re: how to config a W/S as a DHCP client?

Hi All,

Even i got the same error and i tried all of
the above things but it is not working in HP-UX 11.0, please suggest me any other things to change the configuration

Thanks in advance !
Johannes Raspe
New Member

Re: how to config a W/S as a DHCP client?

Hi,

look here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=188229

The thing with "bootps" in "/etc/inetd.conf" seems to be the problem.

Following these instructions everything went well for me.

Johannes