Operating System - HP-UX
1832468 Members
2605 Online
110043 Solutions
New Discussion

Find DHCP Server from client

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Find DHCP Server from client

How can a DHCP client can determine from which DHCP server has it got the IP address??
Is there any command for that??

Pl. help

Thanks,
-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
11 REPLIES 11
John Dvorchak
Honored Contributor

Re: Find DHCP Server from client

To the best of my knowledge, the client will send a dhcp broadcast and the server, hearing the broadcast will respond. Now this assumes that your routers will pass dhcp broadcasts across subnets. If it is not working then check with the network folks and see if they have shutdown broadcasts. If they have and won't re-enable them you will need a dhcp server on the same subnet as your dhcp clients.
If it has wheels or a skirt, you can't afford it.
John Dvorchak
Honored Contributor

Re: Find DHCP Server from client

Boy did I read your message wrong and gave a completely off target answer. Sorry about that.

It depends on the client, in Windows it is ipconfig /all if you are using HPUX I think all you can do is run arp -a and look for the server.

Maybe someone else has a better answer.
If it has wheels or a skirt, you can't afford it.
Karthik S S
Honored Contributor

Re: Find DHCP Server from client

Well, what I really wanted to do from my DHCP is client is to find out which DHCP server has acutually leased an IP address to me ...!!! With Windows as you said it is possible to find that out using ipconfig /all.

I wonder if there is any file/command using which we can find this out...

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Hazem Mahmoud_3
Respected Contributor

Re: Find DHCP Server from client

Try the following:
/usr/sbin/dhcptools -t ct=20
I'm not sure if this will only work on the DHCP server or if it will also work on the DHCP client. What it does is it traces packets going back and forth to the dhcp server and places it in the /tmp/dhcptrace file. Hope that will help.

-Hazem
Helen French
Honored Contributor

Re: Find DHCP Server from client

Did you check the 'dhcpclient' command? If you enable DHCP, you can make use of this command to get DHCP details. Also check the file /etc/dhcpclient.data

http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/00/81-con.html&toc=/hpux/onlinedocs/B9106-90008/00/00/81-toc.html&searchterms=dhcpclient&queryid=20031202-091025
Life is a promise, fulfill it!
Karthik S S
Honored Contributor

Re: Find DHCP Server from client

Sorry about that. I didnt try yesterday.

I created a VIF using,

ifconfig lan0:1 plumb
ifconfig lan0:1 up

Configured lan0:1 as DHCP client in
/etc/rc.config.d/netconf

Restarted the network daemons. But lan0:1 still doesnt obtain any lease. I also tried,

/usr/lbin/dhclpclient -b lan0:1

Is this the right way to configure a DHCP client??

Thanks
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
PVR
Valued Contributor
Karthik S S
Honored Contributor

Re: Find DHCP Server from client

Thanx .. but, It doesn't discuss about configuring the client.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Karthik S S
Honored Contributor

Re: Find DHCP Server from client

HOW DO I CONFIGURE HP-UX AS A DHCP CLIENT???

Pl. help :-(

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
James A. Donovan
Honored Contributor

Re: Find DHCP Server from client

Check out this link on how to reconfigure for DHCP.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=91624
Remember, wherever you go, there you are...