ApsaraDB for MongoDB supports two network types: classic network and VPC. This topic describes how to configure a VPC when you create a new ApsaraDB for MongoDB instance.
Background information
On Alibaba Cloud, classic networks and VPCs have the following differences:
- Classic network: In a classic network, cloud services are not isolated at the network level. To block unauthorized access, you must use the security group or whitelist configurations for each service.
- VPC (Virtual Private Cloud): A VPC helps you build an isolated network environment on Alibaba Cloud. You can customize the route table, IP address range, and gateway within the VPC. You can also use a physical connection or VPN to connect your on-premises data center with your cloud resources in the VPC. This combination creates a hybrid cloud and simplifies migrating your applications to the cloud.
ApsaraDB for MongoDB uses a VPC by default. The ApsaraDB for MongoDB instance and the VPC must be in the same region. You can do this in two ways:
- If you do not have an ApsaraDB for MongoDB instance, create a VPC before creating the instance. This topic describes this method.
- If you already have an ApsaraDB for MongoDB instance, create a VPC in the same region, and then switch the instance's network type to that VPC. For more information, see Switch the network type of an ApsaraDB for MongoDB instance.
Procedure
- Create a VPC. For more information, see Create and manage a VPC.
- Create an ApsaraDB for MongoDB instance in the same region as the VPC. For more information, see the following topics:Note When you create an ApsaraDB for MongoDB instance, set Proprietary Network to Proprietary Network. Then, select the vSwitch and created in Step 1.
该文章对您有帮助吗?