1833723 Members
3580 Online
110063 Solutions
New Discussion

HP-UX DHCP Client

 
Alex_145
Occasional Contributor

HP-UX DHCP Client

Hi All,
Have two questions.
How I'll be able to find out: is HP-UX using DHCP and if using - what is DHCP server's IP (or/and Name).
Thx.
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: HP-UX DHCP Client

Hi,

Check /etc/rc.config.d/netconf

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

Interface 0
ipadres not configured
dhcp =1 is enabled.

Hope it helps,

Robert-Jan.
Massimo Bianchi
Honored Contributor

Re: HP-UX DHCP Client

Hi,
to see if your hpux is on dhcp,
you should look at

/etc/rc.config.d/netconf


If, for an interface, the DHCP_ENABLE is equal to 1, it is a dhcp client.

For netconf:
# DHCP_ENABLE Determines whether or not DHCP client functionality
# will be enabled on the network interface (see
# auto_parms(1M), dhcpclient(1M)). DHCP clients get
# their IP address assignments from DHCP servers.
# 1 enables DHCP client functionality; 0 disables it.
#


The dhcp server is obtained using a broadcast on the net, nut i don't know how to find it.

Massimo
Alex_145
Occasional Contributor

Re: HP-UX DHCP Client

Thanks. But how about second question? Where I can find DHCP server's adderess? I know about /etc/dhcpclient.data file, but it's format is not enough clear for me (see HP-UX Reference N B2355-90688, section 1M-167). Is this plain text file or binary? When it's text file -why in the example I see "08 4 0"?
Alex_145
Occasional Contributor

Re: HP-UX DHCP Client

Robert-Jan, Massimo,
may be BROADCAST_ADDRESS[i] is 'sought quantity'?
Allyn Fratkin
Occasional Contributor

Re: HP-UX DHCP Client

as root, run this command: /usr/lbin/dhcpdb2conf
Alex_145
Occasional Contributor

Re: HP-UX DHCP Client

Allyn,
would you please send needed dhcpdb2conf command string and it's output (as an example).
Thanks.
Massimo Bianchi
Honored Contributor

Re: HP-UX DHCP Client

Hi,
i'm not sure about the meaning of "sought quantity", but usually any value other than 0 mean to activate the dhcp.

Massimo

Alex_145
Occasional Contributor

Re: HP-UX DHCP Client

Massimo, I'd in view that probably BROADCAST_ADDRESS[i] is DHCP Server's address for corresponding i-th interface. What do you think (or know) about BROADCAST_ADDRESS == DHCP Server address?
Robert-Jan Goossens
Honored Contributor

Re: HP-UX DHCP Client

Hi Alex,

Take a look at this question.

http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0xa1c93a7b3682d611abdb0090277a778c,00.html

Hope it helps,

Robert-Jan.