edit-icon download-icon

Set the network type

Last Updated: Nov 23, 2017

ApsaraDB supports two types of network: classic and Virtual Private Cloud (VPC). This chapter describes the differences between the two network types and setting methods.

Background

On the Alibaba Cloud platform, a classic network and VPC have the following differences:

  • Classic network: The cloud services on a classic network are not isolated, and unauthorized access to a cloud service is blocked only by the security group or whitelist policy of the service.

  • VPC: The VPC helps you build an isolated network environment on Alibaba Cloud. You can customize the route table, IP address range, and gateway in VPC. In addition, you can combine your machine room and cloud resources in the Alibaba Cloud VPC into a virtual machine room through a leased line or VPN to migrate applications to the cloud smoothly.

Note:

  • A classic network can be converted to VPC, but not vice versa.

  • When switching the classic network to VPC, you can choose to retain the classic network IP address. For more information, see Hybrid access.

By default, ApsaraDB for Redis adopts the classic network type. If you want to use VPC, make sure that the ApsaraDB for Redis instance and VPC instance are in the same region. You may create a VPC instance by using either of the following methods:

  • If no ApsaraDB for Redis instance is created, first create a VPC instance and then create an ApsaraDB for Redis instance under the VPC instance. For more information, see the section Create an ApsaraDB for Redis instance scenario.

  • If an ApsaraDB for Redis instance already exists, create a VPC instance in the same region as the ApsaraDB for Redis instance and add the ApsaraDB for Redis instance to the VPC instance. For more information, see the section Existing ApsaraDB for Redis instance scenario.

Create an ApsaraDB for Redis instance scenario
  1. Create a VPC instance. For more information, see Create a VPC instance.

  2. Create an ApsaraDB for Redis instance in the same region as the VPC instance.

    When you purchase the ApsaraDB for Redis instance, select VPC as the network type and select the corresponding VPC instance. For more information, see Create an instance.

Existing ApsaraDB for Redis instance scenario

  1. Create a VPC instance in the same region as the ApsaraDB for Redis instance. For more information, see Create a VPC instance.

  2. Log on to the Redis Console, select the target instance, and click Manage.

  3. Click Switch to VPC on the Instance Information page.

  4. On the Switch to VPC page, select VPC and VSwitch. Select whether to retain the classic network IP address and the retention period, and then click OK.

Thank you! We've received your feedback.