Operating System - HP-UX
1748111 Members
3767 Online
108758 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
Pascal Larnicol
Advisor

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

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

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

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,

TTr
Honored Contributor

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

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...
TTr
Honored Contributor

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

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.

TTr
Honored Contributor

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

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]=