How many IPv4 addresses does ALB use by default?

0

I want to reduce my usage of IPv4 addresses.

The default VPC that AWS created for me has six subnets us-east-1a, 1b, 1c, 1d, 1e and 1f. The ALB that was created for me also uses these six availability zones. Does this mean it creates six IPv4 addresses?

If I configure the ALB to use only two availability zones, will it reduce the number of IPv4 addresses in my VPC?

ALB is used for my public facing website.

shuaybi
已提問 2 個月前檢視次數 225 次
1 個回答
0

Hello.

The number of public IPv4s changes depending on the number of subnets in which the ALB is placed.
In other words, if ALB is linked to 6 public subnets, 6 public IPv4s will be set.

If I configure the ALB to use only two availability zones, will it reduce the number of IPv4 addresses in my VPC?

So, the answer to this question is that if you reduce the number of linked subnets, the number of ALB public IPv4 addresses will decrease.
Looking at the Network Interface screen, you can see that the number of subnets and the number of public IP addresses match from the ALB ENI.

In my environment, when there are targets in three Availability Zones by linking ALBs to three subnets, you can see that the ALB ENI is created as shown below.
a

By the way, if the Availability Zone used by the ALB target does not match the Availability Zone of the subnet associated with the ALB, the health check will fail, so be careful when reducing the number of subnets.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html#target-health-reason-codes

profile picture
專家
已回答 2 個月前
profile picture
專家
Steve_M
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南