LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-06-2010, 11:25 AM   #1
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 16

Rep: Reputation: 0
DHCP server and no free leases error


I think I have everything configured correctly, but still keep getting these in the messages file of my DHCP server (IP, MAC, server names changed). This is eventually going to be a System Imager server as well, hence a single static IP assignment for now, to be expanded later.

May 6 06:00:48 dhcp-server dhcpd: DHCPDISCOVER from 00:11:22:33:44:55 via 123.123.80.2: network 123.123.80/23: no free leases


Here is my /etc/dhcpd.conf file

# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
########### GLOBAL SETTINGS ##################
ddns-update-style interim;
allow booting;
allow bootp;
class "pxeclients" {
match if substring(option vendor-class-identifier, 0, 9) = PXEClient";
next-server 123.123.145.40;
filename "linux-install/pxelinux.0";
}

#option option-140 code 140 = text;

############# END GLOBAL SETTINGS #############

subnet 123.123.145.0 netmask 255.255.255.128 {
range 123.123.145.42 123.123.145.44;
default-lease-time 3600;
max-lease-time 4800;
option routers 123.123.145.1;
option subnet-mask 255.255.255.128;
option domain-name "us.you.com us.youandme.com";
option domain-name-servers 123.123.130.65, 123.123.130.64;
}

subnet 123.123.152.0 netmask 255.255.254.0 {
default-lease-time 3600;
max-lease-time 4800;
option routers 123.123.152.1;
option subnet-mask 255.255.254.0;
option domain-name "us.you.com us.youandme.com";
option domain-name-servers 123.123.130.31, 123.123.130.32;
}

subnet 123.123.40.0 netmask 255.255.254.0 {
default-lease-time 3600;
max-lease-time 4800;
option routers 123.123.40.1;
option subnet-mask 255.255.254.0;
option domain-name "us.you.com us.youandme.com";
option domain-name-servers 123.123.130.31, 123.123.130.32;
}

subnet 123.123.16.0 netmask 255.255.252.0 {
default-lease-time 3600;
max-lease-time 4800;
option routers 123.123.16.1;
option subnet-mask 255.255.252.0;
option domain-name "us.you.com us.youandme.com";
option domain-name-servers 123.123.130.31, 123.123.130.32;
}

subnet 123.123.80.0 netmask 255.255.254.0 {
default-lease-time 3600;
max-lease-time 4800;
option routers 123.123.80.1;
option subnet-mask 255.255.254.0;
option domain-name-servers 123.123.130.64, 123.123.130.65;
}


group {
use-host-decl-names on;
filename "pxelinux.0";


host host5 {
hardware ethernet 00:11:22:33:44:55;
fixed-address 123.123.145.43;
option host-name "host5";
filename "pxelinux.0";
}

}
 
Old 05-06-2010, 12:10 PM   #2
zrnaqvi
LQ Newbie
 
Registered: Nov 2009
Posts: 16

Original Poster
Rep: Reputation: 0
I did some more testing on this. I think the problem is that the static IP I am trying to assign is in the 123.123.145.x network but due to the way networking is setup the incoming DHCPREQUEST seems to be coming from the 123.123.80.x network. Due to which my static IP assignment, which is in the 123.123.145.x network doesn't work. If I change my static IP assignment to 123.123.80.43, for example, it works fine.

So I guess if I can force the DHCP severs to allow me a x.x.145.x IP assignment for a request coming from x.x.80.x network, or somehow mask the incoming DHCPREQUEST as coming from x.x.145.x I can make it work.

Any opinions or advice?
 
  


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
dhcp leases BFCsaus Linux - Newbie 1 04-27-2010 06:39 PM
Wrote 0 leases to leases file - DHCP server lionel.rpm Linux - Server 3 07-22-2009 07:05 PM
DHCP on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 03:08 AM
DHCP SERVER ... no free leases!!!!! eder_michael11 Linux - General 2 04-25-2006 06:47 PM
DNS not resolving notes server name and dhcp not releasing leases DanielKwok Linux - Networking 1 02-10-2004 11:04 PM

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

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