How to Easily change a DHCP's Scope Subnet

How to Easily change a DHCP's Scope Subnet

When the subnet changes, you will have to do a lot of work to remake all your DHCP's 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 a easy way to do it with NETSH;


netsh dhcp server \\”Server” scope “ip_of_scope” dump>c:\dhcp.txt 


After; 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 the following languages:

Leave a Comment
  • Please add 6 and 1 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Yagmoth555 edited Revision 1. Comment: added fr-FR link !

  • Ed Price - MSFT edited Original. Comment: Spelling in the title and some grammar changes. You can translate your own English articles if you want and those count in the Translation Challenge. Thanks!

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Ed Price - MSFT edited Original. Comment: Spelling in the title and some grammar changes. You can translate your own English articles if you want and those count in the Translation Challenge. Thanks!

  • Yagmoth555 edited Revision 1. Comment: added fr-FR link !

  • Thanks! It made my day!

Page 1 of 1 (3 items)