All Products
Search
Document Center

Tair (Redis® OSS-Compatible):How do I check whether an ECS instance and an ApsaraDB for Redis instance are of the same network type?

Last Updated:Oct 24, 2024

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

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Click the ID of an ECS instance to go to the Instance Details tab.

  5. 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. ECS-vpcID

View the network type of an ApsaraDB for Redis instance

  1. 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.

  2. 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

  • The ECS and ApsaraDB for Redis instances are both of the VPC network type, and they are deployed within the same VPC.

  • The ECS and ApsaraDB for Redis instances are both of the classic network type.

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.

  • The network types of the ECS and ApsaraDB for Redis instances are both VPC, but the instances are deployed in different VPCs.

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.

  • The network types of the ECS and ApsaraDB for Redis instances are different.

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.