Transferring Source IP Addresses to Backend Servers

Scenarios

Generally, load balancers use IP addresses in the 100.125.0.0.16 IP address range 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 Obtain Client IP Address to pass the IP addresses of the clients to backend servers.

  • Shared load balancers: This function is available only for TCP and UDP listeners.
  • Dedicated load balancer: This function is enabled for TCP and UDP listeners by default and cannot be disabled.
  • For TCP listeners, you can configure the TOA plug-in to obtain IP addresses of the clients. For details, see Configuring the TOA Module.
  • For HTTP and HTTPS listeners, if you want to obtain the IP addresses of clients, refer to "Layer 7 Load Balancing" in How Can I Obtain the IP Address of a Client?

Constraints and Limitations

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.

Disabling the Function

  1. Log in to the management console.
  2. In the upper left corner of the page, click and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Network > Elastic Load Balancing.
  4. Locate the load balancer and click its name.
  5. Click Listeners.

    For a shared load balancer listener, locate the listener and click on the right of its name. In the Modify Listener dialog box, modify the parameters as needed.

  6. Disable Obtain Client IP Address.
  7. Confirm the configuration and click Finish.