LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2013, 11:55 PM   #1
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Rep: Reputation: 1
Windows machines not accepting IP from DHCP server


Hi All,

I am facing strange issue.

My DHCP server working fine till yesterday. But from today morning my Windows machines are not getting IP from DHCP server while Linux machines are getting. Please find the below logs from /var/log/messages.

Dec 12 10:50:34 sonic dhcpd: DHCPOFFER on 192.168.181.140 to f0:4d:a2:6d:80:d1 (Support-8) via eth0
Dec 12 10:50:34 sonic dhcpd: DHCPREQUEST for 192.168.181.140 (192.168.184.11) from f0:4d:a2:6d:80:d1 (Support-8) via eth0
Dec 12 10:50:34 sonic dhcpd: DHCPACK on 192.168.181.140 to f0:4d:a2:6d:80:d1 (Support-8) via eth0
Dec 12 10:50:34 sonic dhcpd: Abandoning IP address 192.168.181.140: declined.
Dec 12 10:50:34 sonic dhcpd: DHCPDECLINE of 192.168.181.140 from f0:4d:a2:6d:80:d1 (Support-8) via eth0: abandoned
Dec 12 10:50:39 sonic dhcpd: DHCPDISCOVER from d4:be:d9:85:31:x1 via eth0
Dec 12 10:50:40 sonic dhcpd: DHCPOFFER on 192.168.181.141 to d4:be:d9:85:31:x1 (testing01) via eth0
Dec 12 10:50:40 sonic dhcpd: DHCPREQUEST for 192.168.181.141 (192.168.184.11) from d4:be:d9:85:31:x1 (testing01) via eth0
Dec 12 10:50:40 sonic dhcpd: DHCPACK on 192.168.181.141 to d4:be:d9:85:31:x1 (testing01) via eth0
Dec 12 10:50:40 sonic dhcpd: Abandoning IP address 192.168.181.141: declined.
Dec 12 10:50:40 sonic dhcpd: DHCPDECLINE of 192.168.181.141 from d4:be:d9:85:31:x1 (testing01) via eth0: abandoned


Please help me to resolve this issue.
 
Old 12-12-2013, 03:45 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by yogesh_attarde View Post
Hi All,

I am facing strange issue.

My DHCP server working fine till yesterday. But from today morning my Windows machines are not getting IP from DHCP server while Linux machines are getting. Please find the below logs from /var/log/messages.
A similar issue was solved on Linuxquestions three years ago. The broadcast address was wrongly configured on the DHCP server.

Also, do your Windows clients say anything when they decline the address?
 
Old 12-13-2013, 02:33 AM   #3
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
A similar issue was solved on Linuxquestions three years ago. The broadcast address was wrongly configured on the DHCP server.
I saw that thread and tried but it doesn't worked for me.

Quote:
Also, do your Windows clients say anything when they decline the address?
No, windows client doesn't say anything when they decline the address. My Linux client is working fine with same configuration.
 
Old 12-13-2013, 05:57 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by yogesh_attarde View Post
I saw that thread and tried but it doesn't worked for me.

No, windows client doesn't say anything when they decline the address. My Linux client is working fine with same configuration.
From RFC 2131, which describes DHCP:
Quote:
DHCPDECLINE - Client to server indicating network address is already in use.
The RFC encourages DHCP clients to find out, e.g. by an ARP request, if the address they were given by the DHCP server are already in use. Why only the Windows clients have the problem, I can't tell, but perhaps the address ranges configured for them in the DHCP server happen to overlap with other addresses?

To find out what went wrong, then, you may want to
  • check if somebody has already the IP address that the DHCP server is offering
  • look at the clients' ARP caches (there is an arp command in Windows)
  • rething your DHCP address structure
 
Old 12-13-2013, 06:10 AM   #5
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
check if somebody has already the IP address that the DHCP server is offering
I checked IP address that DHCP is offering is free.

Quote:
rething your DHCP address structure
I tried with changing the range also but still no luck.

FYI below is my dhcpd.conf

#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
option subnet-mask 255.255.255.0;
authoritative ;
default-lease-time 14400;
ddns-update-style interim;
ignore client-updates;
ddns-updates off;
subnet 192.168.181.0 netmask 255.255.255.0 {
range 192.168.181.101 192.168.181.150;
option domain-name "XXXXXXX.com";
option domain-search "XXXXXXXX.com";
option domain-name-servers 192.168.181.10, 192.168.143.3 ;
option smtp-server mail.XXXX.com;
option routers 192.168.181.1;
option broadcast-address 192.168.181.255;
option subnet-mask 255.255.255.0;
default-lease-time 14400;
max-lease-time 172800;
next-server 192.168.181.11;
filename "pxelinux.0";
}

Regards,
Yogesh
 
Old 12-13-2013, 08:00 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by yogesh_attarde View Post
I checked IP address that DHCP is offering is free.

I tried with changing the range also but still no luck.
Do you mean that whatever addresses are offered, the Windows clients keep on rejecting them?

If you can, see what the clients have in their ARP cache. The cache should contain the address they refuse, and the MAC address of the system that (in the client's opinion) has this address. You would have to check very soon after they send their DHCPDECLINE, to minimise cache updates.

I'd say it's a case for a Windows forum
 
Old 12-13-2013, 08:39 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Yes, your Windows machine does "say something, somewhere," and that "somewhere" is its Event Viewer application, probably squirreled-away under Utilities or Administrative Tools. In this respect, all operating systems are the same. They put on a good front for the end-user, but somewhere, they jabber-away incessantly. When the Windows machine declines the offer, it will record the reason why (not). But it will not tell the server, and in fact it has no means to do so.
 
Old 12-15-2013, 11:23 PM   #8
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Hi All,

I found the issue. I connected the OpenSuse 13.1 due to which this issue happen. I am not sure why it is happening but yes this is the cause.

Simply I disconnected the system and the issue resolved. But whenever I am connecting it to the network the issue coming. Can anybody suggest why this is happening? I am very new to OpenSuse. I check the DHCP service on it its not running. Also can you guide me how to set static IP in OpenSuse.


Regards,
Yogesh

Last edited by yogesh_attarde; 12-15-2013 at 11:57 PM.
 
  


Reply



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
[SOLVED] Debian Router/DHCP server, Machines on LAN can't see eachother trrpip Linux - Networking 2 07-29-2012 04:56 PM
How to bypass DHCP of IPCop relay to Windows DHCP Server gclimbo Linux - Software 3 06-08-2008 08:30 PM
Accepting syslog from other machines. Jerre Cope Linux - Newbie 2 07-09-2004 02:50 PM
How do machines see each other by name with a hardware DHCP server? ericcarlson Linux - Networking 1 06-07-2004 09:09 AM
dhcp server works for win2000, not win95 machines lgetsche Linux - Networking 3 08-17-2002 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:52 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