This topic describes how to enable a cross-VPC mount for a file system.

Background information

By default, you can only mount a file system on an ECS instance that is hosted by the same VPC as that of the mount target of the file system. If the mount target of the file system and the ECS instance are not in the same VPC, you can use Cloud Enterprise Network (CEN) to establish a connection between both VPCs.

You can use CEN to establish a connection between different VPCs that are located in the same region. After the connection is established, you can enable a cross-VPC mount for the file system.Architecture diagram

Procedure

  1. Create a CEN instance.
    1. Log on to the CEN console.
    2. On the Instances page, click Create CEN Instance.
    3. Configure the CEN instance.
      Configure the CEN instance
      Parameter Description
      Name

      The name of the CEN instance.

      The name must be 2 to 128 characters in length. It can start with a letter. The name can contain letters, digits, hyphens (-), and underscores (_).

      Description

      The description of the CEN instance.

      The description must be 2 to 256 characters in length and cannot start with http:// or https://.

      Attach Network

      You can attach networks owned by the current account or a different account to a CEN instance. For more information, see Attach networks.

  2. Attach a network.
    1. On the Instances page, find the target instance, and click Manage.
    2. On the Networks tab, click Attach Network to configure the network.
      Configure the network
      Parameter Description
      Account Select the Your Account tab.
      Network Type The type of network you want to attach to the CEN instance. Valid values: VPC, Virtual Border Router (VBR), and Cloud Connect Network (CCN). Select VPC in this example.
      Region The region that hosts the network. Select China (Qingdao) in this example.
      Networks The name of the network you want to attach to the CEN instance. Select a virtual private cloud (VPC) in this example.
    3. Repeat the preceding steps to attach another VPC to the CEN instance. In this way, you can establish a connection between two VPCs.
  3. Mount a file system.