LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP Lease Delete! (http://www.linuxquestions.org/questions/linux-networking-3/dhcp-lease-delete-211174/)

kofi 07-29-2004 05:02 PM

DHCP Lease Delete!
 
Hello All,

I did a dumb thing. I have a network of about 50 computers (Win 98 & XP) and my servers are all RHEL 3.0 . I therfore have a DHCP running on one of the Linux Servers.

I decided to reset my IP address range the DHCP server was giving out so I deleted both

/var/lib/dhcp/dhcpd.leases
/var/lib/dhcp/dhcpd.leases~


and since then my network has never been the same. When computers boot up they can't seem to connect to the internet. I have to do a

ipconfig release
ipconfig renew


and then it works ok or I have to assing a static IP address and enter a DNS server address. Funny thing the computers have no problem connecting to the Samba file server The issue seems to be with acessing the DNS Server so they can connect to the internet. I later read that you never edit the lease file manually.

I have since replaced the DHCP server with a new one with a fresh copy of Redhat Enterprise Linux 3.0 and still the same issue continues. Has anyone been through this or does anyone know I can fix this ? Is the anyway to reverse this diumb move?

THanks all for your prompt responses.

Kofi.

xtra 07-29-2004 05:20 PM

??

I was under the impression that if you do not change dhcpd.conf and restart the dhcpd then all would be fine again...

I'll check it out with a friend of mine and let you know.

stickman 07-29-2004 08:00 PM

Since you've removed all of the leases, your dhcp server is re-assigning leases that it thinks are available. Unfortunately, any machines that got their leases before you reset the server don't know that your server is now giving out duplicates. Try releasing on all of the machines before renewing.


All times are GMT -5. The time now is 09:05 PM.