Click to See Complete Forum and Search --> : DHCP only allowing old ips.....


robbs
08-08-2003, 12:23 AM
I finally got DHCP and DNS working on Redhat 7.3, but when I change the ip ranges to ones lower than the one I had originally I can't get mt cliets to connect. For example presently if I set the range form 192.168.0.10 to 192.168.0.200, I'll get ip address 192.168.0.101 on my XP machine. But, if I change the range from 192.168.0.10 to 192.168.0.90, my Xp maching is unable to connect to the DHCP server. I don't understand, and I'm confused. I'm not sure where to go from here, been searching all evening...
Any ideas, would appreciate it, please...

robbs
08-08-2003, 01:20 PM
I checked it again, and using my mac address, I can assign an aip address by dhcpd.conf. But if I change this now and set a range outside of what that ip was the client machine can't connect. Don't understand why.

YorkshireYank
08-08-2003, 01:33 PM
did you try deleting and recreating the /var/state/dhcp/dhcpd.leases file? it records what IP's are assigned to what MAC address and as far as i can tell (i'm FAR from an expert), it tries to reasign IP's before creating new ones..

let me know how it goes because i just setup a linux box as my router/dhcp server/webserver and would be interested to know the outcome

Gertrude
08-08-2003, 01:35 PM
Sometimes with XP or any Windows OSes you can go to a command prompt type 'ipconfig /release' then it should show the IP address as all zeros.. Reboot the computer.. Sometimes if the subnet or anything like that changes it wont be able to connect due to it trying to obtain and renew the old IP it had.

robbs
08-08-2003, 01:55 PM
I tried releasing it, but was still unable to get an ip address. But I didn't reboot. I will try it when I get home, I'm at work. But my computer crashed a few nights ago, the swap drive died, so I'm not sure it it affected it. I also did stop the dhcpd server and deleted the dhcpd.leases file, created a new one with the touch command then reboot. I even tried booting into linux and couldn't get an ip.

robbs
08-08-2003, 10:04 PM
I released the ip address and shutdown all the machines, and rechecked my config files. It's working fine now, even if I change the range and restart the server it works fine unlike before

Hey YorkshireYank, I got it now, was using the router and firewall now for about a year no problems, but just set up dhcp and dns last weekend. I lost a hard drive 2 nights ago, and my system went a little harwire, but it's all good now.