LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dhcpd wrong ip lease? (http://www.linuxquestions.org/questions/linux-newbie-8/dhcpd-wrong-ip-lease-50409/)

del_gr 03-18-2003 03:46 AM

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. :mad:

Any ideas?

Thanks,
del_gr

jonconley 03-18-2003 05:01 AM

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?

snocked 03-18-2003 05:56 AM

I'm confused too.

mcleodnine 03-18-2003 06:22 AM

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).

del_gr 03-18-2003 08:56 AM

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

mcleodnine 03-18-2003 09:33 AM

uhhh. nope. any leases would be in the range from 192.168.0.10 to 192.168.0.20

cooljimwhy 10-24-2006 11:58 AM

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 :(


All times are GMT -5. The time now is 11:30 AM.