Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Migration Center/ Best Practices/ Server Migration/ Keeping Private IP Addresses of Servers Unchanged After the Migration

Keeping Private IP Addresses of Servers Unchanged After the Migration

Updated on 2025-01-06 GMT+08:00

In MgC server migration workflows, you can choose to retain private IP addresses for source servers on target servers after the migration. This feature can reduce the need to modify service code due to IP address changes.

Disclaimer

  • Service availability risks

    This feature can ensure that the private IP addresses of source servers are retained on target servers. It does not guarantee your services can run properly on the target servers. You need to evaluate and assume the risks arising from using this feature.

  • Rollback description

    Migration workflows cannot automatically roll back the IP addresses of target servers to their original ones. If any problems happen when you use this function, you can perform a rollback manually.

  • IP address conflicts

    Since the source and target servers have the same private IP addresses, there may be IP address conflicts. This may result in service unavailability.

  • Unknown risks

    There may be other unknown issues since the migration does not detect or scan source services.

  • Customer responsibilities

    You need to fully test and prepare for the migration as well as check and solve possible problems after the migration is complete. You are advised to simulate the migration in a test environment to evaluate potential risks and formulate corresponding countermeasures.

Notes and Constraints

  • Shutting downing target servers

    To retain source servers' private IP addresses on the paired target servers, the target servers must be stopped. If a target server is not stopped, the system will stop it automatically.

  • Subnet requirements

    When you select a subnet in the target VPC, the subnet must be in the same network range as the source servers.

  • Network interface requirements

    A target server can only have one network interface. Extended network interfaces are not allowed for target servers.

  • Supported IP version

    Only IPv4 addresses can be retained.

Preparations

  • Preparing a Huawei account

    Before using MgC, prepare a HUAWEI ID or an IAM user that can access MgC and obtain an AK/SK pair for the account or IAM user. For details about how to obtain an access key, see Preparations.

  • Creating a migration project

    Create a migration project on the MgC console. For details, see Managing Migration Projects.

Procedure

  1. Download and install the MgC Agent (formerly Edge).

    Prepare a Windows server on the source intranet for installing the MgC Agent. For details about the server requirements and the MgC Agent installation method, see Installing the MgC Agent for Windows.

  2. Connect the MgC Agent to MgC.

    Register an account for logging in to the MgC Agent console and connect the MgC Agent to MgC. For details, see Connecting the MgC Agent to MgC.

  3. Add resource credentials.

    After the connection is successful, add the credentials of the source servers to be migrated to the MgC Agent. For details, see Adding Resource Credentials. Correctly configure Resource Type based on the source servers when you add their credentials.

  4. Discover source servers.

    MgC provides three collection methods to meet your requirements in different scenarios. You can choose a method based on your source environment.
    Figure 1 Collection methods

  5. Group servers as an application.

    Group the discovered servers as an application to get sizing recommendations and execute the migration. For more information, see Grouping Resources as Applications.

  6. Create an application assessment.

    The system will generate target server recommendations based on the collected source server details, including specifications, performance data, and workload types. For more information, see Getting Target Recommendations.

    After the target server recommendations are generated, you can:

  7. Create a server migration workflow. After all the preceding steps are complete, go to the Workflows page and create a server migration workflow.

    CAUTION:
    • A workflow can contain a maximum of 100 servers.
    • You can migrate a maximum of 1,000 servers concurrently. For any servers beyond this number, the workflows will pause at the first step and put these servers in a pending state until other servers complete their migration. The workflows will then automatically start on these servers in the order the workflows were created.
    • If this is your first time to create a server migration workflow, you need to delegate MgC the required permissions. For more information about the required permissions, see Agency Permissions.
    1. In the navigation pane, choose Migrate > Workflows. In the upper left corner of the page, select the migration project you created.
    2. Select the Server Migration template and click Configure Workflow.

    3. In the Workflow Details area, customize Name and Description.
    4. In the Application area, select the application you created in Step 5.
      NOTICE:

      For source servers in the selected applications, you need to get target server recommendations or associate them with target servers.

    5. In the Migration Network area, select a network type.
      • If you select Public, ensure that all target servers have EIPs bound. These EIPs will be used for the migration.
      • If you select Private, configure Direct Connect connections, VPN connections, VPC peering connections, or subnets in the target VPC in advance to ensure that the source environment can access the target environment.
    6. In the Target Environment area, select the VPC and subnet that have been connected to the source environment. The VPC and subnet will be used as the transit environment.
      NOTICE:

      The configured VPC and subnet will not be applied for the target servers associated with source servers. Parameters in Target Environment are not required if all source servers in the selected application are associated with target servers.

    7. In the Advanced Settings area, set Retain IP Address to Yes, read the on-screen warning and disclaimer, and click Confirm.
      NOTE:

      Here only describes how to configure the Retain IP Address parameter. Set other parameters as required.

    8. From the VPC drop-down list, select the VPC that contains the private network segment of the source servers. From the Subnet drop-down list, select the subnet that contains the private IP addresses of the source servers. After you select a subnet, the system will check whether the selected subnet contains the source servers' private IP addresses. If it does not, you need to change the subnet.
    9. Click Next: Confirm.
    10. Confirm the workflow settings and click Confirm. The Run Workflow dialog box is displayed, which indicates that the workflow has been created.
      • If you want to start the migration immediately, click Confirm to run the workflow.
      • If you want to add a stage or step to the workflow, click Cancel. The workflow enters a Waiting state, and the migration has not started. To start the migration, click Run in the Operation column.
    11. On the migration workflow details page, view the workflow settings and the migration progress. After the step for starting the migration Agent is completed, a migration task is automatically created on the SMS console. For details about the server information mapping between MgC and SMS, see What Are the Information Mappings Between MgC and SMS?
      • Move the cursor to the migration progress bar. In the box that is displayed, view more migration details.
      • When the migration progress bar reaches a step that requires manual confirmation, move the cursor to the progress bar and click Confirm next to the step status in the displayed window, so that the subsequent migration steps can be executed.
      • When the workflow reaches the ResizeDiskPartition step, the system identifies whether disk capacity reduction has been performed on the target server.
        • If yes, go to SMS console and resize disks and partitions for the target server. For details, see the Partition Resizing parameter in Configuring a Target Server. After the adjustment is complete, go back to the MgC console and click Confirm next to the step status so that the workflow can continue.
        • If no, skip this step.
      • The StartSynchronization step is repeated before you verify your services on the target server.
      • When the progress bar reaches Cutover, the migration is complete. You need check whether your service systems are running properly on the target server. If they are, manually switch services to the target server. After the switchover is complete, click Confirm in the workflow. The system automatically performs the following steps SourceClear and MigrationTaskClear.

Manual Rollback

If you do not want to retain the private IP addresses of the source servers or any problems happen, you can manually switch the VPC for rollback. For details, see Changing a VPC.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback