Currently, Alibaba Cloud intranets are classified into classic networks and VPCs. Cloud products, such as an ECS instance and an ApsaraDB for MongoDB instance, in different zones of the same region can be interconnected through an intranet.

The following scenarios describe how to connect an ApsaraDB for MongoDB instance to an ECS instance from a different zone through the internal network.

Connect an ECS instance to a new ApsaraDB for MongoDB instance

  • If the network type of the ECS instance is VPC and you purchase an ApsaraDB for MongoDB instance in a different zone of the same region, you need to ensure that the two instances are connected to the same VPC, and create a vSwitch in the zone where the ApsaraDB for MongoDB instance is located to ensure that the two instances can properly connect to each other through the intranet.
  • If the network type of the ECS instance is classic network and you purchase an ApsaraDB for MongoDB instance in a different zone of the same region, you need to ensure that the two instances are in the same classic network. And connect two instances across zones.

Connect an ECS instance to an existing ApsaraDB for MongoDB instance

The ECS instance and the ApsaraDB for MongoDB instance must be in the same region.

  • If the two instances are configured with the same network type, they can be interconnected through an intranet.
    Note The network types of both the ECS instance and ApsaraDB for MongoDB instance are classic network or VPC. If the network types are VPC, the instances must have the same VPC ID.
  • If the two instances are configured with different network types, you can switch the network type of the ApsaraDB for MongoDB instance to be the same as that of the ECS instance before their interconnection.
    Note You cannot switch the network type for standalone instances.