- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DHCP Client doesn't work on HP-UX 11i
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 06:08 AM - last edited on тАО04-20-2014 03:32 PM by Lisa198503
тАО03-12-2010 06:08 AM - last edited on тАО04-20-2014 03:32 PM by Lisa198503
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
Solved! Go to Solution.
- Tags:
- DHCP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 06:16 AM
тАО03-12-2010 06:16 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 06:18 AM
тАО03-12-2010 06:18 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 06:42 AM
тАО03-12-2010 06:42 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 06:57 AM
тАО03-12-2010 06:57 AM
SolutionWell 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 07:27 AM
тАО03-12-2010 07:27 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 07:47 AM
тАО03-12-2010 07:47 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:09 AM
тАО03-12-2010 08:09 AM
Re: DHCP Client doesn't work on HP-UX 11i
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:12 AM
тАО03-12-2010 08:12 AM
Re: DHCP Client doesn't work on HP-UX 11i
ifconfig: no such interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:16 AM
тАО03-12-2010 08:16 AM
Re: DHCP Client doesn't work on HP-UX 11i
OK - how about posting these outputs:
lanscan
ioscan -kfnClan
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:16 AM
тАО03-12-2010 08:16 AM
Re: DHCP Client doesn't work on HP-UX 11i
Mar 12 17:03:45: Mounting filesystems ...
Mar 12 17:03:45: dhcpclient returned general error on: lan0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:21 AM
тАО03-12-2010 08:21 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:59 AM
тАО03-12-2010 08:59 AM
Re: DHCP Client doesn't work on HP-UX 11i
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2010 11:44 PM
тАО03-14-2010 11:44 PM
Re: DHCP Client doesn't work on HP-UX 11i
For Pete : Yes i do a "ifconfig lan0" with a zero (0) and always the same answer :
ifconfig: no such interface
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 04:20 AM
тАО03-15-2010 04:20 AM
Re: DHCP Client doesn't work on HP-UX 11i
/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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 04:58 AM
тАО03-15-2010 04:58 AM
Re: DHCP Client doesn't work on HP-UX 11i
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 05:32 AM
тАО03-15-2010 05:32 AM
Re: DHCP Client doesn't work on HP-UX 11i
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 06:14 AM
тАО03-15-2010 06:14 AM
Re: DHCP Client doesn't work on HP-UX 11i
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 06:33 AM
тАО03-15-2010 06:33 AM
Re: DHCP Client doesn't work on HP-UX 11i
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 06:50 AM
тАО03-15-2010 06:50 AM
Re: DHCP Client doesn't work on HP-UX 11i
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]=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 06:59 AM
тАО03-15-2010 06:59 AM
Re: DHCP Client doesn't work on HP-UX 11i
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 07:59 AM
тАО03-15-2010 07:59 AM
Re: DHCP Client doesn't work on HP-UX 11i
I knew this 2 links and already tried. Always the same problem. lan0 interface is up... blah blah blah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 10:28 AM
тАО03-15-2010 10:28 AM
Re: DHCP Client doesn't work on HP-UX 11i
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 05:55 AM
тАО03-17-2010 05:55 AM
Re: DHCP Client doesn't work on HP-UX 11i
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2010 10:27 AM
тАО03-17-2010 10:27 AM