Help Center > > Getting Started> Communication Among VPCs Within a Region> Communication Among VPCs of Different Accounts

Communication Among VPCs of Different Accounts

Updated at: Jul 15, 2021 GMT+08:00

Process Description

To enable communications among VPCs in the same cloud region, create a cloud connection and load the VPCs to the cloud connection. If the VPCs do not belong to your account, ask the other users to authorize their VPCs and then load the VPCs.

Figure 1 illustrates how you can enable network communications among VPCs of different accounts.

Figure 1 Process for enabling communications among VPCs of different accounts

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. Hover on the upper left corner to display Service List and choose Networking > Cloud Connect.
    4. On the Cloud Connections page, click Create Cloud Connection.
    5. Configure the parameters based on Table 1.
      Table 1 Parameter description

      Parameter

      Description

      Example Value

      Name

      Specifies the cloud connection name.

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

      CC_01

      Description

      Provides supplementary information about the cloud connection.

      The description can contain a maximum of 255 characters.

      N/A

    6. Click OK.

      • After you create a cloud connection, load network instances (VPCs or virtual gateways) to the cloud connection based on your requirements.
      • To enable communications among network instances in different cloud regions, purchase a bandwidth package and configure inter-region bandwidths.

  2. Ask the other user to authorize their VPCs to you.

    If your network needs to communicate with those of the other user, you need to ask them to authorize their VPCs to you and then you can load these VPCs to your cloud connection so that your network can communicate with their networks. The following are steps that the other user can follow to authorize their VPCs:

    1. In the navigation pane, choose Cloud Connect > Cross-Account Authorization.
    2. Click Network Instances Authorized by Me.
    3. Click Authorize Network Instance.
      Configure the parameters based on Table 2.
      Table 2 Parameter description

      Parameter

      Description

      Example Value

      Region

      Specifies the region where the VPC is located.

      CN East-Shanghai1

      VPC

      Specifies the VPC to be authorized.

      VPC-w2

      Peer Account ID

      Specifies the ID of the other user's account.

      N/A

      Peer Cloud Connection ID

      Specifies the ID of the other user's cloud connection to which your VPC is to be loaded.

      N/A

      Remarks

      Provides supplementary information about cross-account authorization, if any.

      N/A

    4. Click OK.

  3. Load network instances.

    Load the VPCs that will communicate with each other to the cloud connection based on your network plan. The following are steps for you to load the other user's VPC that has been authorized to you.

    1. Log in to the management console.
    2. In the cloud connection list, locate the cloud connection and click its name.
    3. Under Network Instances, click Load Network Instance.
    4. Select Peer account for Account, select the other user's account ID, project ID, and the VPC, and specify the CIDR blocks.
      For details about the parameters, see Table 3.
      Table 3 Parameter description

      Parameter

      Description

      Example Value

      Account

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

      Peer account

      Peer Account ID

      Specifies the ID of the account that the VPC belongs to.

      N/A

      Region

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

      N/A

      Peer Project ID

      Specifies the project ID of the peer account's VPC.

      N/A

      Instance Type

      Specifies the type of the network instance to be loaded.

      Currently, you can load only VPCs across accounts.

      VPC

      Peer VPC

      Specifies the VPC you want to load.

      N/A

      VPC CIDR Block

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

      N/A

      Remarks

      Provides supplementary information about the network instances.

      N/A

    5. Click OK.

    6. In the dialog box indicating that loading is successful, click Continue Loading if you want to continue loading network instances. Click the Network Instances tab, view information about the network instance you loaded.
    • You can load a network instance to only one cloud connection.
    • Each VPC and the associated virtual gateway can be loaded only once.
    • You need to ask other users to authorize their network instances to you before you can load their network instances.

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