Q. How can I export DHCP settings from one machine to another?
A.
The best solution is to use the dhcpexim tool:
How to move a DHCP database to a computer that is running Windows
Server 2003
Q. But the dhcpexim tool doesn't import my reservations!
How do I do that?
A. On the old server:
From a command prompt run "netsh dhcp dump > c:\dhcp.txt"
On the new server, edit the dhcp.txt file to just include the
reservations. You can remove all the comment sections -
everything but the reservation info. Change the ip address in
the dhcp.txt to be the new server ip address. Mine looks like
this:
Dhcp Server 192.168.1.2
Scope 10.32.0.0 Add reservedip 10.32.1.105 0003931fdbef "Rm 105
Kohler Airport" "" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.132
0001e64218c5 "NPI4218C5.cvsd.org" "" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.136
0030c155173b "NPI55173B.cvsd.org" "" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.145
00108328c49c "NPI28C49C.cvsd.org" "Rm 308 LJ 1200" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.146
0001e64ad893 "990cxiRm310" "990cxiRm310" "BOTH"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.15
0001e66c2a60 "NPI6C2A60.cvsd.org" "" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.199
0010832c4499 "NPI2C4499.cvsd.org" "Rm 106 LJ 1200" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.202
0010839f2d8b "NPI9F2D8B.cvsd.org" "Rm 107 LJ 1200" "DHCP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.206
0001e64b2d7d "Imus Rm201" "" "BOTH"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.208
0001e6919a59 "NPI919A59.cvsd.org" "" "BOOTP"
Dhcp Server 192.168.1.2 Scope 10.32.0.0 Add reservedip 10.32.1.209
0060b02da495 "NW Quad Laserjet 5M" "" "BOTH"
On the new server, from a command prompt type "netsh -f c:\dhcp.txt"