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

3 minute read
0

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 an Elastic IP address that isn't associated with any other resource. See Allocate an Elastic IP address for more information.

Important: After a Network Load Balancer is created, you can no longer modify its existing subnets or NLB node Elastic IP addresses.

  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 an Elastic IP address 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. After you specify the Elastic IP address for the Network Load Balancer, complete the remaining steps for creating a Network Load Balancer.
    Note: After a Network Load Balance is created, you can't change its subnets and Elastic IP addresses. 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 an Elastic IP address to an existing Network Load Balancer

  1. Open the Amazon EC2 console.
  2. Choose the Region where 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 appears, containing each of the Elastic IP addresses in the specified Region.
    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 that 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 address was 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.

AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago