To connect an Elastic Compute Service (ECS) instance to an ApsaraDB for Redis instance over the internal network, make sure that the network types of the two instances are the same. The network type can be classic network or Virtual Private Cloud (VPC). If the network types of the two instances are VPC, make sure that the two instances belong to the same VPC.
View the network type of an ECS instance
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Click the ID of an ECS instance to go to the Instance Details tab.
In the Network Information section, view the network type of the instance.
Classic Network indicates that the network type of the instance is classic network.
VPC indicates that the network type of the instance is VPC. In this case, the VPC ID is also displayed.
View the network type of an ApsaraDB for Redis instance
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click its ID.
In the Basic Information section, view the network type of the instance.
Classic Network indicates that the network type of the instance is classic network.
VPC indicates that the network type of the instance is VPC.
Check whether an ECS instance and an ApsaraDB for Redis instance can be connected over the internal network
Scenario | Connectivity over an internal network |
| Supported. Note Before you connect to an ApsaraDB for Redis instance from an ECS instance, add the internal IP address of the ECS instance to a whitelist of the ApsaraDB for Redis instance. |
| Not supported. You can change the VPC of the ApsaraDB for Redis instance. For more information, see Change the VPC or vSwitch of an instance. |
| Not supported. We recommend that you change the network types of the ECS and ApsaraDB for Redis instances to VPC. For more information, see Overview and Change the network type from classic network to VPC. |