[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 989
  • Last Modified:

moving DHCP from one server to another

I am running DHCP on a win 2k3 server and I want to move my DNS and DHCP over to a new windows server 2k8 R2.  I would like to have a split scope, does anyone recomend any good sites that depict the transition clearly?
0
afacts
Asked:
afacts
  • 2
2 Solutions
 
Paul MacDonaldDirector, Information SystemsCommented:
Moving and splitting a scope are two different things.  If you're splitting an existing scope, your best bet is to just come in over a weekend and set up the new scopes.  If you're moving an existing scope, you can do this:
http://blogs.technet.com/b/networking/archive/2008/06/27/steps-to-move-a-dhcp-database-from-a-windows-server-2003-or-2008-to-another-windows-server-2008-machine.aspx

DNS is easy - just set up the new server; make sure everyone can see the new server/is pointed to it; decommission the old one.
0
 
afactsAuthor Commented:
here's the problem, I'm having some dhcp server problems, so I didn't want to export the databases, I wanted to create it from scratch, so I don't import the dhcp problem over to my new server.  But perhaps since the data is just a .txt file, the new server might not experience the problem.  I have PCs not able to get IPs from my dhcp server and then I have "bad_address" listed numerous times in my dhcp server.

Can I perform this transfer during business hours? I'm assuming the PCs that have the lease, should continue to be fine until the lease expires, right?

so with DNS, I will create two new DNS servers, but how do I replicate the data from the old server to the new server, I'm not sure how to do that, and now sure how to decommission it?

Also, I'm still planning to use that server for a few more months, as I have other crtical programs running on it.
0
 
Paul MacDonaldDirector, Information SystemsCommented:
Clients with a lease will try to renew that lease periodicallly.  It won't hurt them if DHCP is down, but if a lease actually expires while DHCP is down, that client will lose network access.

What you can do is set and configure up the DCHP service, but leave the service turned off.  Then, after hours, kill one DHCP server and bring the other online.

As to DNS, setting up the additional servers is a snap.  If they're all AD integrated, they'll all end up with the same data once they replicate with each other.  Once the two new DNS servers are set, you can kill the service on the old server.
http://technet.microsoft.com/en-us/library/cc725925.aspx
http://technet.microsoft.com/en-us/network/bb629410.aspx
0
 
aaromal111Commented:
Changing the DHCP scope subnet mask
 
Change the subnet mask in existing DHCP scope
 
You can’t change the subnet mask of the DHCP scope directly without deleting the scope, need to delete the DHCP scope first then recreate the scope with new subnet, but this will lead to large amount of manual work
 
To avoid the manual work use the below netsh command to Change the subnet mask in existing DHCP scope with the simple steps
 
Use the below command to export the scope configuration
 
Syntex:
 
C:\>netsh dhcp server \\”Server name” scope “scope subnet” dump>c:\dhcp.txt
 
Example:
 
C:\>netsh dhcp server \\Test01 scope 192.168.1.0 dump>c:\dhcp.txt
 
To change the subnet mask of the scope
 
Open the dhcp.txt file and change the subnet mask, dhcp.txt file resemble the following
 

Changed the current scope context to 192.168.1.0 scope.
 
Dhcp Server 192.168.1.24 add scope 192.168.1.0 255.255.255.0 "Vlan-1" "Vlan-1"
 Dhcp Server 192.168.1.24 Scope 192.168.1.0 set state 1
 

Edit the file and save
 
After this, delete the scope and run the below command to create the scope from the txt file

C:\>netsh exec c:\dhcp.txt
 
This will automatically create the DHCP scope with the new subnet mask
 
This way you can change other configuration details along with subnet mask change, like IP range and Excluderanges
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now