How To know if a host configured with DHCP has obtained IP address from DHCP server?
How To know if a host configured with DHCP has obtained IP address from DHCP server? Is there any system call or any other way.The purpose is i will run my application which will listen on the IP(obtained from DHCP)on the host after DHCP obtained an IP address.
ifconfig will tell you if the host has an IP address. If it is configured for DHCP and the interface is up but it has not yet obtained an address, there will be no IP address listed although the interface itself will still be listed.
|All times are GMT -5. The time now is 11:23 AM.|