LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-25-2003, 10:18 AM   #1
ms_lyon
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
DHCPD problem - no free leases


Hi,

I get this message form my (Suse) DHCP server:
DHCPDISCOVER from x:x:x:x:x via eth0: network 192.168.1.0/24: no free leases

Here is my /etc/dhcpd.conf

ddns-update-style none;

subnet 192.168.1.0 netmask 255.255.255.0 {
host example {
hardware ethernet x:x:x:x:x {
fixed-address 192.168.1.10;
}
}


And the client (the printer) which is configured to get automatically the IP address never gets it!!!

Can anyone help?

Many thanks.
 
Old 02-25-2003, 11:35 PM   #2
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
your file are missing most of the important lines. Here is my file.

#This is my dhcp server setting
default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
ddns-update-style ad-hoc;
option domain-name-servers 151.164.14.201,151.164.1.8;
option netbios-name-servers 192.168.1.1;
option domain-name "COJO";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

It should work for your network. Since, we use the same subnet. You could change the domain name to whatever you want. Let me know if you still need help.
 
Old 02-26-2003, 01:32 AM   #3
ms_lyon
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Original Poster
Rep: Reputation: 0
You didn't understand...
I just want my printer to have a fixed address assigned..I don't want to use range declaration..
 
Old 02-26-2003, 10:52 AM   #4
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Ok, I guess I don't really understand. If your want a fixed address assigned to your printer. Why don't you manually assign a static IP to your network pritner? Won't that be easier and save your linux box from running an extra process?
 
Old 05-29-2017, 01:42 PM   #5
clsgis
Member
 
Registered: Nov 2007
Posts: 37
Blog Entries: 4

Rep: Reputation: 5
Lightbulb

This thread shows up when folks search for an error from ISC dhcpd "DHCPDISCOVER from ma:c:ad:dr:es.s via interface: network range: no free leases"

Most of the answers in forums say "you need a range statement" and then the OP complains "that didn't fix it" and the thread ends.

Modern versions of ISC's DHCPd require that range statement to be inside the subnet definition. EG,

range 192.168.1.100 192.168.1.150;
subnet 192.168.1.0 netmask 255.255.255.0 {
default-lease-time 6000;
max-lease-time 70200;
}

will throw the error, and repeating the range statement will fix it:

range 192.168.1.100 192.168.1.150;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
default-lease-time 6000;
max-lease-time 70200;
}
 
  


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
DHCPD no free leases HiOctane21 Linux - Networking 6 10-02-2013 11:21 PM
DHCPD Has No free leases? FishGills Linux - Networking 7 01-24-2009 06:49 PM
find out all free leases from dhcpd saavik Linux - Networking 2 07-27-2005 02:03 AM
dhcpd server leases wont work :( hath Linux - Networking 4 02-21-2002 05:21 PM
dhcpd server not letting go of leases Jase Linux - Networking 10 01-17-2002 05:57 PM

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

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