IP Addresses

Last updated: 2020-11-16 11:39:48

    IPv4 Addresses

    Tencent Cloud offers two types of IPv4 addresses for private and public network access. These IPs will not change unless you unbind or change them.

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

    Attributes

    • The IPv4 private network is user-specific, and different users are isolated from each other. By default, cloud services of another user cannot be accessed via the IPv4 private network.
    • The IPv4 private network is region-specific, and different regions are isolated from each other. By default, cloud services under the same account in a different region cannot be accessed via the IPv4 private network.

    Use cases

    The private IPv4 address can be used for:

    • Interconnection between VPC-based or classic network-based CLB and CVM instances over an IPv4 private network.
    • Interconnection between VPC-based or classic network-based CVM instances over an IPv4 private network.
    • Interconnection between VPC-based or classic network-based CVM instances and other Tencent Cloud services (such as TencentDB) over an IPv4 private network.

    Relevant operations

    Public IPv4 addresses

    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.

    Comparison

    The following table compares public IPs with EIPs.

    Item Public IPs EIPs
    Use cases If you want a public IP address to be automatically assigned by the system at the creation of a CVM instance, use the public IP, which will be released with the CVM instance. The IPs cannot be reserved 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 are public IPs and support public network access
    Acquisition method It can only be obtained when you purchase a CVM
  • You can apply for an EIP in the console
  • You can convert a public IP address to an EIP
  • Features It has the same lifecycle as the CVM, and will be released upon the release of the bound CVM
  • It is independent from other resources. You can bind it to or unbind it from CVMs and NAT Gateways at anytime
  • You can release an EIP when you no longer need it
  • Fees Free of charge The IP resource fee is a part of the EIP fee, which varies by the 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

    Billing overview

    The public network traffic generated by public IPv4 addresses will be charged with public network fees. For more information, see Public Network Pricing.

    Relevant Information

    • For more information about how to quickly build a Virtual Private Cloud (VPC) with IPv4 CIDR block, see Building Up an IPv4 VPC.
    • For more information about EIPs, see Elastic IP.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help