LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2011, 02:08 AM   #1
Deewanagan
Member
 
Registered: Sep 2008
Posts: 57

Rep: Reputation: 15
DHCP Server Not leasing IP


Hi Everyone!

I have server which has "Xen/debian" installed. On this there is a virtual machine which has "Debian" installed. This virtual machine is used as a dhcp server for the network. Since yesterday, its not leasing any ip address! when i connect its ethernet cable to switch it says "eth0: received packet with its own address as IP address".

the only thing that i remember (which might have caused the problem) is adding a mirror server(a different machine). The dhcp server gave it the address 192.168.1.1(the network is 192.168.1.0/24) and it was working fine. anyone knows how to solve the problem?

Regards,
 
Old 05-12-2011, 05:44 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
"eth0: received packet with its own address as IP address". AND adding a mirror server(a different machine). The dhcp server gave it the address 192.168.1.1
This sounds like you have two machines with the same address, 192.168.1.1. Check the interface configuration on both machines (i.e. run ifconfig) and verify.

It is possible to run mirroring, fail-over, load sharing, DHCP servers and in fact relatively easy. I am doing so right now on my own network. You need to configure them for this purpose, though, as they need to be aware of and communicate with each other. If you simply put two DHCP servers on the same network, they will conflict and both try to issue requests, read address collisions and race conditions. A simple search on the subject of backup DHCP should point you to plenty of documents on how to correctly implement this.
 
Old 05-12-2011, 06:12 AM   #3
Deewanagan
Member
 
Registered: Sep 2008
Posts: 57

Original Poster
Rep: Reputation: 15
thanks for the reply. What i meant was that I put a machine as "Ubuntu Mirror Server". its not giving out ip addresses. It has been configured to use the ip address 192.168.1.172/24. so its just another (dhcp) client in the network.
 
Old 05-13-2011, 05:16 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Have you looked at the DHCP logs? At the very least there should be something in syslog that indicates DHCP traffic, for example DHCPREQUEST and DHCPACK statements. Also look to see what interface and port DHCP is listening on. Netstat should tell you this. After you confirm that these are correct, you can try to test it by watching the traffic with a sniffer. Unfortunately, since DHCP works on broadcasts, you can't telnet into it, but you should be able to see the traffic.
 
  


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
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 01:40 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 02:20 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 03:00 AM
Odd e-mail behaviour when swtiching between DHCP and BOOTP for IP leasing indienick General 3 09-25-2008 09:15 AM
Problem leasing ip with ma101 wireless ZeRo69er Linux - Wireless Networking 3 03-14-2004 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:07 PM.

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