tencent cloud

Feedback

IPv4 and IPv6 Addresses

Last updated: 2024-01-24 17:22:28
    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.

    IPv4 Addresses

    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.
    

    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

    For more information about how to obtain the private IPv4 address of the instance and set DNS, refer to Getting Private IP Addresses and Setting DNS.
    For more information about how to change the private IPv4 addresses of CVM instances in a VPC, see Modifying Private IP Addresses.

    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 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.
    1. Apply for an EIP in the console.
    2. 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
    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.

    Billing

    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 an IPv4 Virtual Private Cloud (VPC), see Building Up an IPv4 VPC.
    For more information about EIPs, see Elastic IP.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support