Solved

DHCP Question

Posted on 2014-07-23
5
197 Views
Last Modified: 2014-07-28
Simple question ...

My DHCP server is running Windows 2003 R2. The subnet mask is 255.255.254.0, effectively giving me 510 IP addresses.

I am running out of IP addresses.

Can I change the subnet mask to 255.255.252.0, giving me 1022 IP addresses -WITHOUT- losing all of my reservations?

This is a simple, flat network here.

Thanks.
0
Comment
Question by:glenj1978
5 Comments
 
LVL 7

Expert Comment

by:CorinTack
Comment Utility
The closest you can get is exporting your reservations first, creating the new range, then importing them.

See the following article (and the first few comments) for how to accomplish this (the comments are necessary to understand what you need to do to get the reservations to import with the altered IP scope): http://koolbeans.wordpress.com/2007/07/31/howto-import-and-export-dhcp-reservations-in-server-2003/
0
 
LVL 9

Expert Comment

by:Sandeep Gupta
Comment Utility
since you are changing the subnet mask thus you have to flush all the existing with .254.

This is very simple change of not more than 5 minutes..with minimum impact
0
 
LVL 16

Accepted Solution

by:
vivigatt earned 500 total points
Comment Utility
Check this article:
http://support.microsoft.com/kb/255999

It does not mention how to keep your reservations, but check this article:
http://www.mpking.com/2013/08/using-netsh-to-export-and-import-dhcp.html

So now, a path is clear:
Use the netsh "dump" method described in the 2nd article to export your reservations

Extend your DHCP scope by resubnetting (use http://subnet-calculator.com if you need help with subnet ranges, starting and ending addresses etc) as described in the 1st artcile.

Import the DHCP reservations as described in the 2nd article.

Voilà !
0
 

Author Comment

by:glenj1978
Comment Utility
Sandeep ...

I realize its a 2 minute change to change the subnet mask and instantly have 1022 IP addresses to give out, but I don't want to lose my 125 address reservations and have to re-enter them manually.

With all the millions of little utilities that have been written by everyone and their mother over the last 30 years, you'd think SOMEBODY would have written one that exports the reservations, changes the subnet mask, and imports the reservations back. Ugh :)
0
 
LVL 16

Expert Comment

by:vivigatt
Comment Utility
The 2nd article I mention describes exactly how to export and import a list of DHCP reservations.
You will need to edit some text file but it should not be too complex.
If you can't figure it out, just run the command:
netsh dhcp server dump > dhcpcfg.txt

Open in new window

and attach the dhcpcfg.txt file to your reply, I'll create the modified text file for you and I'll let you know how to use it...
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now