Hello, I'm developing one application on Linux machine. I need to make dhcp request two times using some shell script.
For first time I need to makean request to dhcp server using dhclient to get IP address.
Question: How can use dhclient to make such request and if client gets IP and how can I get that IP.
after second time, I again need to make dhcp request. This time I need other parameters also (like IP of Http server etc) along with IP address/subnet mask ..etc. IP address of HTTP server and other optional parameters are configured on dhcp server... I just need to make request to get them.
How can I achieve this.