This topic describes how to change the network type of an ApsaraDB RDS for SQL Server instance between classic network and VPC.
Network types
- Classic network: RDS instances in the classic network are not isolated. You can block unauthorized access only by configuring IP address whitelists or security groups on these instances.
- VPC: Each virtual private cloud (VPC) is an isolated network. We recommend that you
select the VPC network type because it is more secure than the classic network.
You can configure route tables, Classless Inter-Domain Routing (CIDR) blocks, and gateways in a VPC. To smoothly migrate applications to the cloud, you can connect your own data center to a VPC by using leased lines or VPNs. This allows you to build a virtual data center on the cloud.
Change the network type from VPC to classic network
- After you change the network type from VPC to classic network, the internal endpoint of the RDS instance remains unchanged. However, the IP address bound to the internal endpoint changes.
- After you change the network type from VPC to classic network, you cannot access the RDS instance by using the internal endpoint. This applies to an Alibaba Cloud Elastic Compute Service (ECS) instance that no longer resides in the same VPC as the RDS instance. Make sure that you immediately update the endpoint information on your application after you change the network type.
- When you change the network type from VPC to classic network, a transient connection error of about 30 seconds may occur. To avoid interruptions to your workloads, we recommend that you perform the network type change during off-peak hours. Alternatively, make sure that your application is configured to automatically reconnect to the RDS instance.
- You can change the network type from VPC to classic network only when the RDS instance runs SQL Server 2008 R2, SQL Server 2012 Web, or SQL Server 2016 Web. The other SQL Server versions do not support the network type change from VPC to classic network.
Procedure
Change the network type from classic network to VPC
Precautions
- If the RDS instance runs SQL Server 2008 R2, you cannot change the network type from classic network to VPC.
- If the RDS instance is a temporary instance, you cannot change the network type from classic network to VPC. This is because temporary instances only support the classic network type. For more information about how to log on to a temporary instance, see Log on to a temporary instance.
Procedure
FAQ
How do I change the VPC of my RDS instance?
- If your RDS instance supports changes between the classic and VPC network types, follow
these steps:
- Change the network type from VPC to classic network.
- Change the network type from classic network to VPC with the required VPC selected.
- If your RDS instance does not support changes between the classic and VPC network
types, follow these steps:
Purchase a new RDS instance with the required VPC selected. Then, migrate the data of your RDS instance to the new RDS instance. For more information, see Migrate data between RDS instances.
Related operations
Operation | Description |
---|---|
Switch network type | Changes the network type of an ApsaraDB for RDS instance. |