Networking

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

 
SOLVED
Go to solution
Pascal Larnicol
Advisor

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

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

26 REPLIES 26
Steven E. Protter
Exalted Contributor

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
Pete Randall
Outstanding Contributor

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
Pascal Larnicol
Advisor

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


TTr
Honored Contributor
Solution

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.
Steven E. Protter
Exalted Contributor

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
Pascal Larnicol
Advisor

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

Pete Randall
Outstanding Contributor

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

Please post the output of "ifconfig lan0".


Pete

Pete
Pascal Larnicol
Advisor

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

#ifconfig lan0
ifconfig: no such interface
Pete Randall
Outstanding Contributor

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

Hmmmm.

OK - how about posting these outputs:

lanscan
ioscan -kfnClan


Pete

Pete