Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How know DHCP Server's address on the DHCP client box?

Status
Not open for further replies.

Ux

Programmer
May 28, 2003
5
EE
Hi, all.
I have some AIX box. Suppose that it is DHCP client.
How I can dig out DHCP server's address. Is it possible to do programmatic way, without any "smitty" or other UI tools. Where is stored DHCP server's address on the DHCP client machine?
Can anybody help me?

Thanks.
Alex.
 
continue...
After that I configured DHCP client on the AIX5.1 I found dhcpc.opt file with following content:

interface en0
{
option yiaddr 0xac265236F
option 1 255.255.0.0
option 3 172.18.0.1
option 6 172.18.0.1
option 51 0 0 14 16
....
option 255 0 0 12 78
}

Where I can find this file specification? And there is some utility/tool/command to work with this file (like dhcpdb2conf on the HP-UX)?

Thx.
Alex
 
I have yet to use this, but check out 'dhcpsconf' which is a GUI tool. Looks like it could have what you need.

Regards,
Chuck
 
to: cspilman
Thanks.
1. - GUI tool is not quite suitable for my target.
2. - I thought that dhcpsconf tool configures only DHCP *Server* not *Client*. Is it right?

to: BFOJ
Thanks
Tell me please, what exactly I must check in the /etc/resolv.conf ?
 
There should be a line in that file referencing the DHCP Server. Should show the IP Address of the DHCP Server, something like:

SERVER=10.64.0.25
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top