Operating System - HP-UX
1834828 Members
1877 Online
110070 Solutions
New Discussion

Re: DHCP Client problems, system hangs on boot!

 
Ronnie Lee
New Member

DHCP Client problems, system hangs on boot!

Hi everyone. This is my first time here, I posted this in the system admin section by accident, sorry for that.

I have been trying to figure out whats wrong for the past few hours, but with no luck. I have searched all over the forums and tried many things, but no luck.

I enabled DHCP through the /etc/rc.config.d/netconf file. I removed all dhcp* files in /etc, and did a #touch /etc/dhcpclient.data, and moved my old netconf files to /tmp. in /etc/host i have only the localhost loopback. I know my client communicated with the dhcp server because I left the hostname and ip address in netconf empty, and after I rebooted, and after my error messages, the hostname and ip address were filled in correctly (checked through single user mode). The error I'm getting before the system hangs/freezes is something like this:

dhcpclient_195 E/820: sock_open: socket (AF_INET, SOCK_DGRAM,17) Failed (-1)
errno 223 indicates operation not supported

I got 2 of those messages before nothing happens. When I shutdown the machine through the power button, it says:

dhcpclient exitnig with status of 9

I have to boot up in single user mode in order to boot my system back up. Please help! TIA!
2 REPLIES 2
Kent Ostby
Honored Contributor

Re: DHCP Client problems, system hangs on boot!

Ronnie --

I don't have an answer for the DHCP part of this issue, but the boot part I can help you out with:

You can get past the DHCP hang on boot by using the cntl-shift-| construct.

This should break you past and get you to a login but it wont run all of the rc scripts.

Once you get in (either via single user mode or the above way), go back into /etc/rc.config.d/netconf and turn off DHCP and do a reboot.

Then you'll be able to get up in multi-user mode at least while some more DHCP savvy people here help you out with that part of the problem.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ronnie Lee
New Member

Re: DHCP Client problems, system hangs on boot!

Kent,

I did what you said, and it worked. Does that mean that DHCP still worked or not? DHCP_ENABLE=1 is still in the netconf file. Hostname and IP was set correctly. Thanks