Click to See Complete Forum and Search --> : DHCP IP range question


Neo-Rio
06-10-2003, 03:10 AM
Got a DHCP server running for my RH9 linux box.

I set the range in the conf file from 192.168.0.2 to 192.168.0.100

When the Windows client logs on, the IP is set to 192.168.0.100.
Is there a way to configure the IP so that it is 2 and not 100?

I tried setting the range from 2 to 10 and then the client couldn't even connect.

Why does DHCP work like this?

jumpedintothefire
06-10-2003, 03:42 AM
What is in the dhcpd.conf file??
Did you set the mac address for the client to be .100?
or use the mac address to set it to .2....

There should be a file called dhcpd.leases... find it and have a look in it.... note the mac address for the client.. and adjust the dhcpd.conf file to suit your needs... restart the service on the server, release and renew the client....

Neo-Rio
06-10-2003, 04:07 AM
looked in dhcpd.leases, and it's empty. So there's nothing to adjust and I have no idea how to write to it if I had to.

So the mac address of the client network card determines how DHCP works? Didn't know that.... I am a total newbie, trying to figure out every different kind fo server function in linux.

Any way of changing the client mac address? Is that even possible, cause I hear they are hardwired things.

jumpedintothefire
06-10-2003, 11:29 AM
You don't change the mac address, just the ip address that is assigned to it, in the dhcpd.conf file.... The dhcpd.lease file is a record of the what the server has handed out to the clients, nothing to adjust in there, just a good (only) source for a mac address to ip address mapping... Can you post the dhcpd.conf file, so we not guessing at what is in it....

bwkaz
06-10-2003, 09:42 PM
My DHCP server hands out leases in reverse order too. No idea why, but it doesn't bother me (since I have my DHCP server set to first, not let clients update DNS on their own, then second, update the local LAN's DNS server on lease changes -- then I just use hostnames instead of IP addresses).

camelrider
06-11-2003, 09:06 AM
If it's a really small netowrk and you don't have laptops, etc. logging in from time to time why not just use static ip's?
On my home network my Linux box/router is 10.0.0.1 and my son's Win98 box is 10.0.0.2.
It just seemed simpler than setting up dhcp. ;)