LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-19-2009, 05:25 PM   #1
lionel.rpm
LQ Newbie
 
Registered: Jul 2009
Distribution: Debian Lenny
Posts: 4

Rep: Reputation: 0
Wrote 0 leases to leases file - DHCP server


Hi all!

I'm attempting to set up a DCHP server on my Debian Lenny (first time), but something is going wrong with the leases file. Here's my syslog after the start up ( Don't fail ):

/var/log/syslog

localhost dhcpd: Wrote 0 leases to leases file.



As a matter of fact, I set the interface eth0 in /etc/default/dhcp3-server:

INTERFACES="eth0"



DHCP configuration:

/etc/dhcp3/dhcpd.conf

dns-update-style none;

option domain-name-servers 192.168.1.100, 208.67.222.222, 208.67.220.220;

# I installed bing9 dns server ( It's working )

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

authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.200 192.168.1.229;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
}


Network configuration:

/etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1



Thanks in advance!


PS: I was following this HowTo.
 
Old 07-20-2009, 03:42 AM   #2
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
Lease file contains the information about the IPs leased to client machines. Since you have just installed the DHCP server, there must be no IP leased.

Apart from this warning, check if client machines are getting IP from DHCP server. And then you can just cat the lease file to see whether lease records are written in there or not.
 
Old 07-21-2009, 01:54 PM   #3
lionel.rpm
LQ Newbie
 
Registered: Jul 2009
Distribution: Debian Lenny
Posts: 4

Original Poster
Rep: Reputation: 0
Is The Server Working?

Thanks for the reply! I tried to connect a client through a Hub but It didn't recive any DHCPOFFER... How can I find out that the server is working?

Thanks again!
 
Old 07-22-2009, 06:05 PM   #4
suhas!
Member
 
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
Quote:
Originally Posted by lionel.rpm View Post
Thanks for the reply! I tried to connect a client through a Hub but It didn't recive any DHCPOFFER... How can I find out that the server is working?

Thanks again!
Can you provide us DHCP relevant logs ?
 
  


Reply

Tags
dhcp, leases, server



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 on CentOS 4.7 - /var/lib/dhcp/dhcpd.leases: Permission denied Latitude Linux - Networking 1 06-05-2009 02:08 AM
DHCP SERVER ... no free leases!!!!! eder_michael11 Linux - General 2 04-25-2006 05:47 PM
dhcp not writing leases oberon-ken-obi Linux - Newbie 8 04-14-2005 01:44 PM
DHCP leases file not being generated. abhijeetudas Linux - Networking 1 09-25-2004 10:31 PM
DNS not resolving notes server name and dhcp not releasing leases DanielKwok Linux - Networking 1 02-10-2004 10:04 PM

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

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