Networking Forums

Networking Forums > Computer Networking > Linux Networking > Identifying the DHCP server IP....

Reply
Thread Tools Display Modes

Identifying the DHCP server IP....

 
 
sivam
Guest
Posts: n/a

 
      11-01-2004, 04:39 AM
Hi Group,

I have enabled automatic DHCP in my machine. I am assigned by an IP by
the DHCP server . Is there any way by which i know the IP address of
the DHCP server which assigned the address ?.
Pls advice me.

Regards
sivam

 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      11-01-2004, 05:11 AM
On 2004-11-01, sivam <(E-Mail Removed)> wrote:
> the DHCP server . Is there any way by which i know the IP address of
> the DHCP server which assigned the address ?.


Yes, look when your machine boots, you should see something like
'DHCP received from ....' with the IP of the server.
Besides, why you want to know ?

Davide

--
Blackmail Error:
Send $200 to Bill Gates or your computer will get so messed up it will never
work again.
 
Reply With Quote
 
sivam
Guest
Posts: n/a

 
      11-01-2004, 05:54 AM
Hi David,

Thanks for the response. But my kernel output messages will be
suppressed, so is there in any file the DHCP server IP will be
recorded. I have a scenario where i want to download a file thro' tftp
automatically when i press a key...my TFTP server and DHCP server are
one and the same. So if i could identify my DHCP server IP i could read
that and will give that as argument to my TFTP client to download.
Any Suggestions.

Regards
sivam

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      11-01-2004, 06:56 AM
sivam wrote:
> Hi David,
>
> Thanks for the response. But my kernel output messages will be
> suppressed, so is there in any file the DHCP server IP will be
> recorded. I have a scenario where i want to download a file thro' tftp
> automatically when i press a key...my TFTP server and DHCP server are
> one and the same. So if i could identify my DHCP server IP i could read
> that and will give that as argument to my TFTP client to download.
> Any Suggestions.
>


Have a look at

/var/log/daemon.log

HTH

Tauno Voipio
tauno voipio (at) iki fi


 
Reply With Quote
 
sivam
Guest
Posts: n/a

 
      11-01-2004, 07:25 AM
Thanks all. I ran the dhcpclient-script and grepped the output for
DHCPOFFER and stored the IP. Thanks alot for u'r valuable inputs.

Regards
sivam
Tauno Voipio wrote:
> sivam wrote:
> > Hi David,
> >
> > Thanks for the response. But my kernel output messages will be
> > suppressed, so is there in any file the DHCP server IP will be
> > recorded. I have a scenario where i want to download a file thro'

tftp
> > automatically when i press a key...my TFTP server and DHCP server

are
> > one and the same. So if i could identify my DHCP server IP i could

read
> > that and will give that as argument to my TFTP client to download.
> > Any Suggestions.
> >

>
> Have a look at
>
> /var/log/daemon.log
>
> HTH
>
> Tauno Voipio
> tauno voipio (at) iki fi


 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      11-01-2004, 01:53 PM
sivam wrote:

> I have enabled automatic DHCP in my machine. I am assigned by an IP by
> the DHCP server . Is there any way by which i know the IP address of
> the DHCP server which assigned the address ?.


Ifconfig will usually tell you.

--

(This space intentionally left blank)
 
Reply With Quote
 
Davide Bianchi
Guest
Posts: n/a

 
      11-01-2004, 01:58 PM
On 2004-11-01, James Knott <(E-Mail Removed)> wrote:
> Ifconfig will usually tell you.


He didn't asked for the ip address he received, he wanted the
IP address of the dhcp server...

Davide

--
Ignorance is bliss, and when it comes to computing, I want everyone to
be happy...
--Ryan Tucker
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      11-01-2004, 02:03 PM
sivam wrote:

> Thanks for the response. But my kernel output messages will be
> suppressed, so is there in any file the DHCP server IP will be
> recorded. I have a scenario where i want to download a file thro' tftp
> automatically when i press a key...my TFTP server and DHCP server are
> one and the same. So if i could identify my DHCP server IP i could read
> that and will give that as argument to my TFTP client to download.
> Any Suggestions.


As I mentioned, ifconfig will tell you. You can also see what your dhcp
client provides. For example in SuSE 9.1, you'll find a file, such as
/var/lib/dhcpcd/dhcpcd-eth0.info, which contains the assigned address.


--

(This space intentionally left blank)
 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      11-01-2004, 04:45 PM
"sivam" <(E-Mail Removed)> said:
>I have enabled automatic DHCP in my machine. I am assigned by an IP by
>the DHCP server . Is there any way by which i know the IP address of
>the DHCP server which assigned the address ?.


If your dhcp client program is 'dhclient', look at the files
/var/lib/dhcp/dhclient* .
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help removing duplicate DHCP server on authoizied DHCP Server list Moondoggy Windows Networking 1 11-05-2007 06:02 PM
Identifying An IP Address Scott Wireless Networks 3 02-03-2007 03:35 PM
identifying the smtp server JahMic Windows Networking 2 09-05-2006 12:05 PM
API for identifying the DHCP server's IP address. lawrieleo@gmail.com Linux Networking 1 07-25-2005 02:15 PM
Help identifying those cards Chris Windows Networking 0 10-08-2003 07:33 PM



1 2 3 4 5 6 7 8 9 10 11