HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DHCP client configuration on hpux
Operating System - HP-UX
1834845
Members
2426
Online
110070
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-18-2002 10:50 AM
04-18-2002 10:50 AM
DHCP client configuration on hpux
Hi!
I need to configure DHCP client on hpux (10.20 and 11.0)
I have serched this forums, to see if someone else have this need, and to find a way to do it.
Unfurtunately non of the answers help very much to solve my problem.
What I learned so far...
1.- activate DHCP from SAM.
2.- change 0 to 1 the DHCP entry on file /etc/rc.config.netcon
3.- activate bootd on /etc/inetd.conf
4.- reread the inetd.conf with inetd -c
5.- start the dhcpclient with: dhcpclient -b lan0 -u
The answers I found, work only for one time to help reconfigure the network parameters. (when you clear all the parametes and the machine enters into the set_parm sript)
When you run "dhcpclient -b lan0 -u" it access the dhcp server an gets an IP address.
and it creates a dhcpclient.data file on /etc with all the dhcp data.
The problemm is that this appears to work only one time, not every time the lease expires.
How can I set dhcpclient to work all the time ans to start when the machine is reboted?
It will be nice if dhcpclient updates the machine name as my imac does, but this is not prioritary.
this is my dhcp server dhcpd.conf file (part of)
ddns-update-style none;
subnet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx {
option routers xxx.xxx.xxx.xxx;
option subnet-mask xxx.xxx.xxx.xxx;
option netbios-node-type 8;
option domain-name "my.domain.com";
option domain-name-servers my.dns.servers.addresses;
option netbios-name-servers my.netbios.servers.addresses;
default-lease-time 7200;
max-lease-time 14400;
filename "/tftpboot/my.boot.image";
host dns_name { option host-name "dns_name"; fixed-address dns_name; hardware ethernet xx:xx:xx:xx:xx:xx; }
Thanks
Ernesto.
I need to configure DHCP client on hpux (10.20 and 11.0)
I have serched this forums, to see if someone else have this need, and to find a way to do it.
Unfurtunately non of the answers help very much to solve my problem.
What I learned so far...
1.- activate DHCP from SAM.
2.- change 0 to 1 the DHCP entry on file /etc/rc.config.netcon
3.- activate bootd on /etc/inetd.conf
4.- reread the inetd.conf with inetd -c
5.- start the dhcpclient with: dhcpclient -b lan0 -u
The answers I found, work only for one time to help reconfigure the network parameters. (when you clear all the parametes and the machine enters into the set_parm sript)
When you run "dhcpclient -b lan0 -u" it access the dhcp server an gets an IP address.
and it creates a dhcpclient.data file on /etc with all the dhcp data.
The problemm is that this appears to work only one time, not every time the lease expires.
How can I set dhcpclient to work all the time ans to start when the machine is reboted?
It will be nice if dhcpclient updates the machine name as my imac does, but this is not prioritary.
this is my dhcp server dhcpd.conf file (part of)
ddns-update-style none;
subnet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx {
option routers xxx.xxx.xxx.xxx;
option subnet-mask xxx.xxx.xxx.xxx;
option netbios-node-type 8;
option domain-name "my.domain.com";
option domain-name-servers my.dns.servers.addresses;
option netbios-name-servers my.netbios.servers.addresses;
default-lease-time 7200;
max-lease-time 14400;
filename "/tftpboot/my.boot.image";
host dns_name { option host-name "dns_name"; fixed-address dns_name; hardware ethernet xx:xx:xx:xx:xx:xx; }
Thanks
Ernesto.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2002 03:02 PM
04-18-2002 03:02 PM
Re: DHCP client configuration on hpux
One more point I would like to add is check /etc/auto_parms.log to determine whether the lease request was successful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 12:31 AM
04-19-2002 12:31 AM
Re: DHCP client configuration on hpux
I've just finished getting my HPUX 11.00 server to be a dhcp client. It gets it config from my ISP. Here's what I did :-
Edit /etc/rc.config.d/netconf and change the line DHCP_ENABLE[0]=0 to DHCP_ENABLE[0]=1
Note you may have a different card and so it could be DHCP_ENABLE[1]=1 etc. If you have more than 1 card leave the rest =0 unless you want them all to be dhcp clients.
Next touch /etc/dhcpclient.data
shutdown -ry 0
On reboot you find your NIC has been configured by dhcp.
If it still doesn't work then check that the DHCP server knows the MAC address etc of your network card. I had to update this on my ISP's web site, but it took a while before it released the MAC address of my Sun box. I think I can only have one lease at a time. So be patient!
Once I got mine working I found that the hostname was also being set by dhcp. Well sort of. uname -a showed the hostname as unkown and CDE wouldn't start. Turned out auto_parms was editing /etc/hosts and /etc/rc.config.d/netconf and setting the hostname to dhcp-4-51. To fix this I added this script /sbin/rc1.d/S321sethostname
#!/sbin/sh # # @(#) $Revision: 1.0 Dave Burgess 18/04/2002$
#
# /sbin/rc1.d/S321sethostname
# /sbin/auto_parms sets up the dhcp client. Unfortunately ISP's can set the
# hostname for us. In this case it is set to dhcp-4-51.
# This script resets the hostname to raver.
new_hostname="raver"
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
echo "Resetting dhcp set hostname to $new_hostname"
uname -S $new_hostname
cp -p /etc/hosts /tmp/hosts.boot
cat /tmp/hosts.boot | sed s/dhcp-4-51/$new_hostname/g > /etc/hosts
cp -p /etc/rc.config.d/netconf /tmp/netconf.boot
cat /tmp/netconf.boot | sed s/dhcp-4-51/$new_hostname/g > /etc/rc.config.d/netconf
Hope this helps,
Dave.
Edit /etc/rc.config.d/netconf and change the line DHCP_ENABLE[0]=0 to DHCP_ENABLE[0]=1
Note you may have a different card and so it could be DHCP_ENABLE[1]=1 etc. If you have more than 1 card leave the rest =0 unless you want them all to be dhcp clients.
Next touch /etc/dhcpclient.data
shutdown -ry 0
On reboot you find your NIC has been configured by dhcp.
If it still doesn't work then check that the DHCP server knows the MAC address etc of your network card. I had to update this on my ISP's web site, but it took a while before it released the MAC address of my Sun box. I think I can only have one lease at a time. So be patient!
Once I got mine working I found that the hostname was also being set by dhcp. Well sort of. uname -a showed the hostname as unkown and CDE wouldn't start. Turned out auto_parms was editing /etc/hosts and /etc/rc.config.d/netconf and setting the hostname to dhcp-4-51. To fix this I added this script /sbin/rc1.d/S321sethostname
#!/sbin/sh # # @(#) $Revision: 1.0 Dave Burgess 18/04/2002$
#
# /sbin/rc1.d/S321sethostname
# /sbin/auto_parms sets up the dhcp client. Unfortunately ISP's can set the
# hostname for us. In this case it is set to dhcp-4-51.
# This script resets the hostname to raver.
new_hostname="raver"
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
echo "Resetting dhcp set hostname to $new_hostname"
uname -S $new_hostname
cp -p /etc/hosts /tmp/hosts.boot
cat /tmp/hosts.boot | sed s/dhcp-4-51/$new_hostname/g > /etc/hosts
cp -p /etc/rc.config.d/netconf /tmp/netconf.boot
cat /tmp/netconf.boot | sed s/dhcp-4-51/$new_hostname/g > /etc/rc.config.d/netconf
Hope this helps,
Dave.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP