Tencent Cloud has two types of IP addresses, public IP addresses and private IP addresses.
Public IP Addresses
A public IP address is an IP address in the Internet that is not reserved. A CVM with a public IP address can access other computers in the Internet and can also be accessed by other computers.
Tencent Cloud public IP addresses come in two types, public IPs and EIPs. Both of these can provide CVMs with the ability to access and be accessed by public networks.
Item | Ordinary Public IPs | EIPs | |
---|---|---|---|
Ability to access/be accessed by public networks | Both are public IPs, with no difference between them in terms of the ability to access/be accessed by public networks. | ||
How to acquire | It can only be allocated when purchasing the CVM. It cannot be acquired if not assigned at time of purchase. | ||
Features | It has the same lifecycle as the CVM, and will be released upon release of the bound CVM. | ||
Fees | Free of charge | ||
Quota | It is subject to the quota of CVMs. | Each account can apply for 20 EIPs in each region. | |
For the quota of EIPs bound to a single CVM, refer to Quota details. | |||
Operations | Converting an IP | A public IP can be converted to an EIP. For details, refer to Converting an ordinary public IP to an EIP. | An EIP cannot be converted into an ordinary public IP. |
Replacing IP | Public IPs can be directly replaced. For details, refer to Replacing public IP addresses. | EIPs cannot be directly replaced. You need to unbind and release the EIP, apply for a new one and bind it again. | |
Releasing IP | If you no longer need a certain public IP, you can return it in the CVM console by selecting **Operation** > **More** > **IP/ENI** > **Return public IP**. | It can also be released on the EIP console. For details, refer to Releasing EIPs. | |
Retrieving IP | You can retrieve public IPs/EIPs that you have used if they are not used by other users. You can apply by operating in the EIP console. |
Private IP Addresses
A private IP address is used to implement Tencent Cloud private network services. It cannot be accessed from internet. Each CVM instance has a default network interface assigned with a private IP (i.e. eth0). The private IP address can be automatically assigned by the system. In a VPC environment, the private IP address can also be customized by the user.
Attributes
- Private network services are user-sensitive. Different users are isolated from each other, which means that the cloud services of the other user cannot be accessed via the private network by default.
- Private network services are region-sensitive. Different regions are isolated from each other, which means that the cloud services under the same account in a different region cannot be accessed via the private network by default.
Applicable scenarios
The private IP can be used for the communication between CLBs and CVM instances, and between CVM instances and other Tencent Cloud services (such as TencentDB).
Relevant Operations
- For details on acquiring the private IP address of an instance and setting the DNS, refer to Acquiring private IP address and setting DNS.
- For details on modifying the private IPs of CVM instances in a VPC, refer to Modifying private IP addresses.