Section B: Migrate scopes and settings to the Management Server

Follow these steps to migrate the DHCP Server service from your existing DHCP server to the Windows EBS Management Server. These instructions assume that all the DHCP scopes and settings that you want to migrate are located on a single DHCP server. If this is not the case, you need to perform the steps for each DHCP server.

Warning

You must be careful to migrate only the DHCP scopes that serve the subnets that the Management Server resides on.

For example, if the internal IP address is 192.168.0.5 for the Management Server, and it has a subnet mask of 255.255.255.0, you would migrate all the DHCP scopes (possibly from multiple DHCP servers) that serve IP addresses in the range 192.168.0.1–192.168.0.255. You would not migrate the DHCP scope that serves IP addresses in the range 192.168.2.1–192.168.2.255 because the Management Server does not reside on that subnet.

Prevent IP address conflicts during migration

Use this procedure if your existing DHCP server is running Windows 2000 Server, Windows Server 2003, or Windows Server 2008. This procedure ensures that during the DHCP server migration, no IP address conflicts are created. (Resolving IP address conflicts may require you to physically access each affected computer.)

Note

If your existing DHCP server is not running Windows 2000 Server, Windows Server 2003, or Windows Server 2008, consult your system documentation to determine how to prevent IP address conflicts.

To prevent IP address conflicts

  1. Log on to your existing DHCP server as domain administrator.

  2. Start the DHCP Server service. Wait a few minutes and verify that it is running. If it is not, check the event logs for further troubleshooting steps.

    (In some cases during the Windows EBS installation, your existing DHCP Server service may stop because a DHCP Server service is temporarily started on the Management Server.)

  3. On your existing DHCP server, click Start, click Administrative Tools, and then click DHCP.

  4. In the DHCP server console tree, right-click the server object, and then click Properties. (On the Windows Server 2008 operating system, click Properties IPv4.)

  5. In the Properties dialog box, click the Advanced tab, and then set Conflict detection attempts to 1. Click OK to close the Properties dialog box.

Identify your current DHCP server's operating system

You must follow different instructions for your migration depending on which operating system your current DHCP server is running. Choose from the following instructions:

  • Migrate from a Microsoft Windows NT 4.0 Server or Microsoft Windows 2000 Server operating system

  • Migrate from a server that is running the Windows Server 2003 operating system

  • Migrate from a server that is not running a Windows Server operating system

Migrate from a Microsoft Windows NT 4.0 Server or Microsoft Windows 2000 Server operating system

Follow these steps if your current DHCP server is running the Microsoft Windows NT® 4.0 Server or the Windows 2000 Server operating system.

Important

To support your migration from Windows NT 4.0 or Windows 2000 Server to the Windows EBS Management Server, you will use the DHCP Database Export Import tool. This requires that you temporarily import the settings on a server that is running Windows Server 2003 and that is not currently a DHCP server.

This migration involves three tasks:

  1. Prepare your DHCP server and export your DHCP server configuration.

  2. Temporarily configure a server that is running Windows Server 2003 as a DHCP server.

  3. Migrate the DHCP server configuration settings from the Windows Server 2003 server to the Management Server.

Prepare your DHCP server environment and export your DHCP server configuration

To prepare and export your DHCP server configuration

  1. Log on to your DHCP server as domain administrator.

  2. Install the DHCP Database Export Import tool (dhcpexim.exe) from the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=105111).

  3. To disable the DHCP Server service, from Administrative Tools, open Services, right-click DHCP Server, and then click Properties. On the General tab, in Startup type, click Disabled, and then click OK.

  4. To stop the DHCP Server service, right-click the service and click Stop.

  5. Open a Command Prompt window and type:

    Cd %systemroot%\system32\dhcp

  6. Compact the DHCP server database by using the Jetpack.exe utility. Type the following command:

    jetpack dhcp.mdb temp.mdb

    (The file temp.mdb is used as a temporary database during the compacting operation.) After the database is compacted, the following message appears: Jetpack completed successfully.

  7. Type exit to close the Command Prompt window.

  8. To start the DHCP Database Export Import tool, click Start, click Run, click Browse, and then browse to the folder where you installed the tool (by default, %SYSTEMDRIVE%\Program Files\Resource Kit). Double-click dhcpexim.exe, and then click OK.

  9. In the Welcome to DHCP Export Import Tool window, click Export configuration of the local service to a file, and then click OK.

  10. In the File browser text box, type dhcpdatabase.txt, and then specify a folder that you will remember.

  11. Select all scopes (you can click the first scope, press SHIFT, and then click the last scope). Click Export.

  12. After the configuration is exported, the following message appears: The operation completed successfully. Click OK.

Select a server on your network that is running Windows Server 2003 and that is not already a DHCP server. This will temporarily become a DHCP server. Copy the dhcpdatabase.txt file that you created to this server. Then use the following procedure to configure this server as a DHCP server.

Configure a server that is running Windows Server 2003 as a DHCP server

Using Windows Server 2003 as an intermediary DHCP server is necessary because Windows Server 2008 cannot read the format that the Microsoft Windows NT 4.0 Server or Microsoft Windows 2000 Server operating systems use to export DHCP server settings.

If you do not have a Windows Server 2003 operating system available, you must re-create all of the settings manually. Follow the instructions in Migrating from a server that is not running a Windows Server operating system later in this document.

To configure a server running Windows Server 2003

  1. Log on to the server that is running Windows Server 2003 as domain administrator.

  2. To start Server Manager, click Start, and then click Manage Your Server.

  3. Click Add or remove a role. The Configure Your Server Wizard starts. Click Next on the introduction screen.

  4. On the Server Role page, click DHCP server and then click Next.

  5. On the Summary page verify that the following text appears: Install DHCP server. Then click Next.

  6. The Windows Setup Wizard appears. You may have to insert the Windows Server 2003 CD-ROM or other media to install files.

  7. After the Windows Setup Wizard copies the files, the DHCP Scope Wizard starts. Click Cancel to cancel this wizard because you will import the scopes from your Windows 2000 DHCP server. To close the wizard, click Finish.

  8. Open a Command Prompt window. If you are not logged in as a user who is explicitly a member of the local administrators group, you can log in with a different account or right-click the CMD icon and click Run as. (If you try to run the following command under the domain administrator account, an Access denied error message may appear.)

  9. To import the DHCP server scope settings that you exported from your Windows 2000 DHCP server environment, type:

    netsh dhcp server import*Drive:\Path\*dhcpdatabase.txt all

    where Drive:\Path\ is where you copied the file in the previous step.

    Depending on the amount of DHCP server data, it might take some time to import and export the DHCP server scope settings.

  10. Export the DHCP server scope settings to the file dhcpNEW.txt. Type:

    netsh dhcp server export c:\dhcpNEW.txt all

  11. To remove the DHCP server role from this server, in Server Manager, click Add or remove a role. The Configure Your Server Wizard appears. On the Server Role page, click DHCP server. Follow the steps in the wizard to remove the DHCP server role.

  12. Copy the c:\dhcpNEW.txt file to the Windows EBS Management Server. Place the file in your C:\ drive. Then use the following procedure to import the configuration settings on the Management Server.

Migrate the DHCP server configuration settings to the Management Server

Important

Before you can import DHCP server configuration settings, you must delete the existing settings. If you chose to configure the Management Server as the DHCP server during the installation, you must first delete those settings, and then import the configuration settings that you exported from your existing DHCP Server service.

To import DHCP server configuration settings

  1. Log on to the Management Server as domain administrator.

  2. Verify that the DHCP Server service is started and set to automatically start. (In Administrative Tools, click Services to see the Status and the Startup type of the DHCP Server service.)

  3. Open a Command Prompt window and type the following:

    netsh dhcp server show scope

    If the command shows that there are IP address scopes configured for this server, you must delete them before proceeding to the next step. To delete the scopes, type the following:

    netsh dhcp server delete scope IPaddress dhcpfullforce

    Where IPaddress is the scope address to delete. Repeat this input for the remaining scopes that you want to delete.

  4. At the command prompt, type the following:

    netsh dhcp server import c:\dhcpNEW.txt all

    After the configuration settings are imported, the following message appears: Command completed successfully.

  5. To open the DHCP server console, click Start, click Administrative Tools, and then click DHCP.

  6. In the DHCP server console, expand the node for the Management Server in the left pane and expand the IPv4 node until you can see your scopes. If you see a red arrow icon:

    • For a server icon: right-click the icon and click Authorize. Then right-click the icon and click Refresh.

    • For a scope icon: right-click the icon and click Activate. Then right-click the icon and click Refresh.

  7. Verify that your scopes, leases, and options imported successfully.

  8. In the left pane, right-click Server Options, and then click Configure Options. Verify or configure the values of the following options:

    • 003 Router: the IP address of the Windows EBS Security Server.

    • 006 DNS Servers: the IP addresses of the Management Server and Messaging Server, in that order. There should be no additional IP addresses specified.

  9. For each scope in the left pane, click Scope Options. Verify that the settings in the right pane for Router and DNS Servers match the settings that you configured in Server Options. If they do not match, then there is an overriding option set in the scope options. To remove the overriding option:

    • Right-click the option that does not match, click Delete, and then click Yes in the confirmation dialog box.

    • Right-click the right pane and click Refresh. The value should appear and match the value that you configured in Server Options.

Migrate from a server that is running Windows Server 2003

Follow these steps if your current DHCP server is running Windows Server 2003.

To migrate from Windows Server 2003

  1. Log on to the DHCP server by using an account that is a member of the local administrator’s group.

    Note

    If you try to run the following command under the domain administrator account, an Access denied error message may appear.

  2. Open a Command Prompt window and type the following command:

    netsh dhcp server export c:\dhcpNEW.txt all

    After the configuration settings are exported, the following message appears: Command completed successfully.

  3. To disable and stop the DHCP Server service:

    1. Click Start, click Administrative Tools, and then click Services.

    2. Right-click DHCP Server, and then click Properties.

    3. On the General tab, in the Startup type list box, click Disabled. Then click OK.

    4. Right-click DHCP Server, and then click Stop.

  4. Copy the c:\dhcpNEW.txt file to the Windows EBS Management Server. Place the file in C:\.

  5. Log on to the Management Server as domain administrator.

  6. Verify that the DHCP Server service is started and set to automatically start. (In Administrative Tools, click Services to see the Status and the Startup type of the DHCP Server service.)

  7. Open a Command Prompt window and type the following:

    netsh dhcp server show scope

    If the command shows that there are IP address scopes configured for this server, you must delete them before proceeding to the next step. To delete the scopes, type the following:

    netsh dhcp server delete scope IPaddress dhcpfullforce

    Where IPaddress is the scope address to delete. Repeat for remaining scopes.

  8. At the command prompt, type the following:

    netsh dhcp server import c:\dhcpNEW.txt all

    After the configuration settings are imported, the following message appears: Command completed successfully.

  9. To open the DHCP server console, click Start, click Administrative Tools, and then click DHCP.

  10. In the DHCP server console, expand the node for the Management Server in the left pane and expand the IPv4 node until you can see your scope(s). If you see a red arrow icon:

    • For a server icon: right-click the icon and click Authorize. Then right-click the icon and click Refresh.

    • For a scope icon: right-click the icon and click Activate. Then right-click the icon and click Refresh.

  11. Verify that your scopes, leases, and options migrated successfully.

Migrate from a server that is not running a Windows Server operating system

Follow these steps to migrate scopes and settings from a DHCP server that is not running a Windows Server operating system.

Because you do not migrate leases with this procedure, some computers might be issued addresses that were assigned to other computers. Symptoms of an IP address conflict include:

  • Loss of network connectivity.

  • Pop-up dialog boxes on client computers warning that a conflict has been detected.

If a computer has an IP address conflict, the solution is to restart the computer. Or you can open a Command Prompt window and type ipconfig /release and ipconfig /renew.

To migrate from a server that is not running a Windows Server operating system

  1. Open the configuration settings for the DHCP Server service on your DHCP server.

    Note

    Consult the system documentation for your existing DHCP server to determine how to access the DHCP server configuration settings. You may need to open a configuration file, run a command, or open a management console.

  2. Write down scope settings, which include the range of IP addresses that the DHCP server is assigning. Also write down any specified options.

  3. Stop your existing DHCP Server service, and ensure that the DHCP Server service cannot restart in the future. You may need to disable the service or change the start-up scripts.

  4. Log on to the Management Server as domain administrator.

  5. Verify that the DHCP Server service is started and set to automatically start. (In Administrative Tools, click Services to see the Status and the Startup type of the DHCP Server service.)

  6. To open the DHCP server console, click Start, click Administrative Tools, and then click DHCP.

  7. In the left pane, expand the node for the Management Server, right-click IPv4, and then click New Scope. The New Scope Wizard appears.

  8. On the Welcome page of the wizard, click Next.

  9. On the Scope Name page, type a name for the scope (such as Adventure-Works.Scope). Optionally, type a description, and then click Next.

  10. On the IP Address Range page, type the following:

    • The Start IP address and End IP address that match the scope on your existing DHCP server. This defines a block of IP addresses from which the Management Server can assign an address to a computer that requests an address.

    • The Length or the Subnet mask IP address that you recorded on your existing DHCP server. (A subnet mask is the same as a netmask.) Then click Next.

  11. On the Add Exclusions page, type a range of addresses if your DHCP server had reserved IP addresses that are available for manual, static assignment. Then click Next.

  12. On the Lease Duration page, leave the duration at the default of 8 days, and then click Next.

  13. On the Configure DHCP Options page, click Yes I want to configure these options now, and then click Next.

  14. On the Router (Default Gateway) page, type the IP address of the Windows EBS Security Server, click Add, and then click Next.

  15. On the Domain Name and DNS Servers page, type the following:

    • In the Parent domain text box type the name of the domain where you installed Windows EBS (your root domain). This is the domain that you specified during your installation of the Management Server.

    • In the IP address text box, type the IP address of the Management Server, click Add, and then click Next.

  16. On the WINS Servers page leave the settings blank, and then click Next.

    (WINS is an old protocol that you should not need in an environment configured properly with Active Directory® Domain Services.)

  17. On the Activate Scope page, click Yes, I want to activate this scope now, and then click Next. Click Finish.

  18. In the DHCP server console, in the left pane, if you see a red arrow icon:

    • For a server icon: right-click the icon and click Authorize. Then right-click the icon and click Refresh.

    • For a scope icon: right-click the icon and click Activate. Then right-click the icon and click Refresh.

Important

If a client computer has an IP address conflict or loses network connectivity, restart the computer (or type ipconfig /release followed by ipconfig /renew in a Command Prompt window).

You have completed this migration. Continue with Verify the migration later in this document.