Operating System - HP-UX
1833780 Members
2244 Online
110063 Solutions
New Discussion

Re: DHCP Solution?! ISC dhcp works for HPUX?

 
Leandro Sales
Advisor

DHCP Solution?! ISC dhcp works for HPUX?

Hi...
I'm trying to configure a DHCP service on a HPUX10.20 box. I compiled and installed dhcp2.0pl5 from www.isc.org but when I start the server, a windows host can't retrieve its IP from my server. What do I have to do? I also change the /etc/rc.config.d/netconf configuration, as isc manual especify, but I don't know what to do... What services should I restart? I tried to use the bootpd service tha comes with HPUX10.20 but didn't work.

Thanks...

Leandro.
12 REPLIES 12
linuxfan
Honored Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

Hi Leandro,


Not sure if you already looked at
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90126&service=hpux&path=../B2355-90126/00/00/36&title=Installing%20and%20Updating%20HP-UX%2010.x

or you can take a look at the HP Doc NR0501KBAN00000702 which talks about installing/troubleshooting DHCP.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
A. Clay Stephenson
Acclaimed Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

The answer is yes; it works very well. You need to edit /etc/inetd.conf and comment out the bootps entry to stop the HP supplied dhcp daemon. You then do an inetd -c to force a reconfig of inetd.

Next, you need to create a standard /sbin/init.d script with symbolic links to /sbin/rc2.d for a start script and /sbin/rc1.d for a stop (kill) script.

I assume you have created an /etc/dhcpd.conf file as well.

Clay
If it ain't broke, I can fix that.
Anthony deRito
Respected Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

The bootp daemon handles DHCP requests from DHCP clients. DHCP is a subset of BOOTP. Go into SAM -> Networking and Communications -> DHCP Device Groups Booting from this Server. Check the DHCP/Bootp server status is enabled. Check if you have groups defined. If not, define dhcp groups and restart bootpd. I am running DHCP on HP-UX 10.20 and my clients are all Windows 95/98.

Tony
A. Clay Stephenson
Acclaimed Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

Hi:

The best reason to use use ISC's dhcp server rather than the supplied version is for travelling users who must receive a known ip address. This is typical when firewall allow persmissions based upon the IP address. ISC's dhcpd will allow you to assign certain static ip addresses based upon the subnet the request is coming in from and the MAC address of the client. e.g. A user might receive 10.1.1.55 coming in from one location and 10.1.2.55 coming in from another location. The point is that both of these IP addresses can be assigned firewall rules and when dhcpd sees this guys MAC address, it hands out one of these addresses based upon subnet. HP's version will allow only 1 static IP address per MAC address. If you don't need this feature
(or dynamic DNS) then HP's version will work fine.
If it ain't broke, I can fix that.
Leandro Sales
Advisor

Re: DHCP Solution?! ISC dhcp works for HPUX?

In my network, I have another server running DHCP. To test the DHCP service that is running on a HPUX box I stop the service on the other server and start it on a HPUX box. Do I have to do just this, or Is there something that I have to do?

Leandro.
A. Clay Stephenson
Acclaimed Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

That's the way to test it. The first server which responds to the bootp request wins.
If you have multiple DHCP servers (you should) make certain that they hand out diffrent ranges of IP addresses otherwise the leases will become very confused any you could hand out the same address the multiple clients.
If it ain't broke, I can fix that.
Leandro Sales
Advisor

Re: DHCP Solution?! ISC dhcp works for HPUX?

Hi...

OK. After I commented the bootps entry in /etc/inetd and run inetd -c I tested again but still not working... So, I decided to show you a part of the syslog:

Sep 11 14:48:40 strauss inetd[17588]: Rereading configuration
Sep 11 14:48:40 strauss inetd[17588]: Configuration complete
Sep 11 14:50:36 strauss dhcpd: DHCPREQUEST for 123.123.123.102 from 00:e0:7d:71:f0:d1 via lan0
Sep 11 14:50:36 strauss dhcpd: DHCPACK on 123.123.123.102 to 00:e0:7d:71:f0:d1 via lan0
Sep 11 14:51:14 strauss dhclient: DHCPDISCOVER on lan0 to 255.255.255.255 port 67 interval 7
Sep 11 14:51:21 strauss dhclient: DHCPDISCOVER on lan0 to 255.255.255.255 port 67 interval 14
Sep 11 14:51:27 strauss dhcpd: Internet Software Consortium DHCP Server 2.0pl5
Sep 11 14:51:27 strauss dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
Sep 11 14:51:27 strauss dhcpd: All rights reserved.
Sep 11 14:51:27 strauss dhcpd:
Sep 11 14:51:27 strauss dhcpd: Please contribute if you find this software useful.
Sep 11 14:51:28 strauss dhcpd: For info, please visit http://www.isc.org/dhcp-contrib.html
Sep 11 14:51:28 strauss dhcpd:
Sep 11 14:51:28 strauss dhcpd: Listening on Socket/lan0/CEFET-INFO
Sep 11 14:51:28 strauss dhcpd: Sending on Socket/lan0/CEFET-INFO
Sep 11 14:51:35 strauss dhclient: DHCPDISCOVER on lan0 to 255.255.255.255 port 67 interval 9
Sep 11 14:51:44 strauss dhclient: DHCPDISCOVER on lan0 to 255.255.255.255 port 67 interval 9
Sep 11 14:51:51 strauss dhcpd: DHCPREQUEST for 123.123.123.88 from 00:e0:7d:71:d5:50 via lan0
Sep 11 14:51:51 strauss dhcpd: DHCPACK on 123.123.123.88 to 00:e0:7d:71:d5:50 via lan0
Sep 11 14:51:52 strauss dhcpd: DHCPDISCOVER from 00:50:da:63:a0:df via lan0
Sep 11 14:51:53 strauss dhclient: DHCPDISCOVER on lan0 to 255.255.255.255 port 67 interval 18
Sep 11 14:51:53 strauss dhcpd: DHCPOFFER on 123.123.123.154 to 00:50:da:63:a0:df via lan0
Sep 11 14:51:55 strauss dhcpd: DHCPDISCOVER from 00:50:da:63:a0:df via lan0
Sep 11 14:51:55 strauss dhcpd: DHCPOFFER on 123.123.123.154 to 00:50:da:63:a0:df via lan0
Sep 11 14:52:02 strauss dhcpd: DHCPDISCOVER from 00:50:da:63:a0:df via lan0
Sep 11 14:52:02 strauss dhcpd: DHCPOFFER on 123.123.123.154 to 00:50:da:63:a0:df via lan0
Sep 11 14:52:10 strauss dhcpd: DHCPREQUEST for 123.123.123.96 from 00:e0:7d:71:d5:3f via lan0
Sep 11 14:52:10 strauss dhcpd: DHCPACK on 123.123.123.96 to 00:e0:7d:71:d5:3f via lan0
Sep 11 14:52:11 strauss dhclient: DHCPDISCOVER on lan0 to 255.255.255.255 port 67 interval 4
Sep 11 14:52:15 strauss dhclient: No DHCPOFFERS received.
Sep 11 14:52:15 strauss dhclient: No working leases in persistent database - sleeping.
Sep 11 14:52:15 strauss dhclient: execve (/etc/dhclient-script, ...): No such file or directory
Sep 11 14:52:15 strauss dhclient: exiting.
Sep 11 14:52:17 strauss dhcpd: DHCPDISCOVER from 00:50:da:63:a0:df via lan0
Sep 11 14:52:17 strauss dhcpd: DHCPOFFER on 123.123.123.154 to 00:50:da:63:a0:df via lan0
Sep 11 14:53:02 strauss dhcpd: DHCPDISCOVER from 00:00:21:c9:ab:22 via lan0
Sep 11 14:53:03 strauss dhcpd: DHCPOFFER on 123.123.123.43 to 00:00:21:c9:ab:22 via lan0

/etc/dhclient-script -> no such a file or directory... How can I fix it?

Please, some help...

Leandro.
Bill Thorsteinson
Honored Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

Your dchpclient listening on lan0 is failing. Shut it down.
Your DHCP servers should have fixed addresses on
the interfaces they are serving addresses on.

The missing /etc/dhclient-script is the script that
reconfigures your network setup when you recieve
an address from DCHP. If this happens on your
DHCP server, it should only happen on an interface
connected to an external network and the DHCP
server should not be configured to serve the interface.

The log messages indicate that you are serving
addresses on lan0 from your DHCP server. All is well.
Anthony deRito
Respected Contributor

Re: DHCP Solution?! ISC dhcp works for HPUX?

Only when you see a DHCPACK is the client lease finalized. If the client lease is not finalized, you will see a DHCPNAK. This would cause the client to send another DHCPDISCOVER packet, starting the process over again.

Thats the way it works...

cient - DHCPDISCOVER
server - DHCPOFFER
client - DHCPREQUEST
server - DHCPACK or DHCPNAK

If there are any issies with this handshake, take a close look at the client. There are numerous clients that do not opperate as they should.

Tony
Leandro Sales
Advisor

Re: DHCP Solution?! ISC dhcp works for HPUX?

I have a strange problem, my syslog.log have:
...
...
...

Sep 13 14:53:29 strauss dhcpd: Internet Software Consortium DHCP Server 2.0pl5
Sep 13 14:53:29 strauss dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
Sep 13 14:53:29 strauss dhcpd: All rights reserved.
Sep 13 14:53:29 strauss dhcpd:
Sep 13 14:53:29 strauss dhcpd: Please contribute if you find this software useful.
Sep 13 14:53:29 strauss dhcpd: For info, please visit http://www.isc.org/dhcp-contrib.html
Sep 13 14:53:29 strauss dhcpd:
Sep 13 14:53:29 strauss dhcpd: Listening on Socket/lan0/CEFET-INFO
Sep 13 14:53:29 strauss dhcpd: Sending on Socket/lan0/CEFET-INFO
Sep 13 14:53:47 strauss dhcpd: DHCPREQUEST for 123.123.12396 from 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:47 strauss dhcpd: DHCPACK on 123.123.12396 to 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:49 strauss dhcpd: DHCPREQUEST for 123.123.12396 from 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:49 strauss dhcpd: DHCPACK on 123.123.12396 to 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:50 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:53:51 strauss dhcpd: DHCPOFFER on 123.123.123109 to 00:00:e8:8c:e0:35 via lan0
Sep 13 14:53:55 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:53:55 strauss dhcpd: DHCPOFFER on 123.123.123109 to 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:03 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:03 strauss dhcpd: DHCPOFFER on 123.123.123109 to 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:20 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:20 strauss dhcpd: DHCPOFFER on 123.123.123109 to 00:00:e8:8c:e0:35 via lan0

and the dhcpd.leases is updated when a request is finalized by the DHCPPACK, but the host don't get the IP, why?

Thanks...

Leandro.
Leandro Sales
Advisor

Re: DHCP Solution?! ISC dhcp works for HPUX?

sorry, the syslog has:

Sep 13 14:53:29 strauss dhcpd: Internet Software Consortium DHCP Server 2.0pl5
Sep 13 14:53:29 strauss dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
Sep 13 14:53:29 strauss dhcpd: All rights reserved.
Sep 13 14:53:29 strauss dhcpd:
Sep 13 14:53:29 strauss dhcpd: Please contribute if you find this software useful.
Sep 13 14:53:29 strauss dhcpd: For info, please visit http://www.isc.org/dhcp-contrib.html
Sep 13 14:53:29 strauss dhcpd:
Sep 13 14:53:29 strauss dhcpd: Listening on Socket/lan0/CEFET-INFO
Sep 13 14:53:29 strauss dhcpd: Sending on Socket/lan0/CEFET-INFO
Sep 13 14:53:47 strauss dhcpd: DHCPREQUEST for 123.123.123.96 from 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:47 strauss dhcpd: DHCPACK on 123.123.123.96 to 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:49 strauss dhcpd: DHCPREQUEST for 123.123.123.96 from 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:49 strauss dhcpd: DHCPACK on 123.123.123.96 to 00:e0:7d:71:d5:3f via lan0
Sep 13 14:53:50 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:53:51 strauss dhcpd: DHCPOFFER on 123.123.123.109 to 00:00:e8:8c:e0:35 via lan0
Sep 13 14:53:55 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:53:55 strauss dhcpd: DHCPOFFER on 123.123.123.109 to 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:03 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:03 strauss dhcpd: DHCPOFFER on 123.123.123.109 to 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:20 strauss dhcpd: DHCPDISCOVER from 00:00:e8:8c:e0:35 via lan0
Sep 13 14:54:20 strauss dhcpd: DHCPOFFER on 123.123.123.109 to 00:00:e8:8c:e0:35 via lan0

and the dhcpd.leases is updated according the request is finalized by the DHCPPACK, but the host doesn't get the IP, why?
Leandro Sales
Advisor

Re: DHCP Solution?! ISC dhcp works for HPUX?

Hi...
I really need some help/solution...

thanks...

Leandro.