Obtaining the Load Balancer EIP

Scenarios

This function allows the load balancers to pass their EIPs to backend servers. You can enable the function when you add HTTPS or HTTP listeners.

Load balancer EIPs are placed in the X-Forwarded-ELB-IP field in the HTTPS or HTTP request header in the format of XX.XXX.XX.XXX, as shown below:

X-Forwarded-ELB-IP: XX.XXX.XX.XXX

Classic load balancers do not support this function.

Enabling 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. Click Service List. Under Network, click Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Under Listeners, click Add Listener.
  6. In the Add Listener dialog box, expand Advanced Settings and enable the function for obtaining the load balancer EIP.
  7. Click OK.

    This function can be enabled only for HTTPS or HTTP listeners.

Modifying 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. Click Service List. Under Network, click Elastic Load Balance.
  4. Locate the load balancer and click its name.
  5. Click Listeners, locate the listener, and click on the right of its name.
  6. In the Modify Listener dialog box, expand Advanced Settings and disable the function for obtaining the load balancer EIP.
  7. Click OK.