How do I attach an Elastic IP address to new or existing internet-facing Network Load Balancers?

Last updated: 2021-10-28

How do I attach an Elastic IP address to new or existing public, internet-facing Network Load Balancers?

Resolution

Attach an Elastic IP address to a new Network Load Balancer

Before you begin, check that your account has Elastic IP addresses that aren't associated with any other resource. See Allocate an Elastic IP address for more information.

  1. Open the Amazon Elastic Compute Cloud (Amazon EC2) console.
  2. Choose the Region where you want to create your Network Load Balancer.
  3. Allocate Elastic IP addresses for your Network Load Balancer.
    Note: Be sure to create the same number of Elastic IP addresses as the number of subnets that you select in each Availability Zone. For more information, see Elastic IP address limit.
  4. Under Load Balancing, choose Load Balancers.
  5. Choose Create Load Balancer.
  6. For Network Load Balancer, choose Create.
  7. Select the VPC where you plan to provision the Network Load Balancer.
  8. Under Mappings, select Availability Zones and the corresponding subnet for each.
  9. For IPv4 settings, IPv4 address is selected by default. Select Use an Elastic IP address from the dropdown list to assign to your Network Load Balancer.
  10. Once EIPs are specified for Network Load Balancer, please complete the remaining steps for creating a Network Load Balancer.
    Note: After an Network Load Balance is created, you can't change its subnets and EIPs. However, you can use subnets for other Availability Zones to deploy additional NLB nodes with either AWS-assigned or Elastic IP addresses.

Add a new node with Elastic IP to an existing Network Load Balancer

  1. Open the Amazon EC2 console.
  2. Choose the Region in which your Network Load Balancer is located.
  3. Under Load Balancing, choose Load Balancers.
  4. Select your Network Load Balancer.
  5. Choose Actions, and then choose Edit Subnets.
  6. Select a subnet from the remaining Availability Zones.
  7. For IPv4 address, select Choose an Elastic IP. A dropdown list containing each of the Elastic IP addresses in the specified Region appears.
    Note: If the Choose an Elastic IP option is unavailable, then you must allocate an Elastic IP address for the Network Load Balancer elastic network interfaces.
  8. Choose Save. A new Network Load Balancer node is created in the subnet you specified.

(Optional) Confirm that you've correctly configured your Elastic IP address attachments

  1. In the Amazon EC2 console, confirm that your Elastic IP addresses were successfully created.
  2. Open the Amazon EC2 console.
  3. Under Network & Security, choose Network Interfaces.
  4. In the filter section, enter the name of your Network Load Balancer.
  5. Review the list of the Network Load Balancer's elastic network interfaces. Confirm that the IP addresses for the elastic network interfaces match the Elastic IP addresses in the IPv4 Public IP column.

Did this article help?


Do you need billing or technical support?