1847879 Members
3872 Online
104021 Solutions
New Discussion

Re: Disable DHCP server

 
j773303
Super Advisor

Disable DHCP server

Does anyone know how to disable DHCP server on hp-ux 10.1 ?
Hero
9 REPLIES 9
twang
Honored Contributor

Re: Disable DHCP server

- edited the file /etc/rc.config.d/netconf and set DHCP_ENABLE[0]=0
- run set_parms ip_address
- add new ip address to /etc/hosts
Jean-Louis Phelix
Honored Contributor

Re: Disable DHCP server

Hi,

DHCP server is bootpd. It can be disabled in /ec/inetd.conf. But bootpd has some other functionalities. Check first in 'man bootpd'

Regards.
It works for me (© Bill McNAMARA ...)
Jean-Louis Phelix
Honored Contributor

Re: Disable DHCP server

Hi,

DHCP_ENABLE is only designed to manage the client part of DHCP.

Regards.
It works for me (© Bill McNAMARA ...)
yogesh_4
Regular Advisor

Re: Disable DHCP server

Hi ,
Edit the file /etc/rc.config.d/netconf and set DHCP_ENABLE[0]=0. It will disable DHCP at next reboot

j773303
Super Advisor

Re: Disable DHCP server

Thanks all. But I mean is that I've a hp-ux server as a DHCP server. I want to disable this DHCP server, how to do it?
Hero
Con O'Kelly
Honored Contributor

Re: Disable DHCP server

Hi

Jean-Louis has already provided the answer.

DHCP uses the bootpd daemon.
As Jean-Louis said you need to disable bootps in /etc/inetd.conf by commenting out the following line:
# bootps dgram udp wait root /usr/lbin/bootpd bootpd
Then run:
# inetd -c .

Note that Ignite-UX uses bootpd when recovering systems over the network. If this system is an Ignite Server then you shouldn't disable bootpd.

Cheers
Con
Suresh Patoria
Super Advisor

Re: Disable DHCP server

Hi,

For disable DHCP Server do the following things

1.)Edit the /etc/rc.config.d/netconf file

specify the lan interface
specify the IP Address and Subnetmask
then for disable change to DHCP_ENABLE[0]=0

and also specify the IP Address and hostname specify in the /etc/hosts file

reboot the system
Wodisch
Honored Contributor

Re: Disable DHCP server

Hi,

it is much easier:
in the early days of HP-UX 10 there was a feature/bug in HP's flavour of DHCPd (and it was/still is "bootpd").
If you had NO entry in the "/etc/bootptab" it would respond to all requests - but with an empty reply.
Have seen a lot of Windows-laptops dying during booting, when they requested an IP-address :-(

Solution (as done with HP-UX >= 10.20): enter a dummy paragraph into "/etc/bootptab", done!

FWIW,
Wodisch

PS: do you celebrate the final week of HP-UX10.x? End of support on 1st of July 2003...