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달 전210회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인