DHCP Client doesn't work on HP-UX 11i (1209 Views)
Reply
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 1 of 27 (1,209 Views)
Accepted Solution

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

[ Edited ]

Hi everybody,

I can't configure my HPUX system as a DHCP client. I tried everything...

In my /etc/rc.config.d/netconf , i have DHCP_ENABLE[0]=1 and auto_parms tells me :
checking network for DHCP server (see /etc/auto_parms.log)
In my /etc/auto_parms.log, i have :
dhcpclient returned general error on: lan0

I tried to do this command :
/usr/lbin/dhcpclient -b lan0 -p -l 8
and i have :
...
...
031210/150236 dhcpclient_17508 D/040: get_ppa_info: Found lan0 in ppa info list
031210/150236 dhcpclient_17508 D/040: extract_ppa: PPA is 0
031210/150236 dhcpclient_17508 D/040: dlpi_close: close(4) OK
031210/150236 dhcpclient_17508 D/002: lan0 interface is up, won't get new IP for it.

031210/150236 dhcpclient_17508 E/002: dhcpclient exiting with status of 4

What means "lan0 interface is up, won't get new IP for it." ?

Any help would be appreciated.

Regards,

 

P.S. This thread has been moved from HP-UX>System Administration to HP-UX > networking. -HP Forum Moderator

Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 27 (1,206 Views)

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

Shalom,

A very common cause of this problem is the lack of a DHCP server to hand out an IP address.

With the exception of workstations, most HP-UX systems are servers and really would benefit from fixed IP address anyway.

Is there a DHCP server on the same subnet as the HP-UX system?

SEP
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
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 3 of 27 (1,206 Views)

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

>What means "lan0 interface is up, won't get new IP for it." ?

I would guess that it means that lan0 has already been enabled and configured, therefore DHCP can't re-configure it. Check your netconf for lan0 entries.


Pete

Pete
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 4 of 27 (1,206 Views)

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

Thanks for your replies,

Yes i have a DHCP Server (Linux) on the same subnet and I'm sure that it works (no problem with Windows and Linux Servers)

I check and recheck /etc/rc.config.d/netconf

Anyways, this file is used by auto_parms only


Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 5 of 27 (1,207 Views)

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

> I check and recheck /etc/rc.config.d/netconf

Well what did you find in it?

As Pete said if there are IP/subnet/gateway settings for lan0 they will be used to initialize lan0 and the dhcp client will fail as the error indicates.

> Anyways, this file is used by auto_parms only

Not quite! auto_parms (or set_parms) will *write* to this file but this file is *used* by the /sbin/init.d/net script to initialize the network when the server boots up.
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 6 of 27 (1,206 Views)

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

Shalom again,

If Pete is right and I suspect he is, the lan interface has an ip address and you are going to have to bring networking down and take care of this issue.

Again, if this is not a workstation, I question the need to do DHCP. Servers need fixed ip addresses so they can be found, if necessary by IP address.

SEP
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
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 7 of 27 (1,206 Views)

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

Thanks again for your replies

Here is my /etc/hosts :
127.0.0.1 localhost

Here is my /etc/rc.config/d/netconf :
HOSTNAME=sircct3
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=
SUBNET_MASK[0]=
BROADCAST_ADDRESS[0]=
INTERFACE_STATE[0]=
DHCP_ENABLE[0]=1
GATED=0
GATED_ARGS=""
RDPD=0
RARPD=0

Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 8 of 27 (1,206 Views)

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

Please post the output of "ifconfig lan0".


Pete

Pete
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 9 of 27 (1,206 Views)

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

#ifconfig lan0
ifconfig: no such interface
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 10 of 27 (1,206 Views)

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

Hmmmm.

OK - how about posting these outputs:

lanscan
ioscan -kfnClan


Pete

Pete
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 11 of 27 (1,204 Views)

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

My /etc/auto_parms.log :

Mar 12 17:03:45: Mounting filesystems ...
Mar 12 17:03:45: dhcpclient returned general error on: lan0
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 12 of 27 (1,204 Views)

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

#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/1/2/0 0x001CC4398F1F 0 UP lan0 snap0 1 ETHER Yes 119
#ioscan -kfnClan
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
lan 0 0/1/2/0 igelan CLAIMED INTERFACE HP PCI 1000Base-T Core
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 13 of 27 (1,204 Views)

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

What is really puzzling about that is that ifconfig lan0 reports no such interface, yet both lanscan and ioscan report that there is a lan0. You did type "ifconfig lan0" with a zero and not the letter "O", didn't you?


Pete

Pete
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 14 of 27 (1,204 Views)

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

Hi,

For Pete : Yes i do a "ifconfig lan0" with a zero (0) and always the same answer :
ifconfig: no such interface

Regards,

Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 15 of 27 (1,204 Views)

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

Check if these files exist and contain any additional info
/etc/auto_parms.debug
/tmp/dhcpclient.log

Delete if they exist any backup copies of netconf in /etc/rc.config.d. The netconf file is used explicitly by auto_parms and /sbin/init.d/net but you never know what else may be using the config variables.

Try, temporarily, setting an IP/mask/gateway manually by setting the /etc/rc.confog.d/netconf variables. This way you will know if there is a problem with lan0 or with the dhcpclient.
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 16 of 27 (1,205 Views)

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

Hi TTr,

File /tmp/dhcpclient.log exists but is empty.
File /etc/auto_parms.debug doesn't exist.

I have no any backup copies of netconf file in /etc/rc.config.d/

If I configure netconf with a static IP, that's work so there is a problem with the dhcpclient...
Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 17 of 27 (1,204 Views)

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

I wonder if changing the DHCP_CLIENT_LOGLEVEL=2 in /sbin/auto_parms will generate more information in /etc/auto_parms.debug. I could not find any information on it. Try setting it to 3 first and then try larger numbers.

Also ther is a MAIL_TARGET=root in auto_parms, check if root gets any emails from this.

I might switch my unix server to dhcp later on if I get some time.
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 18 of 27 (1,204 Views)

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

I changed DHCP_CLIENT_LOGLEVEL=8 in /sbin/auto_parms.
After reboot, I have :
/sbin/auto_parms: checking network for DHCP server (see /etc/auto_parms.log)

031510/150236 dhcpclient_1960 D/010: signal_prep: signal handlers installed
031510/150236 dhcpclient_1960 D/010: alloc_dhcpnode: allocated intfid 0 [0x0001]
.....
031510/150236 dhcpclient_1960 D/002: lan0 interface is up, won't get new IP for it.

031510/150236 dhcpclient_1960 E/002: dhcpclient exiting with status of 4

The same thing with /usr/lbin/dhcpclient -b lan0 -p -l 8

Always this msg : lan0 interface is up :/
I become crazy.

Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 19 of 27 (1,204 Views)

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

Check if there are any other configuration settings for lan0 in the /etc/rc.config.d files
hpbtlanconf
hpetherconf
hpigelanconf

How far does the server get in the booting process when you get the dhcplient errors? Does it start the rc sequence? Check /etc/rc.log for any other errors.
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 20 of 27 (1,204 Views)

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

Yes, in /etc/rc.config.d/hpigelanconf
i have :
HP_IGELAN_INTERFACE_NAME[0]=lan0
HP_IGELAN_STATION_ADDRESS[0]=
HP_IGELAN_SPEED[0]=auto_on
HP_IGELAN_MTU[0]=1500
HP_IGELAN_FLOW_CONTROL[0]=1
HP_IGELAN_AUTONEG[0]=
HP_IGELAN_SEND_COAL_TICKS[0]=150
HP_IGELAN_RECV_COAL_TICKS[0]=0
HP_IGELAN_SEND_MAX_BUFS[0]=10
HP_IGELAN_RECV_MAX_BUFS[0]=1
HP_IGELAN_SEND_CKO[0]=
HP_IGELAN_RECV_CKO[0]=
HP_IGELAN_DIAG_THRESH[0]=
Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 21 of 27 (1,200 Views)

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
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 22 of 27 (1,201 Views)

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
Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 23 of 27 (1,200 Views)

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.
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
Advisor
Pascal Larnicol
Posts: 13
Registered: ‎03-12-2010
Message 24 of 27 (1,200 Views)

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.



Please use plain text.
Honored Contributor
Honored Contributor
TTr
Posts: 3,434
Registered: ‎01-22-2008
Message 25 of 27 (1,200 Views)

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.
I do not reply to forumers who 1) consistently don't assign points, 2) ask for step-by-step instructions for a topic but appear to have no IT experience and make no effort to learn. Some exceptions for newcomers and special topics.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation