Operating System - HP-UX
1752788 Members
6053 Online
108789 Solutions
New Discussion юеВ

Re: DHCP Client doesn't work on HP-UX 11i

 
SOLVED
Go to solution
TTr
Honored Contributor

Re: DHCP Client doesn't work on HP-UX 11i

Apparently the hostname must not be set in /etc/rc.config.d/
Check out and try the steps in
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=188229

And here they have a workaround to cleanup the /etc/dhcpclient.data
http://sinhass.com/HP_Tips.aspx
Pascal Larnicol
Advisor

Re: DHCP Client doesn't work on HP-UX 11i

Thx TTr,

I knew this 2 links and already tried. Always the same problem. lan0 interface is up... blah blah blah
TTr
Honored Contributor

Re: DHCP Client doesn't work on HP-UX 11i

I know that you may have tried this many times but look at the second URL above and slowly go through each step. Pay attention to each detail and verify it in your server specifically these settings
HOSTNAME=""
SUBNET_MASK[0]=255.255.255.255
no route entries
ensure that bootps is not running locally

Is this server a new install? Check the state of the installed fileset using

swlist -l fileset -a state InternetSrvcs.INETSVCS-BOOT

It should be "configured"

Also check the itrc patch site for any patches related to this.
Pascal Larnicol
Advisor

Re: DHCP Client doesn't work on HP-UX 11i

Hi again,

I booted my server in single user mode
ISL> hpux -is boot /stand/vmunix

I mounted manually filesystem /usr /tmp /opt and /var and launched this command :
/usr/lbin/dhcpclient -b lan0 -N sircct3 -p -l 8

It's better now :

On my DHCP Server, I see :
Mar 17 14:16:44 ns1 dhcpd: DHCPDISCOVER from 00:1c:c4:39:8f:1f (sircct3) via eth0
Mar 17 14:16:45 ns1 dhcpd: DHCPOFFER on 192.168.9.51 to 00:1c:c4:39:8f:1f (sircct3) via eth0
Mar 17 14:16:49 ns1 dhcpd: DHCPREQUEST for 192.168.9.51 (192.168.9.20) from 00:1c:c4:39:8f:1f (sircct3) via eth0
Mar 17 14:16:49 ns1 dhcpd: DHCPACK on 192.168.9.51 to 00:1c:c4:39:8f:1f (sircct3) via eth0

On my HP-UX Server, I think that all is OK with the dhcpclient command. Here is the end of the trace :
031710/143822 dhcpclient_133 I/002: IP address client accepted is 192.168.9.51
031710/143822 dhcpclient_133 D/040: dlpi_close: unbinding 0x800/0x001CC4398F1F0800
031710/143822 dhcpclient_133 D/040: write_message: putmsg(3,,,0) UNBIND_REQ OK (0); C/D=4/0
031710/143822 dhcpclient_133 D/040: read_message: getmsg(3,,,&1) OK; C/D=8/-1, 0x1200
031710/143822 dhcpclient_133 D/040: check_message: got expected OK_ACK
031710/143822 dhcpclient_133 D/040: write_message: putmsg(3,,,0) DETACH_REQ OK (0); C/D=4/0
031710/143822 dhcpclient_133 D/040: read_message: getmsg(3,,,&1) OK; C/D=8/-1, 0x1200
031710/143822 dhcpclient_133 D/040: check_message: got expected OK_ACK
031710/143822 dhcpclient_133 D/040: dlpi_close: close(3) OK
031710/143822 dhcpclient_133 D/010: dealloc_dhcpnode: deallocated intfid 0

But my etc/dhcpclient.data is always empty !!!
So dhcpdb2conf can't convert this file into netconf parameter...

PS : The lease of my DHCP Server is set to 120 sec.



TTr
Honored Contributor

Re: DHCP Client doesn't work on HP-UX 11i

What is the time stamp of /etc/dhcpclient.data, is it current (recent dhcpclient command) or is it old. if it is old, delete the file and try again.
Pascal Larnicol
Advisor

Re: DHCP Client doesn't work on HP-UX 11i

It is current. I tried to launch without the file /etc/dhcpclient.data, with "touch /etc/dhcpclient.data;chmod 644 /etc/dhcpclient.data", etc...
Always empty file...
ADP DSM - UNIX
New Member

Re: DHCP Client doesn't work on HP-UX 11i

I had the same problem for the last day.

I was never able to edit the files and get any results ... until

 

I removed the data entries in /etc/rc.config.d/netconf for all of my interfaces.

Basically set them to blank or two double quotes.

And made the server name "" - this is what causes the system to ask for parms on reboot.

Also - erase /etc/dhcpclient.data and /tmp/dhcpclient.log  ( I just copied /dev/null over them. )

Then rebooted the server.

 

Upon reboot - the boot script decided the server was not configured and prompted me to configure the network interfaces.  DHCP was one of the options - after choosing DHCP the server continued to boot and DHCP client worked like a champ.

 

/etc/rc.config.d/netconf - before the reboot

 

HOSTNAME=""

INTERFACE_NAME[2]=lan2
IP_ADDRESS[2]=
SUBNET_MASK[2]=
BROADCAST_ADDRESS[2]=
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]=1

 

After the reboot netconf looks as follows:

 

HOSTNAME="dhcp-10-1-9-124"

INTERFACE_NAME[2]=lan2
IP_ADDRESS[2]=10.1.9.124
SUBNET_MASK[2]=255.255.255.224
BROADCAST_ADDRESS[2]=255.255.255.255
INTERFACE_STATE[2]=""
DHCP_ENABLE[2]=1

 

Hope this help any who may follow.