LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 07-19-2009, 06:25 PM   #1
lionel.rpm
LQ Newbie
 
Registered: Jul 2009
Distribution: Debian Lenny
Posts: 4
Thanked: 0
Wrote 0 leases to leases file - DHCP server


[Log in to get rid of this advertisement]
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.
lionel.rpm is offline  
Tag This Post , , ,
Reply With Quote
Old 07-20-2009, 04:42 AM   #2
suhas!
Member
 
Registered: Mar 2007
Posts: 93
Thanked: 3
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.
suhas! is offline     Reply With Quote
Thanked by:
Old 07-21-2009, 02:54 PM   #3
lionel.rpm
LQ Newbie
 
Registered: Jul 2009
Distribution: Debian Lenny
Posts: 4
Thanked: 0

Original Poster
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!
lionel.rpm is offline     Reply With Quote
Old 07-22-2009, 07:05 PM   #4
suhas!
Member
 
Registered: Mar 2007
Posts: 93
Thanked: 3
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 ?
suhas! is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:08 AM
DHCP SERVER ... no free leases!!!!! eder_michael11 Linux - General 2 04-25-2006 06:47 PM
dhcp not writing leases oberon-ken-obi Linux - Newbie 8 04-14-2005 02:44 PM
DHCP leases file not being generated. abhijeetudas Linux - Networking 1 09-25-2004 11:31 PM
DNS not resolving notes server name and dhcp not releasing leases DanielKwok Linux - Networking 1 02-10-2004 11:04 PM


All times are GMT -5. The time now is 02:37 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration