Discussion Locked

Win 2000 isn't releasing the ip lease

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Windows is not releasing the DHCP lease on shutdown. I found one that is to write a batce file ipconfig/release and copyed to shutdown script under windows . what like do is to find a way to write a script in windows that it will relase the ip address when windows shuts dwon. Or is there anyting that any one can think about to solve this problem.

5 replies

by kevin_b

The IP lease length is determined by the DHCP server, not the client. If the server has the lease length set for 7 days, the PC will keep that IP for seven days unless another PC grabs that IP while the original PC is offline or shut down. If you want it to release the IP, set the DNS server to one day lease length and that will solve the issue. On a side note, why do you want it to release every day? The nice thing about a longer lease length is it cuts down on network traffic from every PCgetting an IP every day and it also makes sure that if the DHCP server goes down, you still have an IP address so your network isn't down while the DSCP server is. Good Luck!

by zow

The problem we are having is that unless deleded the ip address in the DHCP the ip address is still there. What i mean we dod not have a lot of ip address so when the user shuts down thier pc the ip address is not released by windows , so we have togo our dhcp server and deleded the ip address. if I run the batch file that has the ipconfig/releas it release it from the DCHP server right away. I fuond a way on doing it on win2000

This discussion is closed to new replies.