Tag Archive: DHCP


How to export and import DHCP database

Note: be careful, when backup/restore DHCP. Remove the failover configuration on source DHCP before to perform a backup.

http://westontech.org/backup-and-restore-dhcp-with-failover-configuration-server-2012/

Try netsh dhcp export / import => this old method will not backup the FAILOVER settings. So it will help in your case to restore only the scopes.

 

jacques

A) Using the netsh command (OLD method):

To backup:
netsh dhcp server export d:\dhcpbackup\BackupFile.txt all

To restore:
Performing this task will create a file in the d:\dhcpbackup folder
Copy this file to the computer running Windows Server 2016 that will function as the new DHCP server.
You’ll need to install the DHCP server role on this computer and authorize the DHCP server in Active Directory before performing the following actions.
Open an elevated command prompt and run the following commands (this assumes you’ve copied the file to a folder named d:\dhcpbackup\)

Net stop DHCPserver
Del c:\windows\system32\DHCP\DHCP.mdb
Net start DHCPserver
Netsh dhcp server import d:\dhcpbackup\backupfile.txt
Exit
Net stop DHCPserver
Net start DHCPserver

B) Else using powershell (Recommended):

To backup:
https://docs.microsoft.com/en-us/powershell/module/dhcpserver/export-dhcpserver?view=win10-ps

To restore:
https://docs.microsoft.com/en-us/powershell/module/dhcpserver/import-dhcpserver?view=win10-ps

Advertisements

To implement a delegation to allow a new DHCP server in AD:

Modify the permissions on the DHCP server container object in Active Directory:

Type adsiedit.msc from Start > Run…
Expand from:
Configuration Container[your DC FQDN]
CN=Configuration,DC=<your_domain>,DC=com
CN=Services
CN=NetServices

What we need to assign rights is:

1. Right click choose Properties.
2. Choose Security tab, advanced permissions,
3. Add the user or group you want to grant permission to Authorize a DHCP Server.
4. Grant Allow Full Control right (select “This object and all descendant objects”).

NOTE: You may also need to grant this user “Allow logon locally” rights to
that machine

IP Address Management (IPAM) in Windows Server 2012 is a framework for discovering, monitoring, managing and auditing IP address space on a corporate network. IPAM provides the following features:

  • Automatic IP address infrastructure discovery
  • Highly customizable IP address space display, reporting, and management
  • Configuration change auditing for DHCP and IPAM services
  • Monitoring and management of DHCP and DNS services
  • IP address lease tracking

Web resources:

http://technet.microsoft.com/en-us/library/jj878339.aspx

http://blogs.technet.com/b/canitpro/archive/2013/08/15/step-by-step-setup-windows-server-2012-ipam-in-your-environment.aspx