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
Situation Awareness
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/ Cloud Connect/ Best Practices/ Connecting VPCs in Different Geographic Regions/ Using a Cloud Connection to Connect VPCs in Two Geographic Regions

Using a Cloud Connection to Connect VPCs in Two Geographic Regions

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

Solution Overview

Scenario

A company has two branches, one in Beijing and the other in Hong Kong. There are two VPCs available, one in the CN North-Beijing4 region, and the other in the CN-Hong Kong region. To enable the two branches to communicate with each other over a private network, a cloud connection is used to link the two VPCs in different regions.

NOTE:

For details about the regions where cloud connections are available, see Region Availability.

Solution Architecture

  1. Create a cloud connection.
  2. Load the two VPCs to the cloud connection.
  3. Buy a bandwidth package and assign inter-region bandwidths.
  4. Confirm whether the two VPCs can communicate with each other through the cloud connection.

For details, see Figure 1.

Figure 1 Communication between VPCs in different regions

Advantages

  • Ease of use: In just four simple steps, you can build cross-region connectivity between VPCs.
  • High performance: Cloud Connect leverages the global network infrastructure of the public cloud to provide high-quality, low-latency connectivity with bandwidth that can be flexibly adjusted to meet changing service requirements.

Constraints

  • A cloud connection cannot be used to connect VPCs that have overlapping CIDR blocks, or communication will fail.
  • If you load a VPC to a cloud connection created using the same account, you cannot enter loopback addresses, multicast addresses, or broadcast addresses for the custom CIDR block.
  • If a NAT gateway has been created for any VPC you have loaded to a cloud connection, a custom CIDR block needs to be added and set to 0.0.0.0/0.

Resource Planning

The following table describes the resource planning in the best practice.

Table 1 Resources required

Huawei Cloud Region

Resource

Description

Number of Route Tables

Billing

CN North-Beijing4

VPC

VPC subnet: 192.168.1.0/24

Custom CIDR block: 192.168.44.0/24

1

Free

CN-Hong Kong

VPC

VPC subnet: 192.168.0.0/24

Custom CIDR block: 192.168.11.0/24

1

Free

Global

Cloud connection

Cross-region (Chinese mainland - Asia Pacific) bandwidth package

1

For details, see Cloud Connect Pricing Details.

Procedure for Connecting VPCs in Beijing and Hong Kong

In this example, to connect the VPC in CN North Beijing4 and the VPC in CN-Hong Kong, you need to apply for a cross-border permit to ensure data transmission security. Then, you need to create a cloud connection and load the two VPCs, purchase a bandwidth package, and assign inter-region bandwidth.

Figure 2 Process of connecting VPCs in different geographic regions using a cloud connection

Step 1: Apply for a Cross-Border Permit

If a VPC you want to connect is outside the Chinese mainland, you need to apply for a cross-border permit.

Skip this step if cross-border communication is not required.

  1. Go to the Bandwidth Packages page.
  2. On the displayed page, click apply now.

    If the registered address of your business entity is in the Chinese mainland, click here to go to the Cross-Border Service Application System page.

    If the registered address of your business entity is outside the Chinese mainland, click here to go to the Cross-Border Service Application System page.

    NOTE:

    Select the address for applying for the cross-border permit based on the registration address of your business entity.

  3. On the displayed page, select an applicant type, configure the parameters as prompted, and upload the required materials.

    NOTICE:

    Prepare and upload the materials required on the application page.

    Table 2 Online cross-border permit application

    Parameter

    Description

    Applicant Name

    This name must be the same as the company name in the Letter of Commitment to Information Security.

    Huawei Cloud UID

    The account ID to log in to the management console. You can take the following steps to obtain your account ID.
    1. Log in to the management console.
    2. Click the username in the upper right corner and select My Credentials from the drop-down list.
    3. On the API Credentials page, view the Account ID.

    Bandwidth (Mbit/s)

    For reference only

    Start Date

    For reference only

    Termination Date

    For reference only

    Customer Type

    Select a type based on the actual situation.

    Country of the Customer

    Country where the applicant is located.

    Contact Name

    -

    Contact Number

    -

    Type of ID

    -

    ID Number

    -

    Scope of Business

    Briefly describe the main business.

    Number of Employees

    For reference only

    Branch Location Country

    Country where the applicant branch is located. Set this parameter based on the actual situation.

    Table 3 Required materials

    Parameter

    Description

    Required Material

    Signature

    Company Seal

    Business License

    Upload a photo of the business license with the official seal.

    For the position of the seal, see the template.

    A scanned copy of your company's business license

    -

    Service Agreement

    Download the Huawei Cloud Cross-Border Circuit Service Agreement, fill in the blank, upload the copy of agreement with the signature and official seal.

    • Sign the material on the signature block.
    • Stamp the seal over the signature.

    A scanned copy of the Huawei Cloud Cross-Border Circuit Service Agreement

    Letter of Commitment to Information Security

    Download the China Unicom Letter of Commitment to Information Security of the Cross-Border Circuit Service, fill in the blank, and upload the copy of the letter with the signature and seal.

    • Sign the material on the signature block.
    • Stamp the seal over the signature.
    • Specify the bandwidth you estimated and your company name.

    A scanned copy of the China Unicom Letter of Commitment to Information Security of the Cross-Border Circuit Service

  4. Click Submit.

Step 2: Create a Cloud Connection

  1. Go to the Cloud Connections page.
  2. In the upper right corner of the page, click Create Cloud Connection.
  3. Configure the parameters based on Table 4.

    Table 4 Parameters for creating a cloud connection

    Parameter

    Example Value

    Description

    Name

      

    Specifies the cloud connection name.

    The name can contain 1 to 64 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

    Enterprise Project

      

    Provides a cloud resource management mode, in which cloud resources and members are centrally managed by project.

    Scenario

      

    VPC: VPCs or virtual gateways can use this cloud connection.

    Tag

      

    Identifies the cloud connection. A tag consists of a key and a value. You can add 20 tags to a cloud connection.

    NOTE:

    If a predefined tag has been created on Tag Management Service (TMS), you can directly select the corresponding tag key and value.

    For details about predefined tags, see Predefined Tags.

    Description

      

    Provides supplementary information about the cloud connection.

    The description can contain no more than 255 characters.

  4. Click OK.

Step 3: Load Network Instances

Load the VPCs that need to communicate with each other to the created cloud connection.

  1. Go to the Cloud Connections page.
  2. Click the name of the cloud connection to go to the Basic Information page.
  3. Click the Network Instances tab.
  4. Click Load Network Instance.
  5. Configure the parameters based on Table 5 and click OK.

    Figure 3 Load Network Instance - Current account
    Table 5 Parameters for loading a network instance to a cloud connection

    Parameter

    Description

    Account

    Specifies the account that provides the network instance.

    Select Current account.

    Region

    Specifies the region where the VPC you want to connect is located.

    Instance Type

    Specifies the type of the network instance that needs to be loaded to the cloud connection. There are two options:

    • VPC
    • Virtual gateway

    Select VPC.

    VPC

    Specifies the VPC you want to load to the cloud connection.

    This parameter is mandatory if you have set Instance Type to VPC.

    VPC CIDR Block

    Specifies the subnets in the VPC and custom CIDR blocks.

    If you have set Instance Type to VPC, you need to configure the following two parameters:

    • Subnet: Select one or more subnets in the VPC.
    • Other CIDR Block: Add one or more custom CIDR blocks as needed.

    Remarks

    Provides supplementary information about the network instance.

  6. Click Continue Loading if you need to load another network instance. If you do not need to load another network instance now, close the dialog box and view the loaded network instance on the Network Instances tab.

Step 4: Buy a Bandwidth Package

By default, a cloud connection provides 10 kbit/s of bandwidth for testing cross-region network connectivity. To enable normal communication between regions in the same geographic region or different geographic regions, you need to purchase a bandwidth package and bind it to the cloud connection.

NOTE:

One cloud connection can only have one bandwidth package regardless of if the cloud connection is used for communication within a geographic region or between geographic regions. For example, if network instances are in the Chinese mainland and Asia Pacific, your cloud connection can only have one bandwidth package.

  1. Click the name of the created cloud connection to go to the Basic Information page.
  2. Click the Bandwidth Packages tab.
  3. Click Buy Bandwidth Package. On the displayed page, configure parameters based on Table 6 and click Buy Now.

    Table 6 Parameters for buying a bandwidth package

    Parameter

    Description

    Billing Mode

    The only option is Yearly/Monthly.

    You can purchase it by year or month as needed.

    Name

    Specifies the bandwidth package name.

    The name can contain 1 to 64 characters. Only digits, letters, underscores (_), hyphens (-), and periods (.) are allowed.

    Billed By

    Specifies by what you want the bandwidth package to be billed.

    Applicability

    Specifies whether you want to use the bandwidth package for communication within a geographic region or between geographic regions. There are two options:

    • Single geographic region: Use the bandwidth package between regions in the same geographic region.
    • Across geographic regions: Use the bandwidth package between regions in different geographic regions.

    Geographic Region

    Specifies the geographic region(s).

    Bandwidth

    Specifies the bandwidth you require for communication between regions, in Mbit/s. The sum of all inter-region bandwidths you assign cannot exceed the total bandwidth of the bandwidth package. Assign the bandwidth based on your network plan.

    Tag

    Identifies the bandwidth package. A tag consists of a key and a value. You can add 20 tags to a bandwidth package.

    NOTE:

    If a predefined tag has been created on TMS, you can directly select the corresponding tag key and value.

    For details about predefined tags, see Predefined Tags.

    Required Duration

    Specifies how long you require the bandwidth package for.

    Auto renewal is supported.

    Cloud Connection

    Specifies the cloud connection you want to bind the bandwidth package to. There are two options:

    • Bind now
    • Bind later

  4. Confirm the configuration and click Pay Now.
  5. On the payment information page, click Confirm.

    View the bandwidth package in the bandwidth package list. If the status changes to Normal, the purchase is successful.

Step 5: Assign Inter-Region Bandwidth

By default, a cloud connection provides 10 kbit/s of bandwidth for testing cross-region network connectivity.

  1. Click the name of the created cloud connection to go to the Basic Information page.
  2. Click the Inter-Region Bandwidths tab.
  3. Click Assign Inter-Region Bandwidth and configure the parameters based on Table 7.

    Table 7 Parameters required for assigning inter-region bandwidth

    Parameter

    Description

    Regions

    Specifies the regions of the network instances that need to communicate with each other.

    Select two regions.

    Bandwidth Package

    Specifies the purchased bandwidth package that will be bound to the cloud connection.

    Bandwidth

    Specifies the bandwidth you require for communication between regions, in Mbit/s.

    The sum of all inter-region bandwidths you assign cannot exceed the total bandwidth of the bandwidth package. Plan the bandwidth in advance.

  4. Click OK.

    Now the branches in Beijing and Hong Kong can communicate with each other. You can check the routing information to verify the configuration.

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