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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s