Unix Technical Forum

HP-UX as DHCP Client

This is a discussion on HP-UX as DHCP Client within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> I have a Netgear DSL/firewall/router. It acts as a DHCP server but I can't get HP-UX 11.00 to find ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 06:14 PM
Ross Templeton
 
Posts: n/a
Default HP-UX as DHCP Client

I have a Netgear DSL/firewall/router. It acts as a DHCP server but I can't
get HP-UX 11.00 to find it.

Any ideas?

Ross


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 06:14 PM
Florian Anwander
 
Posts: n/a
Default Re: HP-UX as DHCP Client

Hi Ross


> I have a Netgear DSL/firewall/router. It acts as a DHCP server but I can't
> get HP-UX 11.00 to find it.

Doesn't it find ist or did it boot with wrong values? Assumingly you
have a /etc/dhcpclient.data on the clients. Which prevents thath the
machine works with dynamic DHCP.

Hey, is there really no instruction in the HPUX FAQ about setting up an
dhcp client? So here we go!





Basic instructions, for setting up a HPUX dhcp client

1.)

The name resolution for localhost/loopback must work without any
network. So:

/etc/hosts
==========
127.0.0.1 localhost loopback


/etc/nsswitch.conf
==================
hosts: files [NOTFOUND=continue] dns



2.) Setup the rc-config file for dhcp:
/etc/rc.config.d/netconf:
=========================
HOSTNAME=""
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=
SUBNET_MASK[0]=255.255.255.255
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1

GATED=0
GATED_ARGS=""


RDPD=0
RARP=0
=========================

PAY ATTENTION: In this file the hostname ist NOT set, the subnetmask is
set to 255.255.255.255 and all route entries are removed!



3.) Remove all files, that start with dhcp
# rm /etc/dhcp*

4.) create a blank /etc/dhcpclient.data with permissions 644:
# touch /etc/dhcpclient.data
# chmod 644 /etc/dhcpclient.data

5.)in /etc/inetd.conf comment the line which starts with "bootps"

6.)Create a rc file, that blanks out the /etc/dhcpclient.data at each
shutdown. The link should be a K-Link in /sbin/rc0.d/
(For instructions how to create a working rc script see
/sbin/init.d/template)




Good Luck, Florian







Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 06:16 PM
Ross Templeton
 
Posts: n/a
Default Re: HP-UX as DHCP Client

Thanks Florian your advice worked. You're right there is not much info on
this.

Ross
"Florian Anwander" <florian.anwander@consol.de> wrote in message
news:40FBF804.9050502@consol.de...
> Hi Ross
>
>
> > I have a Netgear DSL/firewall/router. It acts as a DHCP server but I

can't
> > get HP-UX 11.00 to find it.

> Doesn't it find ist or did it boot with wrong values? Assumingly you
> have a /etc/dhcpclient.data on the clients. Which prevents thath the
> machine works with dynamic DHCP.
>
> Hey, is there really no instruction in the HPUX FAQ about setting up an
> dhcp client? So here we go!
>
>
>
>
>
> Basic instructions, for setting up a HPUX dhcp client
>
> 1.)
>
> The name resolution for localhost/loopback must work without any
> network. So:
>
> /etc/hosts
> ==========
> 127.0.0.1 localhost loopback
>
>
> /etc/nsswitch.conf
> ==================
> hosts: files [NOTFOUND=continue] dns
>
>
>
> 2.) Setup the rc-config file for dhcp:
> /etc/rc.config.d/netconf:
> =========================
> HOSTNAME=""
> OPERATING_SYSTEM=HP-UX
> LOOPBACK_ADDRESS=127.0.0.1
>
> INTERFACE_NAME[0]=lan0
> IP_ADDRESS[0]=
> SUBNET_MASK[0]=255.255.255.255
> BROADCAST_ADDRESS[0]=""
> INTERFACE_STATE[0]=""
> DHCP_ENABLE[0]=1
>
> GATED=0
> GATED_ARGS=""
>
>
> RDPD=0
> RARP=0
> =========================
>
> PAY ATTENTION: In this file the hostname ist NOT set, the subnetmask is
> set to 255.255.255.255 and all route entries are removed!
>
>
>
> 3.) Remove all files, that start with dhcp
> # rm /etc/dhcp*
>
> 4.) create a blank /etc/dhcpclient.data with permissions 644:
> # touch /etc/dhcpclient.data
> # chmod 644 /etc/dhcpclient.data
>
> 5.)in /etc/inetd.conf comment the line which starts with "bootps"
>
> 6.)Create a rc file, that blanks out the /etc/dhcpclient.data at each
> shutdown. The link should be a K-Link in /sbin/rc0.d/
> (For instructions how to create a working rc script see
> /sbin/init.d/template)
>
>
>
>
> Good Luck, Florian
>
>
>
>
>
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com