To connect an Elastic Compute Service (ECS) instance to a Tair (Redis OSS-compatible) instance over the internal network, both instances must use the same network type — either classic network or Virtual Private Cloud (VPC).
If both instances use VPC, they must also belong to the same VPC. Instances in different VPCs cannot communicate over the internal network.
Check the network type of an ECS instance
Log on to the ECS console.
Log on to the ECS console.
In the left-side navigation pane, choose Instances & Images > Instances.
In the top navigation bar, select the region and resource group.

Click the ID of the ECS instance to open the Instance Details tab.
In the Network Information section, check the network type:
Classic Network — the instance uses the classic network.
VPC — the instance uses VPC. Note the VPC ID shown in this section for use in the next step.

Check the network type of a Tair instance
Log on to the console and go to the Instances page. In the top navigation bar, select the region, then find the instance and click its ID.
In the Basic Information section, check the network type:
Classic Network — the instance uses the classic network.
VPC — the instance uses VPC. Note the VPC ID shown in this section and compare it with the ECS VPC ID.
Determine whether the instances can connect
After checking both network types, use the following table to determine connectivity and the required action.
| Scenario | Internal network connectivity | Action |
|---|---|---|
| Both instances use VPC and belong to the same VPC | Supported | Add the internal IP address of the ECS instance to a whitelist of the Tair instance. |
| Both instances use the classic network | Supported | Add the internal IP address of the ECS instance to a whitelist of the Tair instance. |
| Both instances use VPC but belong to different VPCs | Not supported | Change the VPC of the Tair instance. See Change the VPC or vSwitch of an instance. |
| The instances use different network types | Not supported | We recommend that you change the network types of both instances to VPC. See Migrate from classic network to VPC (ECS) and Change the network type from classic network to VPC (Tair). |