LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-07-2010, 11:34 PM   #1
password636
Member
 
Registered: Jun 2006
Location: Beijing
Posts: 60

Rep: Reputation: 1
how a computer determine dhcp server ?


Hi,

I have a strange situation and that really bothers me a lot.
I got a machine with RedHat Enterprise Linux 5 installed. I set the ifcfg-eth0 as following:
Code:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=Ethernet
when the machine rebooted, eth0 has the ip address 192.168.24.234. But if executing 'dhclient', eth0 will get the ip address 10.200.34.208, which is my expected ip address.

I'm not quite familiar with networking things. I don't know what's going on there. Why should I need to execute 'dhclient' to obtain the expected ip address? Is there any way to obtain the ip address 10.200.34.208 right after host boot?

Thanks in advance!!!
 
Old 12-08-2010, 02:20 AM   #2
ubyt3m3
Member
 
Registered: Apr 2008
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92

Rep: Reputation: 19
What is your DHCP server; Linux, router, Windows...? If you have an access to your DHCP server, you can try to listen on the communication while your DHCP client boots up to see if there is any communication between them?

-gibb
 
Old 12-09-2010, 03:24 AM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Yes, the question is: where is the 192.168.24.234 coming from at all? Is it somewhere defined locally (grep in /etc may show it)or by a second dhcp server around in the network?
 
Old 12-09-2010, 04:06 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Maybe you have 2 DHCP servers in your LAN or somebody try to fake DNS replies. Use tcpdump or other sniffer to see what happens on the network.
 
  


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
New DHCP Server triggers a Printer and XP computer to Power Cycle pawprint_net Linux - Networking 12 11-17-2009 12:39 PM
how does my computer tell its name to the DHCP server ? theinfidel Linux - Networking 14 12-31-2007 03:31 PM
Why Scourge (2nd computer) isn't getting ip address from Misery (1st computer) dhcp? pslave Linux - Networking 2 04-09-2006 05:58 AM
Determine IP Address with DHCP rock9604 Linux - General 3 08-20-2004 05:32 PM
Determine Computer name lel800 Linux - Networking 5 01-26-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration