Tencent Cloud provides you with various methods to access the Internet, such as through a common public IP address, EIP, NAT gateway, and Cloud Load Balancer (CLB).
When creating a CVM instance, you can assign a common public IP address to the instance. The system will assign an IP address to your CVM to enable it to access the Internet and also be accessible through the Internet.
Common public IP addresses cannot be dynamically bound or unbound with resources such as CVMs, but you can convert them to EIPs. For details, see Converting Public IP Addresses into EIPs.
Unlike public IP addresses that need to be applied for and released with CVMs, elastic IP addresses (EIPs) are independent cloud resources that are decoupled from the CVM lifecycle and can be operated separately.
For information on how to apply for, bind, and release EIPs, see EIPs - Steps.
EIPs offer the following advantages:
A NAT gateway provides the SNAT and DNAT features, which enables you to easily establish an Internet egress and provide services for CVMs in a VPC to access the Internet with the same public IP address.
For information on how to configure the NAT gateway, see NAT Gateways - Operation Overview.
NAT gateways offer the following advantages:
A Cloud Load Balancer (CLB) distributes traffic to multiple CVMs to enhance the external service capabilities of application systems. It eliminates single points of failure to ensure highly available application systems.
For information on how to purchase and configure a CLB, see CLBs - Getting Started.
CLBs offer the following advantages:
A public gateway is a CVM with the forwarding feature enabled. In a VPC, CVMs without a public IP address can access the Internet through public gateways on different subnets. Public gateways can covert the source addresses of Internet traffic from other CVMs to their own IP addresses.
For information on how to configure a public gateway, see Configuring Public Gateways.