Elastic IP for NAT gateways

0

Why EIP is needed for NAT gateway. It should be attached with a static public IP to connect with IGW but why elastic IP specifically?

Jehan
已提問 2 個月前檢視次數 211 次
2 個答案
1
已接受的答案

An Elastic IP is used because it allows you to detach the IP address from the NAT Gateway and then reuse it again for something else that is public-facing - even another NAT Gateway. This is useful because many organisations use your IP address as a (very blunt!) security mechanism to allow access to their applications; so having the ability to migrate the Elastic IP from one NAT Gateway to another is very useful.

If we were to use a Public IP for NAT Gateway that IP address would go back into the larger pool of available IP addresses when a NAT Gateway is decommissioned. Then you have no opportunity to reuse it which might cause you pain. As it is, if you don't want to reuse an Elastic IP you can release it anyway.

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

An Elastic IP address is a public IPv4 address, which is reachable from the internet.

This is required to assign a public IP to a Nat gateway.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html

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

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

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

回答問題指南