Help Center > > Best Practices> Connecting Two VPCs in Different Regions

Connecting Two VPCs in Different Regions

Updated at: Sep 02, 2021 GMT+08:00

Scenarios

Your company has two branches, one in Beijing and the other in Hong Kong, and the two branches require private network communication and data transmission. You need is a cloud connection that links the VPC in the CN North-Beijing region to the VPC in the CN-Hong Kong region, so that a network is built between the two VPCs, and the two branches can communicate with each other through this network. The following figure shows this scenario.

Figure 1 Communications between VPCs in different cloud regions

Solution Design

Configuration Procedure

  1. Complete the cross-border application.
  2. Create a cloud connection.
  3. Load the two VPCs.
  4. Buy a bandwidth package.
  5. Configure an inter-region bandwidth.
  6. Check the route information and related configuration.
Table 1 Resource information

Region

VPC

Subnet

Other CIDR Block

CN North-Beijing1

VPC-01

subnet-1 (192.168.1.0/24)

192.168.44.0/24

CN-Hong Kong

VPC-e725

subnet-e730 (192.168.0.0/24)

192.168.11.0/24

Prerequisites

Complete the cross-border application.

  1. Prepare all required materials.

    1. Log in to the management console.
    2. Hover on the upper left corner to display Service List and choose Networking > Cloud Connect.
    3. In the navigation pane on the left, choose Cloud Connect > Cross-Border Application.
    4. Click Download Materials.
    5. Print and sign the Cloud Connect Cross-Border Circuit Service Agreement and China Unicom Letter of Commitment to Information Security of the Cross-Border Circuit Service, and stamp your company's official seal.
    6. Prepare a scanned copy of the business license, Cloud Connect Cross-Border Circuit Service Agreement, and China Unicom Letter of Commitment to Information Security of the Cross-Border Circuit Service, respectively. Ensure that all materials are stamped with your company's official seal.

  2. Complete the cross-border application.

    1. Log in to the management console.
    2. Hover on the upper left corner to display Service List and choose Networking > Cloud Connect.
    3. In the navigation pane on the left, choose Cloud Connect > Cross-Border Application.
    4. Click Submit Application.
    5. Fill in the enterprise and representative information, and upload the prepared materials.
    6. Click Submit.

      After you submit the application, the status of the cross-border application will be Pending approval. The review takes about one working day. When the status changes Approved, the cross-border application is completed.

Procedure

  1. Create a cloud connection.
    1. Log in to the management console. Click in the upper left and select CN North Beijing1 as the region.
    2. Under Networking, click Cloud Connect.
    3. Click Create Cloud Connection. On the displayed page, set the parameters and click OK.
      Figure 2 Creating a cloud connection
  2. Load network instances.
    1. Locate cloud connection cloudconnect-001 and click its name.
    2. Click Load Network Instance.
    3. Configure other parameters based on Table 2 and then click OK.
      Table 2 Parameter description

      Parameter

      Description

      Example Value

      Account

      Specifies whether network instances are from the current account or another account.

      Current account

      Region

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

      CN North-Beijing1

      CN-Hong Kong

      Instance Type

      Specifies the type of the network instance you want to load to the cloud connection.

      Two options are available, VPC and Virtual gateway.

      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.

      CN North Beijing1: VPC-01

      CN-Hong Kong: VPC-e725

      VPC CIDR Block

      Specifies the subnets of the VPC you want to load and the custom CIDR blocks.

      If Instance Type is set to VPC, configure the following two parameters:

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

      Subnet:

      CN North-Beijing1: subnet-1 (192.168.1.0/24)

      CN-Hong Kong: subnet-e730 (192.168.0.0/24)

      Other CIDR block:

      CN North-Beijing1: 192.168.44.0/24

      CN-Hong Kong: 192.168.11.0/24

      Figure 3 Loading network instances
    4. In the dialog box indicating that the loading is successful, click Continue Loading, set the parameters based on Table 2, and then click OK.
  3. Buy a bandwidth package.
    By default, the bandwidth for cross-region communication over a cloud connection is 10 Kbit/s, which is used only for connectivity tests. To enable communication between different cloud regions that are in the same geographic region or to enable communication across cloud regions in different geographic regions, purchase a bandwidth package, bind it to a cloud connection, and configure the inter-region bandwidth.
    1. Hover on the upper left corner to display Service List and choose Networking > Cloud Connect.
    2. In the navigation pane on the left, choose Cloud Connect > Bandwidth Packages.
    3. Click Buy Bandwidth Package.
    4. Configure the parameters based on Table 3 and click Buy Now.
      Figure 4 Buying a bandwidth package
      Table 3 Parameter description

      Parameter

      Description

      Example Value

      Billing Mode

      Specifies how you want the bandwidth package to be billed.

      You can purchase it by year or month as desired.

      Yearly/Monthly

      Name

      Specifies the bandwidth package name.

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

      bandwidthPackge-8047

      Billed By

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

      Bandwidth

      Bandwidth Package Applicability

      Specifies whether you want to use the bandwidth package for communication within a geographic region or between geographic regions.

      Two options are available:

      Intra-geographic region indicates that the cloud regions for which inter-region bandwidths you are configuring are in the same geographic region.

      Inter-geographic region indicates that the cloud regions for which inter-region bandwidths you are configuring are in different geographic regions.

      Inter-geographic region

      Geographic Region

      Specifies the geographic region where regions for which inter-region bandwidths you are configuring are located.

      Chinese mainland

      Asia-Pacific

      Bandwidth

      Specifies the bandwidth you require for network communication across cloud regions, in Mbit/s. The sum of all inter-region bandwidths that you configure cannot exceed the bandwidth of the bandwidth package. Configure the bandwidth based on your network plan.

      5

      Required Duration

      Specifies the duration for which you require the bandwidth package.

      Auto renewal is supported.

      1 month

      Cloud Connection

      Specifies the cloud connection to which you want to bind the bandwidth package.

      Two options are available, Bind now and Bind later.

      Bind now

    5. Confirm the information and click Pay Now.
    6. Click Pay.

      Go back to the bandwidth package in the bandwidth package list. If Status changes Normal, you have purchased the bandwidth package.

  4. Configure an inter-region bandwidth.
    1. Log in to the management console.
    2. Click in the upper left corner to select a region and a project.
    3. Hover on the upper left corner to display Service List and choose Networking > Cloud Connect.
    4. In the cloud connection list, click the name of the created cloud connection.
    5. Click Inter-Region Bandwidths.
    6. Click Configure Inter-Region Bandwidth and set the parameters based on Table 4.
      Table 4 Parameter description

      Parameter

      Description

      Example Value

      Regions

      Specifies the two cloud regions between which network communication is required.

      CN North-Beijing1

      CN-Hong Kong

      Bandwidth Package

      Specifies the bandwidth package bound to the cloud connection.

      bandwidthPackge-8047 (Chinese mainland – Asia Pacific)

      Bandwidth

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

      The sum of all inter-region bandwidths you configure based on the bandwidth package cannot exceed the bandwidth of the bandwidth package. Plan the bandwidth in advance.

      5 Mbit/s

    7. Click OK.

      Now the VPCs in two regions can communicate with each other.

  5. Check the route information to verify the configuration.
    Figure 5 Route information

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel