You are currently viewing How To Create An Internet-Facing Network Load Balancer With Static Public (Elastic) IP Address

How To Create An Internet-Facing Network Load Balancer With Static Public (Elastic) IP Address

  • Post author:
  • Post category:AWS / ELB

How To Create An Internet-Facing Network Load Balancer With Static Public (Elastic) IP Address

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed Network Load Balancer target group’s health checks.

https://cloudaffaire.com/network-load-balancer-target-group-health-checks/

In this blog post, we will discuss how to create an internet-facing network load balancer with static public (elastic) ip address.

How To Create An Internet-Facing Network Load Balancer With Static Public (Elastic) IP Address:

By default, AWS assigns an private IPv4 address to each load balancer node from the subnet for its Availability Zone. Alternatively, if you create an internet-facing load balancer, you can select an Elastic IP address for each Availability Zone. This provides your load balancer with static IP addresses. If you create an internal load balancer, you can assign a private IP address from the IPv4 range of each subnet instead of letting AWS assign one.

internet-facing load balancer ip assignment:

  • one public ip address assigned by AWS or one elastic ip address assigned by customer to each load balancer node in Availability Zone.
  • one private address assigned by AWS to each load balancer node from the subnet for its Availability Zone.

Note: Customer can not specify the private ip address for internet-facing load balancer nodes.

How To Create An Internet-Facing Network Load Balancer With Static Public (Elastic) IP Address:

Step 1: Create a custom VPC with two Elastic IP addresses for your internet-facing network load balancer.

Step 2: Create two EC2 instances as your Network Load Balancer target.

Step 3: Create an internet-facing network load balancer with static public (elastic) ip address.

How To Create An Internet-Facing Network Load Balancer With Static Public (Elastic) IP Address

Step 4: Cleanup.

Hope you have enjoyed this article, In the next blog post, we will discuss how to create an internal network load balancer with private ip address.

All the public cloud providers are changing the console user interface rapidly and due to this some of the screenshots used in our previous AWS blogs are no longer relevant. Hence, we have decided that from now onwards most of the demo will be done programmatically. Let us know your feedback on this in the comment section.

To get more details on AWS ELB, please refer below AWS documentation

https://docs.aws.amazon.com/elasticloadbalancing/index.html