Tencent Cloud CLB supports three IP versions: IPv4, IPv6, and IPv6 NAT64. IPv6 CLB supports the TCP, UDP, TCP SSL, HTTP, and HTTPS protocols and provides flexible forwarding capabilities based on domain names and URL paths. This document guides you through how to get started with IPv6 CLB.
X-Forwarded-Forheader of HTTP layer-7 IPv6 CLB.
Enter the CVM Console, log in to the CVM instance, and complete basic IPv6 configuration.
On the CVM instance, run the following commands in sequence to deploy and restart the Nginx service.
yum install nginx service nginx restart
Check whether the Nginx service deployed on the CVM instance is listening on IPv6.
Run the following command for check.
Run the following command to open the Nginx configuration file for check.
Log in to the Tencent Cloud's official website and enter the CLB purchase page.
Select options for the following parameters correctly:
Select various configuration items on the purchase page and click Buy Now.
On the "CLB Instance List" page, select the corresponding region to view the instance just created.
Log in to the CLB Console.
In the "CLB Instance List", find the created CLB instance and click its ID to enter its details page.
In the "Basic Information" module, you can click the modification icon next to the instance name to rename it.
In HTTP/HTTPS Listener in "Listener Management", click Create to create a CLB listener.
In the pop-up box, configure the following:
Click Submit to create the CLB listener.
In "Listener Management", select the new listener IPv6test and click + to add a rule.
In the pop-up box, configure the domain name, URL path, and balancing method, and click Next.
www.qcloudipv6test.comis used. For more information, please see Layer-7 Forwarding Domain Name and URL Rules.
/is used in this example.
Configure health check: enable health check, check the default forwarding domain name and path used by the domain name, and click Next.
Configure session persistence: enable session persistence, configure the persistence period, and click Submit.
For more information on CLB listeners, please see CLB Listener Introduction.
- A listener (i.e., listening protocol:port) can be configured with multiple domain names, and a domain name can be configured with multiple URL paths. Select a listener or domain name and click + to create a new rule.
Before binding the listener to a CVM instance, please make sure that the CVM instance has obtained an IPv6 address.
On the "Listener Management" page, select and expand the listener just created and select the domain name and URL path, and the IPv6 information of the CVM instance bound to the URL path will be displayed on the right. Click Bind.
In the pop-up box, select the CVM instance, set the default Nginx service port to 80, set the weight (10 by default), and click OK.
After the CVM instance is successfully bound, perform the following:
Please check whether the port status is "healthy"; and if yes, please proceed to Step 4. Test IPv6 CLB.
If the port status is "exceptional", please check whether the listener is bound to the correct Nginx server port of the CVM instance, and log in to the CVM instance to check whether the port is normally listening on IPv6. You can perform the check as instructed in substep 3 in step 1.
After configuring an IPv6 CLB instance, you can verify whether the architecture takes effect by checking whether different domain names and URLs under a CLB instance can access different real servers, i.e., checking whether the content-based routing feature is available.
Use a client with IPv6 public network access capabilities to access the domain name or IPv6 address of the CLB instance. If it can properly access the web service of the CVM instance, the IPv6 CLB instance is working normally.
You can use a browser to access the domain name to verify it.