Fedora Linux Support Community & Resources Center
  #1  
Old 17th March 2009, 09:48 AM
cr4z3 Offline
Registered User
 
Join Date: Jan 2009
Posts: 5
DHCPD - no free leases

I've just setup dhcpd on fedora 10 and from what i can tell the config looks fine but when i check /var/log/messages i can see the following:

localhost dhcpd: DHCPDISCOVER from xx:xx:xx:xx:xx:xx via eth0: network x.x.x.x/24: no free leases

I can't work out why, i have dhcpd only assigning to a few mac addresses and i've confirmed from the logs that the mac address is correct. I've also tried deleting dhcpd.leases and restarting dhcpd but no luck.

Here is a copy of the config, any suggestions would be appreciated.

option routers x.x.x.1;
option domain-name-servers 203.0.178.191;
default-lease-time 600;
max-lease-time 7200;
class "homenet" {
match pick-first-value (option dhcp-client-identifier, hardware);
}

subclass "homenet" xx:xx:xx:xx:xx:xx;
subclass "homenet" xx:xx:xx:xx:xx:xx;
subclass "homenet" xx:xx:xx:xx:xx:xx;

subnet x.x.x.0 netmask 255.255.255.0 {
pool {
max-lease-time 300;
range x.x.x.151 x.x.x.169;
allow members of "homenet";
deny unknown-clients;

}
}
Reply With Quote
  #2  
Old 17th March 2009, 10:49 AM
daverj Offline
Registered User
 
Join Date: Jan 2006
Location: Denver, CO USA
Posts: 670
in your subclass statement, put a "1:' in front of the mac address, so instead of
Code:
subclass "homenet" xx:xx:xx:xx:xx:xx;  (real mac address of course)
put
Code:
subclass "homenet" 1:xx:xx:xx:xx:xx:xx;
that should do it.
Reply With Quote
  #3  
Old 18th March 2009, 02:43 AM
cr4z3 Offline
Registered User
 
Join Date: Jan 2009
Posts: 5
Yeh i noticed this earlier, but that's made no difference, i've changed the config to the following with no success:

ddns-update-style ad-hoc;

default-lease-time 600;
max-lease-time 7200;

class "homenet" {
match pick-first-value (option dhcp-client-identifier, hardware);
}

subclass "homenet" 1:00:0f:xx:xx:xx:2b;
subclass "homenet" 1:00:16:xx:xx:xx:71;
subclass "homenet" 1:00:21:xx:xx:xx:0a;

subnet 10.1.1.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 10.1.1.255;
option broadcast-address 10.1.1.0;
option routers 10.1.1.1;
option domain-name-servers 203.0.178.191;
pool {
range 10.1.1.151 10.1.1.169;
allow members of "homenet";
deny unknown-clients;
}
Reply With Quote
  #4  
Old 8th April 2009, 06:31 PM
iceweazel Offline
Registered User
 
Join Date: Mar 2009
Posts: 5
Thumbs down

Just hit this today after F10 upgraded my dhcp package. ARGH! Try removing (if it's empty) the /var/lib/dhcpd/dhcpd.leases. That fixed that part for me. This had been working forever before this.

Now I have to figure out why all my tftps are busted as well. (file not found on client side)
Reply With Quote
  #5  
Old 5th December 2012, 09:47 AM
Flailios Offline
Registered User
 
Join Date: Jun 2008
Posts: 8
linuxchrome
Re: DHCPD - no free leases

Deleting /var/lib/dhcpd/dhcpd.leases & restarting dhcpd solved for me!

I had this issue after moving my dhcpd/squid server to a better machine (VirtualBox). DHCP worked great for allocated addresses, but when it had to dip into the pool it hit rock bottom... Here are a few lines of awesomeness.... (What these show is a client sending a request, receiving answer for said request and then showing an ip conflict or no IP issue because of the funky lease file.)
Note: After dhcpd was restarted (while testing), the following log blab'a-blab tailed on through the entire assigned range, IPadd at a time... the only results varied with static IPs

Tailing your logs is your friend. (for noobs sudo tail -fn 100 /var/log/messages|grep dhcpd)


Nov 14 13:58:24 TRCDHCP1 dhcpd: DHCPDISCOVER from 10:78:d2:eb:4a:de via p7p1
Nov 14 13:58:24 TRCDHCP1 dhcpd: DHCPOFFER on 192.168.0.250 to 10:78:d2:eb:4a:de (Terry-PC) via p7p1
Nov 14 13:58:24 TRCDHCP1 dhcpd: DHCPREQUEST for 192.168.0.250 (192.168.0.1) from 10:78:d2:eb:4a:de (Terry-PC) via p7p1
Nov 14 13:58:24 TRCDHCP1 dhcpd: DHCPACK on 192.168.0.250 to 10:78:d2:eb:4a:de (Terry-PC) via p7p1
Nov 14 13:58:24 TRCDHCP1 dhcpd: Abandoning IP address 192.168.0.250: declined.
Nov 14 13:58:24 TRCDHCP1 dhcpd: DHCPDECLINE of 192.168.0.250 from 10:78:d2:eb:4a:de (Terry-PC) via p7p1: abandoned
Nov 14 13:58:34 TRCDHCP1 dhcpd: DHCPDISCOVER from 10:78:d2:eb:4a:de via p7p1
Nov 14 13:58:34 TRCDHCP1 dhcpd: Abandoning IP address 192.168.0.239: pinged before offer
Nov 14 13:58:37 TRCDHCP1 dhcpd: DHCPDISCOVER from 10:78:d2:eb:4a:de via p7p1: network 192.168.0.0/23: no free leases
Reply With Quote
Reply

Tags
dhcpd, free, leases

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Manage DHCP leases? (client side) shadowwyvern Servers & Networking 3 31st August 2006 12:25 AM
dhcpd.leases: Permission denied -- Z4ndX Using Fedora 7 30th August 2006 06:35 PM
The DHCPd lease file /var/lib/dhcp/dhcpd.leases does not contain any leases? DaleEMoore Using Fedora 2 2nd August 2006 04:55 AM
dhcpd.leases problem in FC4 mtyu Servers & Networking 2 11th July 2005 07:32 AM


Current GMT-time: 05:23 (Monday, 24-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Monaco - Chandauli Travel Photos on Instagram - Evora