1833159 Members
3163 Online
110051 Solutions
New Discussion

Enabling DHCP on lan0

 
SOLVED
Go to solution
Filipe Matos
Occasional Advisor

Enabling DHCP on lan0

Hi admins,
i?ve been trying to setup my workstations (almost 9000-C100 hpux 10.2) to use DHCP parameters.
On "/etc/rc.config.d/netconf" i set the flag DHCP_ENABLE[0]=1.
While rebooting, i get the messages:
/sbin/auto_parm: Checking for DHCP servers ...
/sbin/auto_parms[10]: 0^J1: Syntax error

/etc/auto_parms.log: Lease valid but not updated for: lan0

What am i missing here?
Thanks for your help.

Matos
6 REPLIES 6
Alex Glennie
Honored Contributor

Re: Enabling DHCP on lan0


Did you remove netconf.old from the /etc/rc.config.d directory?

Is your problem solved ?
Filipe Matos
Occasional Advisor

Re: Enabling DHCP on lan0

Hi,
indeed, there was a netconf.old file on "/etc/rc.config.d/".
After removing it, i got stuck in the next problem: After changing the flag "DHCP_ENABLE[0]=" to 1 (i have also used sam to configure the interface for DHCP), each time i reboot
the workstation the script "auto_parms" goes for the DHCP server. Then it changes the flag back to "0" and boots with the old ip-address.

This time i have enclosed the script "netconf" and the log file "auto_parms.log".
By the way, may i supply the hostname by the DHCP request ?

Thank you in advance.

Matos
Alex Glennie
Honored Contributor
Solution

Re: Enabling DHCP on lan0

some things to check :

heck /etc/inetd.conf for the bootps entry, is it commented out ?

uncomment this and verify its setup in sevices and
inetd.conf. do an inetd -c and it should add the service correctly.

try a dhcpclient -b lan0 -u, it should create an /etc/dhcpclient.data file.

Finally =>

Edit /etc/rc.config.d/netconf and reset
the DHCP_ENABLE flag to 1
2) Edit /etc/rc.config.d/netconf and remove
the hostname for this system. The hostname
field should just be ""
3) Remove all dhcp* files that may exist from /etc
4) In /etc, run touch dhcpclient.data so that a 0 byte
file is created.
5) Reboot the system, and it should run through the setup
script. You may also have a failure after the auto_parms
script has rebooted the system since it may force you to
put in an NIS domain. You will need to let the system
timeout and then login.
6) After logging into the system, edit the
/etc/rc.config.d/namesvrs file and set the NIS_CLIENT=
field to "" instead of 1.
7) Reboot and the system should now boot up properly.

PS that's 20 pts if this works as well ;)
Filipe Matos
Occasional Advisor

Re: Enabling DHCP on lan0

ok, ok, you got the 10 ;)
DHCP is working now.

Thank you very much.

Matos
Bettina Ofner
Advisor

Re: Enabling DHCP on lan0

I have also a problem to enable DHCP (C3600, had static ip first).
I tried everything as described by Alex Glennie, but it doesn't work.
After reboot, x-windows is started and demands hostname, country-settings and IP adress, no
message in auto_parms.log.
Thanks for help
Bettina
Alex Glennie
Honored Contributor

Re: Enabling DHCP on lan0

This string related to 2 postings , my first comment was to move out of the way any old versions of the netconf file in /etc/rc.config.d/ is this applicable ? ie netconf.old netconf.orig etc.

If not start a new posting = more people likely to help us.