IP addresses support IPv4 and IPv6 addressing protocols. IPv4 is widely used, but the number of network addresses is limited, making IPv6 a good complement.
Tencent Cloud provides IPv4 addresses for both the private and public network access. A public IPv4 address can be common or elastic. As shown in the following figure, EIP indicates an elastic IPv4 address, Private indicates a private IPv4 address, and Public indicates a public IPv4 address. These IPs will not change unless you unbind or change them.
Note:Unless otherwise specified, private IP, public IP and EIP all refer to IPv4 addresses.
A private IPv4 address is used for Tencent Cloud private network access, which cannot be used to access the internet. Once a CVM instance is created, it will be automatically assigned with a private IPv4 address. The private IPv4 address can also be customized in a VPC environment.
The private IPv4 address can be used for:
Tencent Cloud provides public IPs and EIPs for public network access. A CVM instance with a public IPv4 address can access and be accessed over an IPv4 public network.
The following table compares public IPs with EIPs.
Item | Public IPs | EIPs | |
---|---|---|---|
Use cases | If you want to create a CVM that supports public network access, you can choose to use a public IP address automatically assigned by the system at the creation of a CVM instance. This public IP address has the same lifecycle as the CVM, and will be released upon the release of the bound CVM. | If you want to use a public IP for a long time, you can choose an elastic IP (EIP) and bind it to the specified CVM as needed. EIP can be bound or unbound many times, and will still exist after the CVM is released. | |
Public network access | Both support public network access. | ||
Acquisition method | It can only be obtained when you purchase a CVM. | ||
Features | It has the same lifecycle as the CVM, and will be released upon the release of the bound CVM. | ||
Fees | Only the public network fee will be charged. | The IP resource fee is a part of the EIP fee, which varies by the account type. For more information, see Checking Account Type. | |
Quota | It is subject to the number of CVMs you purchased. | Each account can apply for 20 EIPs in each region. | |
For the quota of public IPs (including EIPs) bound to a CVM, see the limits on public IPs bound to a CVM. | |||
Operations | Converting an IP | A public IP can be converted to an EIP. The IP address will not change after the conversion. | An EIP cannot be converted back to a public IP. |
Changing an IP | A public IP can be directly changed. For more information, see Changing Public IP Addresses | EIPs cannot be directly changed. You need to unbind and release the EIP, apply for a new one, and bind it again. | |
Releasing an IP | If you no longer need a public IP, you can log in to the CVM console, locate the public IP, and in the Operation column, select More > IP/ENI > Return Public IP to return it. | You can release an EIP in the EIP console. | |
Retrieving an IP | You can retrieve public IPs/EIPs that you have used if they have not been used by other users. |
The public network traffic generated by public IPv4 addresses will be charged with public network fees. For more information, see Public Network Pricing.
Was this page helpful?