LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 06-29-2006, 04:09 AM   #1
Prassanta
LQ Newbie
 
Registered: Feb 2006
Posts: 11

Rep: Reputation: 0
How To know if a host configured with DHCP has obtained IP address from DHCP server?


Hi

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.


Regards
Prassanta
 
Old 06-29-2006, 09:48 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 06:33 AM
DHCP Server address srbbabu Linux - Networking 1 11-05-2005 09:33 PM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
dhcp server address manthram Linux - Networking 1 07-12-2002 03:09 PM


All times are GMT -5. The time now is 01:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration