Compartilhar via


IP Configuration: Migrate IP Configuration Data

 

Applies To: Windows Server 2012

After you have prepared for IP configuration migration by performing steps in IP Configuration: Prepare to Migrate, migrate IP configuration settings and data by using procedures in this section.

Migrating Global and NIC IP configuration

Perform steps in this section to migrate IP configuration data.

IP configuration migration tools

Windows PowerShell cmdlets that are used for data and share migration include Export-SmigServerSetting (used on the source server), and Import-SmigServerSetting (used on the destination server).

The Export-SmigServerSetting cmdlet lets the user copy all supported IP configuration settings from the source server to migration store at a specified location.

On the destination server, the Import-SmigServerSetting cmdlet applies the IP configuration settings specified in the migration store to the destination computer. To import the IP configuration settings of network adapters, you must provide the mapping between the source and destination network adapters by listing the physical addresses (also called MAC addresses) of all network adapters.

Note

To import and export IP configuration settings for a network adapter, it must be enabled and connected to a network.

For more information, see Help for Windows PowerShell cmdlets. To view Help for a cmdlet, in a Windows PowerShell session, type Get-Help <cmdlet_name>, and then press Enter.

Note

Windows Server Migration Tools must be installed on the computer on which you want to view Help for the migration cmdlets.

Migrating IP configuration by using Windows Server Migration Tools

Use the two procedures in this section to migrate global and network adapter-specific configuration settings by using Windows Server Migration Tools.

Export IP configuration settings from the source server

If you have already exported IP configuration settings from your source server as part of another migration guide, go to the procedure Import IP configuration settings to the destination server.

To export IP configuration settings from the source server
  1. Do one of the following.

    • To open a Windows Server Migration Tools custom Windows PowerShell session on computers that are running Windows Server® 2012 go to Start and then click Windows Server Migration Tools.

    • To open a Windows Server Migration Tools custom Windows PowerShell session on computers that are running Windows Server 2008 R2 or Windows Server 2008 click Start, point to Administrative Tools, open the Windows Server Migration Tools folder, right-click Windows Server Migration Tools, and then click Run as administrator.

    • To open a Windows Server Migration Tools custom Windows PowerShell session on computers that are running Windows Server® 2012 go to Start and then click Windows Server Migration Tools.

    • To open a Windows Server Migration Tools custom Windows PowerShell session on computers that are running Windows Server 2003, click Start, point to Administrative Tools, open the Windows Server Migration Tools folder, and then click Windows Server Migration Tools.

  2. In the same Windows PowerShell session, run the Export-SmigServerSetting cmdlet on the source server by typing the following command, in which MigrationStorePath represents the path of your migration store location, and then pressing Enter.

    Export-SmigServerSetting -IPConfig -Path <MigrationStorePath> -Verbose
    

    Note

    Because network connectivity might be interrupted during the import operation, be sure to verify that the migration store is created on the destination computer. You are prompted to provide a password to encrypt the migration store. Remember this password, because you must provide the same password to import settings from the migration store.

  3. Because it contains information that you must have to perform the import operation, save the output of the Ipconfig -all command. Type the following, and then press Enter, in which FileName represents the path of the location in which you want to save the output text file, and the file name.

    IPConfig -all > <FileName>
    
  4. If the source server has a static IP address, disconnect the source server, or change the static IP address.

Import IP configuration settings to the destination server

To import IP configuration settings to the destination server
  1. For network adapter IP configuration migration, map physical (MAC) addresses for both source and destination network adapters. View the IPConfig output you generated by using the IPConfig -all > <FilePath> command in To export IP configuration settings from the source server to determine network adapter physical address mapping.

  2. If the migration store is not already on the destination server, copy the migration store to a local drive on the destination server by typing the following and then pressing Enter, in which NetworkPath is the path of the location of the migration store, and LocalPath is the path of a location on the destination server.

    Copy <NetworkPath> <LocalPath>
    
  3. Log on to the destination server as a member of the Administrators group, if you have not already done so.

  4. On the destination server, migrate all IP configuration by using the Import-SmigServerSetting cmdlet as shown in the following example, in which each SourcePhysicalAddress and TargetPhysicalAddress in quotation marks represents the physical address of a network adapter that you want to migrate, and MigrationStorePath represents the path of the location of your migration store. Specify each network adapter physical address in the format AA-AA-AA-AA-AA-AA, and separate the physical addresses of multiple network adapters by using commas.

    Import-SmigServerSetting -IPConfig All -SourcePhysicalAddress "<SourcePhysicalAddress1>","<SourcePhysicalAddress2>" -TargetPhysicalAddress "<TargetPhysicalAddress1>","<TargetPhysicalAddress2>" -Path <MigrationStorePath> -Verbose
    

    You can use one of the following values with the -IPConfig parameter. For All or Global IP configuration migration, the destination server must be restarted for modifications to the IPv6 DisabledComponents property to take effect. You cannot use any of the Windows Server Migration Tools cmdlets until the server has restarted.

    • Global: only import global Windows IP configuration settings.

    • NIC: only import specific IP configuration settings for certain network adapters. You must specify the physical address mapping by using the -SourcePhysicalAddress and -TargetPhysicalAddress parameters.

    • All: import both global and network adapter IP configuration-specific settings. You must also specify the physical address mapping by using the -SourcePhysicalAddress and -TargetPhysicalAddress parameters.

    For the list of supported settings for network adapters, see IP Configuration: Prepare to Migrate.

  5. You are prompted to provide the same password that was provided during the export process to decrypt the migration store. Type the password, and then press Enter.

See Also

Migrate IP Configuration to Windows Server 2012
IP Configuration: Prepare to Migrate
IP Configuration: Post-migration Tasks
IP Configuration: Appendix