I have a device which acts as a router and DHCP server. I'm replacing it, and would like to minimize down time.
If I unplug it, and plug in a different device with the same IP, will all the PCs with DHCP leases keep on working? (I have DHCP Conflict detect on, so it shouldn't reassign a DHCP address already used).
What if I want to change the IP (new subnet) - is there anyway to tell all the clients (Windows PCs) to release their DHCP leases and request new ones in a minute?
If before unplugging the old device, I have it release all DHCP leases, will the Windows PCs automatically ask for new DHCP addresses?
DCHP lease are client based. It's the client that request lease, ask later if it can renew it (to extend it and so keep the ip).
While the lease is valid, clients keep their config. But they will contact again the dhcp server before the end to try to renew it.
So you could have a dhcp lease big enough to handle the change. Take care, removing the router will make client unable to reach what was behing the router (internet for example), while the new one is not ready.
If the new router provide ip using another subnet, client will use this new subnet when their current lease expire. To handle the change, your router must have ip in both new and old (2 ip on same ethernet card), and provide lease only on the new one. So old client still works, and new one too.
You could do a batch using psexec for example to connect remotely on each computer and do an ipconfig /renew to force the change before lease expire.
The DHCP should continue to work until the leases expire, since once a machine has an IP address it will try to hold onto it unless told otherwise.
So to answer your questions:
1) Yes.
2) Not if you want to change the subnet, no.
3) Yes, probably. I say probably, but the DNS might be cached so you may need to run
ipconfig /flushdns
andipconfig /registerdns
after the fact.