This tutorial guides you how to use CEN to connect the networks in the same region of different accounts.
It takes Account A and Account B as an example to introduce how to attach a network under Account B to a CEN instance under Account A.
Prerequisite
-
You have created VPCs or VBRs.
-
The VPCs and VBRs are not connected using Express Connect.
Step 1 Account A creates a CEN instance
- Log on to the CEN console.
- On the Instances page, click Create CEN instance.
- Configure the CEN instance.
- Name: The name can be 2-128 characters in length. It can start with an uppercase letter, lowercase letter, or Chinese character. It can contain numbers, underscores (_), and hyphens (-), but cannot start with
http://
orhttps://
. In this tutorial, enter SameRegionDifferentAccount. -
Attach a network:
- Account: Select Your Account.
- Network Type: Select the network to connect. You can attach a VPC or a VBR. In this tutorial, select VPC.
- Region: Select the region of the network. In this tutorial, select China North 1.
- Networks: Select the instance to attach. In this tutorial, select a VPC instance.
- Name: The name can be 2-128 characters in length. It can start with an uppercase letter, lowercase letter, or Chinese character. It can contain numbers, underscores (_), and hyphens (-), but cannot start with
- Step 2 Attach networks
In this tutorial, the ID of the CEN instance is
cbn-xxxxxxxxxx4l7
.
Step 2 Account B authorizes Account A to attach a network under Account B
Cross-account network instance loading requires authorization on the VPC or VBR detail page to be loaded, this operation takes VPC as an example.
- Use Account B to log on to the VPC Console.
- In the left-side navigation pane, click VPC.
- Click the ID of the target VPC.
- On the VPC Details page, click CEN Cross Account Authorization.
- In the displayed dialog box, enter the ID of the account and the CEN instance to authorize, and then click OK.
Step 3 Account A attaches the network
After the authorization is completed, Account A can attach the network of Account B:
- Use Account A to log on to the CEN console.
- On the Instances page, click the Manage option in the Column action of the created CEN instance.
- In the Networks tab, click Attach Network and configure the network as follows:
- Account: Select Different Account.
- Owner Account: Enter the ID of the account that owns the network to attach. In this tutorial, enter the account ID of Account B.
- Network Type: Select the network to connect. You can attach a VPC or a VBR. In this tutorial, select VPC.
- Region: Select the region of the network. In this tutorial, select China North 1.
- Networks: Select the instance to attach. In this tutorial, select a VPC instance.
Step 4 Test the connectivity
Log on to any ECS instance in an attached network and ping the private IP of another ECS instance in another attached network to test the connectivity.