How to move a DHCP database to a computer running Windows Server 2003

  

This step-by-step article describes how to move a Dynamic Host Configuration Protocol (DHCP) database from a Microsoft Windows NT Server 4.0, Microsoft Windows 2000, or Microsoft Windows Server 2003 The computer is moved to a computer that is running Windows Server 2003.
Exporting a DHCP database from a server running Windows NT Server 4.0 or Windows 2000
  1. Stop the DHCP server service on the server:
    1. Click "Start" and then "Run" , type cmd in the Open box, and then click OK.
    2. At the command prompt, type net stop "microsoft dhcp server" and press Enter. You receive a message that the Microsoft DHCP Server service is stopping. The Microsoft DHCP Server service has stopped successfully.
    3. Type exit and press Enter.

    4. Use JetPack utility to compress the DHCP database:
      1. Click "Start" and "Run" in the "Open" box, type cmd, and then click "OK."
      2. At the command prompt, type cd %systemroot%\\system32\\dhcp and press Enter.
      3. Type jetpack dhcp.mdb temp.mdb and press Enter.
      4. After successfully compressing the database, type exit and press Enter.

      5. DHCP Export Import utility (Dhcpexim.exe to) Export the DHCP database. You can get this utility from the Windows 2000 Resource Kit Supplement 1. You can also access Dhcpexim.exe by visiting the following Microsoft Web site:

        http://www.microsoft.com/windows2000/techinfo/reskit/tools/new/dhcpexim-o.asp
        Exporting the database:

        1. Install the Dhcpexim.exe utility and launch the Dhcpexim.exe utility.
        2. On the Welcome to the DHCP Export Import Tool screen, click Export the configuration of the local service to a file, and then click OK.
        3. In the File Name box, type a filename for the exported file, and then click Save. For example, type dhcpdatabase.txt.
        4. Click the range you want to export, click the Disable selected ranges on local computer before export check box to select it, and then click Export.
        5. Click "OK".

        6. Disable the DHCP Server service on the server:
          1. Click "Start", point to "Settings", click "Control Panel", then double-click "services."
          2. In the Services list, click Microsoft DHCP Server, click Start, click Disable, and then click OK.
          3. If the service is already started, click Stop and then click Yes to confirm stopping the service.
          4. Click Close to close the Services dialog.



            IMPORTANT: move the database from running Windows 2000 server successfully to a server running Windows Server 2003 require the use of Dhcpexim.exe. If you only need this configuration (not the database), use the following command on the Windows 2000-based server from which you want to export the configuration

            netsh dhcp server export C:\\dhcp.txt all
            where C: \\dhcp.txt is the name and path of the export file you want to use.
            Exporting a DHCP database from a server running Microsoft Windows Server 2003
            Moving a DHCP database and configuration from a server running Windows Server 2003 to another server running Windows Server 2003:

            1. Single order Click Start and Run, type cmd in the Open box, and then click OK.
            2. Type netsh dhcp server export C:\\dhcp.txt all and press Enter.
            3. Copy the file to the new server.
            4. Type netsh dhcp server import C:\\dhcp.txt all and press Enter. Mount

              running Windows Server 2003 server DHCP Server service
              existing install the DHCP Server service on a Windows Server 2003-based server: "Start"
              1. Click, click "Control Panel" and then double-click "Add or Remove Programs".
              2. Click Add/Remove Windows Components.
              3. In the Windows Components Wizard, click Network Services in the Components box, and then click Details.
              4. If the Dynamic Host Configuration Protocol (DHCP) check box is not already selected, click the check box to select it, and then click OK.
              5. In the Windows Components Wizard, click Next to install the selected components. If prompted, insert the Windows Server 2003 CD into your computer's CD-ROM or DVD-ROM drive. The installer copies the DHCP server and tool files to your computer.
              6. After the installation is complete, click Finish.

                import the DHCP database
                1. Copy the exported DHCP database file to the local hard drive on a Windows Server 2003 computer is.
                2. Verify that the DHCP service is started on a Windows Server 2003-based computer.
                3. Click Start, click Run, type cmd in the Open box, and then click OK.
                4. At the command prompt, type netsh dhcp server import c:\\dhcpdatabase.txt all , and then press ENTER, where c:\\dhcpdatabase.txt is the full path and file name of the database file that you copied to the server.

                  Note: When you try from the Windows 2000 domain controllers to Windows Server 2003 domain member server to export the DHCP database, you may receive the following error message:
                  Error initializing and reading the service configuration - Access Denied To resolve this issue, add the Windows Server 2003 DHCP server computer to the Enterprise level of the DHCP Admins group.
                5. If after you add the Windows Server 2003 DCHP server computer to the "Enterprise" level of the DHCP Admins group as described in step 4, the "access is denied" error message still appears, verify the user account currently being used for import Whether it belongs to the local administrators group. If the account does not belong to this group, add the account to the Administrators group or log in as a local administrator to complete the import.
                6. After you receive a message that the command completed successfully, exit the command prompt.

                  authorized DHCP server
                  1. Click "Start", point to "All Programs", point to "Administrative Tools", then click "DHCP."

                    Note: You must log on to the server with an account that has Enterprise Administrators group membership.
                  2. In the console tree of the DHCP snap-in, expand the new DHCP server. If there is a red arrow in the lower right corner of the server object, the server is not yet authorized.
                  3. Right-click the server object and click Authorize.
                  4. After a while, right-click the server again and click Refresh. A green arrow indicates that the DHCP server is authorized.



Copyright © Windows knowledge All Rights Reserved