Help Center> > Getting Started > Communication Between VPCs within a Region >Communication Between VPCs of the Same Account

Communication Between VPCs of the Same Account

Process Description

To enable communication between VPCs of the same account within a region, you just need to create a cloud connection and load the VPCs to the created cloud connection.

Figure 1 illustrates how to enable network communication between VPCs of the same account.

Figure 1 Flowchart

Procedure

  1. Create a cloud connection.

    1. Log in to the management console.
    2. Click in the upper left corner to select a region and a project.
    3. Under Network, click Cloud Connect.
    4. On the Cloud Connect page, click Create Cloud Connection.
    5. Set parameters listed in Table 1.
      Table 1 Parameter description

      Parameter

      Description

      Example Value

      Name

      Specifies the cloud connection name.

      The value contains 1 to 64 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).

      CC_01

      Enterprise Project

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

      default

      Description

      Provides supplementary information about the cloud connection.

      The value contains 0 to 255 characters.

      N/A

    6. Click OK.

      • After a cloud connection is created, you need to load the network instances (VPC or virtual gateway) that need to communicate with each other to the cloud connection based on service requirements.
      • To enable communication between network instances in different regions, you need to purchase a bandwidth package and configure inter-region bandwidths.

  2. Load network instances.

    You need to load the VPCs to communicate with each other to the cloud connection based on your network plan.

    1. In the cloud connection list, click the name of the target cloud connection to view its details.
    2. On the displayed page, click Network Instances.
    3. Click Load Network Instance.
    4. In the displayed dialog box, select the VPC to be loaded.

      Set the parameters and then click OK.

      Figure 2 Loading a VPC
      Table 2 Parameter description

      Parameter

      Description

      Example Value

      Account

      Specifies whether a network instance is to be loaded across accounts.

      Set it to Current account.

      Current account

      Region

      Specifies the region where the VPC to be connected is located.

      CN East-Shanghai2

      Instance Type

      Two options are available, VPC and Virtual gateway.

      Currently, only VPCs can be loaded across accounts

      Select VPC.

      VPC

      VPC

      Specifies the name of the VPC that needs to be loaded to the cloud connection for communication.

      This parameter is mandatory when Instance Type is set to VPC.

      VPC-w2

      VPC CIDR Block

      Specifies the CIDR blocks of subnets in the VPC to be loaded.

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

      • Subnet CIDR Block: Select one or all subnets of the VPC.
      • Advanced Settings: Add one or more subnet CIDR blocks as needed.

      Subnet: subnet-test

      Custom CIDR block: 192.168.3.0/16

      Remarks

      Provides some supplementary information.

      N/A

    5. In the dialog box indicating that the loading is successful, click Continue Loading if you need to continue loading network instances. Close the dialog box if you do not need to load any network instance. Under the Network Instances tab, you can view information about the loaded network instance.