This topic describes how to use Cloud Enterprise Network (CEN) to mount a file system across virtual private clouds (VPCs) or regions.

Prerequisites

Background information

By default, a file system can be mounted on an Elastic Compute Service (ECS) instance only if the instance and mount target reside in the same VPC. If the mount target and the ECS instance reside in different VPCs, you can use CEN to establish a connection between the VPCs. You can then enable a cross-VPC mount for the file system.

The following procedure uses an example to describe how to establish a connection between two VPCs that belong to the same Alibaba Cloud account. In this example, VPC 1 and VPC 2 are used and attached to the same CEN instance. The procedure applies regardless of whether VPC 1 and VPC 2 reside in the same region.

Topology

Step 1: Create a CEN instance

  1. Log on to the CEN console.
  2. In the left-side navigation pane, choose Instances > Create CEN Instance.
  3. In the Attach Network section of the Create CEN Instance dialog box, click the Your Account tab and set the parameters.
    Parameter Description
    Network Type Select VPC.
    Region Select the region where the VPC resides. In this example, select the region where VPC 1 resides.
    Networks Select the VPC that you want to attach to the CEN instance. In this example, select VPC 1.

Step 2: Attach a VPC to the CEN instance

  1. Log on to the CEN console.
  2. In the left-side navigation pane, click Instances. On the page that appears, find the CEN instance that you created and click Manage in the Actions column.
  3. Choose Networks > Attach Network.
  4. In the Attach Network dialog box, click the Your Account tab and set the parameters.
    The following table lists the required parameters.
    Parameter Description
    Network Type Select VPC.
    Region Select the region where the VPC resides. In this example, select the region where VPC 2 resides.
    Networks Select the VPC that you want to attach to the CEN instance. In this example, select VPC 2.
  5. Click OK.

Step 3: Mount the file system

After the preceding configurations are complete, mount a file system in one of the VPCs on an ECS instance in the other VPC.