Windows DHCP Server: How to easily change a Scope Subnet
When the subnet changes, you will have to do a lot of work to remake all your DHCP options because you have to erase the scope to remake it after.
You will need to save this information in order to remake:
- Excluded IPs
- Reservation(s)
- DHCP's scope option(s)
There is an easy way to do it with NETSH:
netsh dhcp server **\”Server” scope “ip_of_scope” dump>c:\dhcp.txt **
Edit the file and change the line:
Dhcp Server \server *add scope 192.168.0.0 255.255.255.128 "Pool DHCP" ""
*
Save the file and when ready, erase the DHCP scope and issue:
netsh exec c:\dhcp.txt
And voila. The scope will be changed easily!
Other Languages
This article is also available in the following languages: