LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how a computer determine dhcp server ? (https://www.linuxquestions.org/questions/linux-networking-3/how-a-computer-determine-dhcp-server-848969/)

password636 12-07-2010 11:34 PM

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!!!

ubyt3m3 12-08-2010 02:20 AM

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

Reuti 12-09-2010 03:24 AM

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?

eSelix 12-09-2010 04:06 AM

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.


All times are GMT -5. The time now is 09:20 PM.