Transfer Client IP Address (Shared Load Balancers)
Scenario
Generally, load balancers use IP addresses in 100.125.0.0/16 to communicate with backend servers. If you want a load balancer to communicate with backend servers using real IP addresses of the clients, you can enable Transfer Client IP Address to pass the IP addresses of the clients to backend servers.
Table 1 lists whether you can enable or disable the transfer client IP address function.
Constraints
- When you enable or disable the function, if the listener has backend servers associated, traffic to this listener will be interrupted for about 10 seconds. The interruption duration is twice the health check interval configured for the backend server group.
- If Transfer Client IP Address is enabled, a server cannot serve as both a backend server and a client. If the client and the backend server are using the same server and the Transfer Client IP Address option is enabled, the backend server will think the packet is sent by itself but not from the client and will not return a response packet to the load balancer. As a result, the return traffic will be interrupted.
- If a backend server has been associated with the listener and health checks are enabled, enabling this function will check the health of the backend server, and traffic to this server will be interrupted for one or two health check intervals.
- After this function is enabled, unidirectional download or push traffic may be interrupted when backend servers are being migrated. After the backend servers are migrated, retransmit the packets to restore the traffic.
Enabling Transfer Client IP Address
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
- Locate the load balancer and click its name.
- You can use either of the following methods to enable the function:
- On the Listeners page, locate the listener, and click Edit in the Operation column.
- Click the name of the target listener. On the Summary tab page, click Edit on the top right corner.
- In the displayed dialog box, enable Transfer Client IP Address.
- Confirm the configurations and click OK.
After Transfer Client IP Address is enabled, configure security groups, network ACLs, and OS and software security policies so that IP addresses of the clients can access these backend servers.
Disabling Transfer Client IP Address
- Log in to the management console.
- In the upper left corner of the page, click and select the desired region and project.
- Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balance.
- Locate the load balancer and click its name.
- You can use either of the following methods to disable the function:
- On the Listeners page, locate the listener, and click Edit in the Operation column.
- Click the name of the target listener. On the Summary tab page, click Edit on the top right corner.
- In the displayed dialog box, disable Transfer Client IP Address.
- Confirm the configurations and click OK.
Alternatives for Obtaining the IP Address of the Client
You can obtain the IP address of a client in one of the ways listed in Table 2.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.