LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2003, 02:46 AM   #1
del_gr
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Rep: Reputation: 0
Question dhcpd wrong ip lease?


Hello,
i have configured dhcpd using the following dhcpd.conf file:

ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

range 192.168.0.1 192.168.0.255;
default-lease-time 21600;
max-lease-time 43200;

}

but it keeps assigning 192.168.0.255 at the first machine that tries to get an ip from dhcp. Generally it gives out the last address from the range declared in dhcpd.conf

i 've read the most of the dhcpd.conf documentation but i can't get it to work properly.

Any ideas?

Thanks,
del_gr
 
Old 03-18-2003, 04:01 AM   #2
jonconley
LQ Newbie
 
Registered: Mar 2003
Distribution: PRESENT: rh9
Posts: 14

Rep: Reputation: 0
Re: dhcpd wrong ip lease?

Quote:
Originally posted by del_gr

range 192.168.0.1 192.168.0.255;

but it keeps assigning 192.168.0.255 at the first machine that tries to get an ip from dhcp. Generally it gives out the last address from the range declared in dhcpd.conf
Im new to this, but isn't it doing exactly what you said it is supposed to do?
 
Old 03-18-2003, 04:56 AM   #3
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
I'm confused too.
 
Old 03-18-2003, 05:22 AM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
It looks like your range statement is stomping on your local ip configuration. Don't you want to keep the dhcp server out of the DHCP lease pool? Oh and .255 is usualy a broadcast address... I would change the range to something like 192.168.0.10 - 192.168.0.254 (keep some room for servers in the 1 - 9 range).

Last edited by mcleodnine; 03-18-2003 at 05:24 AM.
 
Old 03-18-2003, 07:56 AM   #5
del_gr
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Now i am confused too. (more confused)

lets say i have in my dhcpd.conf :
"range 192.168.0.10 192.168.0.20"

Is it working properly if the first lease is 192.168.0.20, the second 192.168.0.21 and keep going. ?
( if this is ok then the problem is in my brain )
Thanks,
del_gr
 
Old 03-18-2003, 08:33 AM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
uhhh. nope. any leases would be in the range from 192.168.0.10 to 192.168.0.20
 
Old 10-24-2006, 10:58 AM   #7
cooljimwhy
LQ Newbie
 
Registered: Nov 2005
Location: New Concord, Ohio
Distribution: Slack' for now, trying Ubuntu / Gentoo.
Posts: 11

Rep: Reputation: 0
I've had the exact same problem. I even kept the broadcast address out of the pool and it still leases out random octets. Solution? I'm not quite sure
 
  


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
Wrong netmask for dhcpd ? michaelsanford Linux - Networking 3 05-11-2005 10:15 AM
what's wrong with this dhcpd.conf? gsgleason Linux - Networking 4 10-26-2004 12:57 PM
Howto update firewall on dhcpd lease Noerr Linux - Networking 3 06-09-2004 10:36 PM
dhcpd - new lease every second on M$ box charon79m Linux - Networking 4 06-02-2004 09:31 AM
dhcpd lease question Jase Linux - Networking 2 01-31-2002 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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